View Single Post
  #3  
Old 12-21-2001, 05:34 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by nyghtGT
this may or may not work:
NPC Code:

NPC Code:

// NPC made by Nyght GT
if (created || initialized) {
for (i=0;i<tokenscount;i++) {
with (getplayer(#t(i))) {
if (startswith(grabplayer,#c)) {
grabplayer();
}
}
}
}
function grabplayer() {
tokenize #c;
with (getplayer(#t(2))) {
say2
Player #t(2) warped!
if (strequals(#t(0),grabplayer)) {
setlevel2 #t(2),strtofloat(#t(3)),strtofloat(#t(4));
}
}
}




its all serverside stuff, but i am not sure my script will work ....
The first part can't really work...
at this moment the tokenscount is 0 so the for loop will not be accesed... and the tokenize in the function not too...
so nothing would happen...
__________________
No Webhost at the moment
Reply With Quote