Jump to content
  • 0

Announce on whisper NPC


Question

Posted

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!

4 answers to this question

Recommended Posts

Posted

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"?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...