View Single Post
  #6  
Old 10-13-2001, 09:58 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Re: Flag: Created :: Value: Neato

Quote:
Originally posted by Xaviar
Ok, I just realized that you can do if (created && isweapon) to check if the script was just turned into a weapon...But...I wonder if you can use the same thing to check if a player logged on to graal? or is it not "creating" the weapons in your list every time you log on?
The problem you run into with that is that when the player gets the weapon the first time it'll run that too. Set a flag when inside that check, and add the flag to the check, and it should work:
NPC Code:

if (created&&isweapon&&myflag) {
...
} else {
set myflag;
}



wow, first post in over a month...
Reply With Quote