View Single Post
  #8  
Old 02-13-2005, 05:55 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
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
__________________


Last edited by Evil_Trunks; 02-13-2005 at 10:04 AM..
Reply With Quote