In the Control-NPC, just do this:
NPC Code:
function onActionPlayerOnline()
{
this.oldNames = {"Bomb", "Bow"};
this.newNames = {"Weapons/Bomb", "Weapons/Bow"};
for (this.i = 0; this.i < this.oldNames.size(); this.i ++)
{
if ( hasweapon( this.oldNames[this.i]) ) {
removeweapon( this.oldNames[this.i]);
addweapon( this.newNames[this.i]);
}
}
}
If it lags, remove it. This is the best way to replace all your new items with old, and I doubt it will cause any lag.. I have more then one loop in my Control-NPC, and several other stuff and that doesnt cause any lag.