Thread: ID-o-Matic
View Single Post
  #24  
Old 09-15-2001, 07:29 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
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 dunno, do normal NPCs have access to the players[index] objects of players on other levels?
Reply With Quote