Thread: NPC Help
View Single Post
  #3  
Old 05-14-2011, 09:22 PM
mrnothersan mrnothersan is offline
Owner of MrNothersan
Join Date: Mar 2011
Location: On the Computer
Posts: 97
mrnothersan is an unknown quantity at this point
Send a message via AIM to mrnothersan Send a message via MSN to mrnothersan
Quote:
Originally Posted by cbk1994 View Post
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.
i put

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);

in npcscript and it didnt work when i tried saying chat...
__________________

Regards
MrNothersan - Playerworld owner


Staff Hirings Thread for MrNothersan: http://forums.graalonline.com/forums....php?p=1639180

Reply With Quote