View Single Post
  #11  
Old 06-11-2002, 02:28 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by darkriders_p2p

I don't want to get complicated.
NPC Code:
if (strequals(#v(this.hats[i]),1)) {


I use that to check if the player has the the hat, so how could I replace this to check for a string.
If you would like to see the script, my MSN email is [email protected]
Presuming the number of the hat is 1:

NPC Code:
if (strcontains(#s(client.hats),1)) {



... will check if the number 1 (the hat's number) is in the client.hats string, so basically, will have the effect of checking if the player has a certain hat (in this case, hat 1).
Reply With Quote