Thread: NPC warping
View Single Post
  #42  
Old 12-31-2004, 09:12 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by CaTigus
If you want to get all the players you're going to need
NPC Code:

for(i=0;i<playerscount;i++) {
with(players[i]) {
script;
}
}


To get serverside NPCs use:
NPC Code:

for(i=0;i<npcscount;i++) {
with(npcs[i]) {
script;
}
}


This works for classes aswell. You can control text's of a class and such with this, possibly warpto in the script, Which I have never tried.
I'm starting to lose understanding of your question.
this.i
__________________
Skyld
Reply With Quote