Thread: NPC Help
View Single Post
  #2  
Old 05-14-2011, 08:57 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
There is no default message that players receive on login from the NPC-server. If you mean a PM, somebody must have added that to your server, it's probably in the Control-NPC script.

Use TServerPlayer.sendPM(str message) for sending players PMs. Serverside only.

Example:

PHP Code:
function onActionServerSide(temp.cmdtemp.chat) {
  if (
temp.cmd == "chat") {
    
player.sendPM("You said:\n" temp.chat);
  }
}

//#CLIENTSIDE
function onPlayerChats() {
  
triggerServer("gui"this.name"chat"player.chat);

__________________
Reply With Quote