Hey, heres 1 more lua script wich is very useful for your server
Npc Announcer.lua
Credits to
Enjoy
Npc Announcer.lua
Code:
--Written by Maven. Enjoy!
local timebetweenannounce = 45000 --Time between messeges the NPC sends
local restarttime = 120000 --How long you want until it restarts all over again.
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 for ArcEmu!"
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")
Credits to
You must be registered to see links
for creating it.Enjoy