Quote:
|
Originally Posted by Arkan1k
findweapon(str) - returns object
I'd presume you'd do something like:
NPC Code:
if (findweapon(weaponname) == true) {
doStuff();
}
I haven't had a play with it, but I'd say from the name of the command it would probably be the substitute, or close to, for hasweapon(str);
|
That gives an object link to the weapon, but I think that you can get a link to a weapon you do not possess?
also, i am trying to do something like this:
something = "text" @ var;
but if var is 1, i dont want it to set to text1, i want it to give me the value of text1
if someone could help me out with that i'd appreciate it x.x