Advanced announcement script
This is a modified version to kingly_krab's announcement script. I like options, sometimes I want red, sometimes green, etc.
This also shows a more advanced example of perls regular expression matching. Code:
sub EVENT_SAY To use, simply target and type: announce <color> <send to world 1|0> <min status> message Example: announce red 1 0 The server is going down for reboot now! |
To clarify, I have my script attached (global) to a GM Pet, which has a spell to summon (and soon a clicky item...) I'll post details on how to make the GM pet if anyone is interested.
|
I actually already made something like this, without the choice of color, in the Server Console NPC. My custom MOTD also allows you to choose the color!
|
Are you using the standard MOTD? Or are you using something custom?
|
Something custom with DBI: http://prntscr.com/1r05k4
|
Oh nice! I've been playing around with DBI. Also for the MOTD (as a popup window) but I am setting mine up to change via my website (as a plugin) I already hacked the HTTP query into something I could easily use in php (via cURL)
Webbe's Soloable Server |
Also, it looks like this: http://prntscr.com/1r067l
|
That's awesome! Next time I'm on ill take a screenshot of my popup window (it's generic, but I feel like no one read it when it popped up in the chat.)
|
All times are GMT -4. The time now is 08:34 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.