This obviously didn't take long but I find it's a valuable asset in every repack, funserver, blizzlike realm, or mid-rate server.
Basically - It's an announcer. You control the timer and what it says. You can gain more forum members, you could remind your players to vote or you could give them sneeky tips.
The code:
NPCID = The ID of the NPC you want this script to be attatched to.Code:****************************** * * * The FrostTeam Project * * * ****************************** --FrostTeam SVN consists of the latest WotLK scripts, both Lua and C++. Some will be our own, some will be others with credits attatched. Our Svn includes all scripts that you may need to help make your server a more fun environment.-- ---------------------------//---------------------------------------------- -- These are the local configs of the script -- -- Only change this part of the script unless you want to allow extra announce messages -- local Timebetweenannounce = TIMEHERE local Npcid = NPCID local message1 = "MessageHere" local message2 = "MessageHere" local message3 = "MessageHere" local message4 = "MessageHere" -- Local config end -- function Announcer_Yell(pUnit, Event) Choice=math.random(1, 4) if Choice==1 then pUnit:SendChatMessage(12, 0, message1) if Choice==2 then pUnit:SendChatMessage(12, 0, message2) if Choice==3 then pUnit:SendChatMessage(12, 0, message3) if Choice==4 then pUnit:SendChatMessage(12, 0, message4) end end function Announcer_Start(pUnit, Event) pUnit:RegisterEvent("Announcer_Yell", Timebetweenannounce, 0) end RegisterUnitEvent(Npcid, 6, "Announcer_Start") -- End --
TIMEHERE = Time between each announce.
MessageHere = Messages you want the announcer to say.
This IS untested, so please post all feedback; positive and negative!
Thanks and enjoy.