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...