I have a script;
Code:
function Barkeep_Jenkins(Unit, Event)
Unit:RegisterEvent("Barkeep_Jenkins_say", 20000, 0)
end
function Barkeep_Jenkins_say(Unit, Event)
local chance = math.random(1,4)
if(chance == 1) then
Unit:SendChatMessage(412, 0, "Fresh Ale! Made this Morning and Shipped by Portal!")
end
if(chance == 2) then
Unit:SendChatMessage(412, 0, "Hey! Fierydiaria! We have your Favourite Bourbon in Stock!")
end
if(chance == 3) then
Unit:SendChatMessage(412, 0, "Come in for a pint!")
end
if(chance == 4) then
unit:SendChatMessage(412, 0, "Need a refreshment?")
end
end
function Barkeep_Jenkins_Died(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(100003, 18, "Barkeep_Jenkins")
RegisterUnitEvent(100003, 4, "Barkeep_Jenkins_Died")
There is no error in the world.exe cmd, or logonserver.exe cmd, but yet the script doesn't work. The npc I need this to work for in ID: 100003, Name: Barkeep Jenkins
If there is any more info needed, then just ask.