How do i make it So this Script Works and repeats i cant seem to get it to work
Will +Rep if you help me
Code:
local timebetweenannounce = 45000 --Time between messeges the NPC sends
local restarttime = 45000 --How long you want until it restarts all over again.
local npcid = 55555 --The NPC's ID
local message1 = "Hello! Welcome to WoWSnap! The staff here at WoWSnap hopes you enjoy your Stay! Please Have Fun!"
local message2 = "Dont Forget To Vote! Voting Reward System Is in the Process of Being made!"
function Announcer_Yell(pUnit, Event)
pUnit:SendChatMessage(12, 0, message1)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer2_Yell", timebetweenannounce, 45000)
end
function Announcer2_Yell(pUnit, Event)
pUnit:SendChatMessage(12 ,0, message2)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Announcer3_Yell", timebetweenannounce, 45000)
end
function Announcer_Start(pUnit, Event)
pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
end
RegisterUnitEvent(55555, 6, "Announcer_Start")