View Single Post
  #2  
Old 10-10-2003, 02:27 AM
Qwert616 Qwert616 is offline
Possibly Possessed
Qwert616's Avatar
Join Date: Sep 2001
Posts: 4,694
Qwert616 is on a distinguished road
Re: Really simple question :)

Even though the second part of the money script finds that the event is false, it is still re-running the first event each time the player speaks.

I think you are looking for something like this:
NPC Code:
if (playerchats&&strequals(#c,Hello))
if (HelloRupee)
{message No more >:[;}
else
{players[index].rupees+=10;
set HelloRupee;
}




*note: There is most likely a more efficient way to do this*

I hope this helps.

Last edited by Qwert616; 10-10-2003 at 02:37 AM..
Reply With Quote