View Single Post
  #1  
Old 07-25-2002, 08:22 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Unhappy Nick changing NPC problem

I'm trying to make a nick setting NPC.
I'm a developer for Doomsday and I made an NPC the otherday for the Police, however i couldn't test it because I don't have a (Police) tag . I figured I'd set about making something like the "control nick" NPC on g2k1. I hoped I would be able to set my nick to anything and thus be able to have a (Police) tag for a while, but it doesn't work at all. We have no npcserver and I don't need it to change other people's names etc, only mine.

Here's my script:
NPC Code:

// NPC made by HoudiniMan (Developer)
if (playertouchsme) {
toweapons Changenick;
}
if (playerchats&&startswith(changenick,#c)&&isweapon) {
tokenize #c;
for (i=1;i<tokenscount;i++){
setstring this.newnick,#s(this.newnick) #t(i);
}
setplayerprop #n,#s(this.newnick);
}

__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote