Thread: ID-o-Matic
View Single Post
  #26  
Old 09-15-2001, 07:34 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by grim_squeaker_x
Hmm... I'm not sure but wouldn't the following script work for that?
NPC Code:
if (playerchats) {
if (strequals(#g,Events Team)&&strequals(#c,ID-o-Matic)) {
this.test=0;
while (this.test==0) {
i=int(random(0,150));
with (players[i]) {
this.test=1;
playerrupees+=10;
}
}
}
}

I'm thinking that would instintanously (sp?) set this.test to 0, get the random number, give the player 10g and then set this.test to 1. Am I right?
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote