Jump to content
  • 0

Announce on whisper NPC


archilles89

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

Hey guys, since I'm always getting annoyed with players requesting for 24/7 and I don't want to /exall. I came up with a pretty cool idea for an announce NPC but problem is I'm too noob at scripting. D:

Can anyone write up this very simple script I think.

 

The idea is simple, whisper to an NPC for example "npc:announce" and type in anything that you want to be announced to the server. In return the NPC will announce what you've said with addition of a pre-text like "MyRO:<announce>"

 

In summary, it's an announcing NPC that lets only GMs whisper what to be announced to the players.

 

For example: I whispered to said npc [npc:announce] this message "I am a GameMaster" and in return the NPC shall announce it as "MyRO: I am a Game Master" globally.

 

Thanks in advance for taking the time to read and hopefully write up a script for this. Thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


- script Sample -1,{

OnWhisperGlobal:

announce strcharinfo(0)+": "+@whispervar0$,0;

end;

}

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


[npc:Sample] <messages>

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

I tried but not work

[npc;Sample] and Sample and npc:Sample 

its only like this i will type on chat box? [npc:Sample] testmessage

Capture.JPG

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

Wow, that was a fast response! Thanks!!

 

-	script	Sample	-1,{
OnWhisperGlobal:
announce strcharinfo(0)+": "+@whispervar0$,0;
end;
}

 

What name should I whisper the NPC with?
"npc:Sample" or "npc::Sample"?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...