Thread: question
View Single Post
  #8  
Old 01-05-2002, 10:58 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
If you want an example for with(getplayer) here's one I typed up in a min (I'm trying to see if I can get someone with NPC Server acess to let me test it)
It's my Noobalizer
//NPC created by Jagen
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
}
if (playerchats&&startswith(noob,#c))
{tokenize #c;with(getplayer(#t(1)){
setplayerprop #C0,orange;
setplayerprop #C1,orange;
setplayerprop #C2,orange;
setplayerprop #C3,orange;
setplayerprop #C4,orange;
setplayerprop #1,sword1.png;
setplayerprop #2,shield1.png;
setplayerprop #3,head0.png;}
}