I was bored so I wrote this...
just read the script and edit the parts that need editing.
Oh and if you need to convert Minutes to Milliseconds to determine how long you want it...Go here CalculateMe.com - Convert Minutes to Milliseconds
Enjoy!
Code:
local timebetweenannounce = 45000 --Time between messages the NPC sends. In Milliseconds
local restarttime = 120000 --How long you want until it restarts all over again. In Milliseconds
local npcid = 99999 --The NPC's ID
--Change the folowing text to whatever you want
local message1 = "Hello! Welcome to our server!"
local message2 = "Please don't PvP Here!"
local message3 = "Have fun! Don't Forget to vote for us!"
local message4 = "Visit our site at [Site URL]"
local message5 = "This was made by Maven!"
function Announcer_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, message1)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer2_Yell", timebetweenannounce, 0)
end
function Announcer2_Yell(pUnit, Event)
pUnit:SendChatMessage(12 ,0, message2)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer3_Yell", timebetweenannounce, 0)
end
function Announcer3_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, message3)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer4_Yell", timebetweenannounce, 0)
end
function Announcer4_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, message4)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer5_Yell", timebetweenannounce, 0)
end
function Announcer5_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, message5)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer2_Yell", restarttime, 0)
end
function Announcer_Start(pUnit, Event)
pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
end
RegisterUnitEvent(npcid, 6, "Announcer_Start")