Thread: Dark Rival
View Single Post
  #13  
Old 04-23-2006, 06:55 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
Quote:
Originally Posted by xXziroXx
Errr, or even better:

(im guessing you use GS2)

NPC Code:

function onCreated()
{
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]);
}
}
}

I'm a crappy scripter. I can do some stuff to get me by, but no of the real good stuff. I wasn't sure how to do that.

Just recently I learned how to read server.strings and client.strings - and I'm not exactly sure wtf #I is :P
Reply With Quote