Hey,
I'm trying to make a little mini-script to give one of my NPCs a bit of movement, because emotes won't seem to work with waypoints for me I've decided to script it all. From what I know I'm pretty sure this script should work, but for some reason it doesen't. Any help is appreciated.
Code:
function SeanPinius_01(Sean, event)
Sean:MoveTo(1147.234985, -2513.346924, 62.106869, 4.014952)
Sean:RegisterEvent("SeanPinius_02", 2000, 1)
end
function SeanPinius_02(Sean, event)
Sean:Emote(173, 20000)
Sean:RegisterEvent("SeanPinius_03", 21000, 1)
end
function SeanPinius_03(Sean, event)
Sean:MoveTo(1139.066772, -2512.010986, 62.106483, 3.215648)
Sean:RegisterEvent("SeanPinius_04", 4000, 1)
end
function SeanPinius_04(Sean, event)
Sean:Emote(173, 15000)
Sean:RegisterEvent("SeanPinius_05", 16000, 1)
end
function SeanPinius_05(Sean, event)
Sean:MoveTo(1146.047485, -2504.617676, 62.073895, 1.256081)
Sean:RegisterEvent("SeanPinius_06", 7000, 1)
end
function SeanPinius_06(Sean, event)
Sean:Emote(173, 120000)
Sean:SendChatMessage(12, 7, "Work work...")
Sean:RegisterEvent("SeanPinius_07", 121000)
end
function SeanPinius_07(Sean, event)
Sean:MoveTo(1149.655029, -2512.616943, 62.107830, 2.235471)
Sean:RegisterEvent("SeanPinius_01", 120000, 1)
end
RegisterUnitEvent(90017, 18, function() return; end)
Additional Information:
-The NPCs ID is 90017
-The NPC is located in Caer Darrow (Not scholomance, the town outside)
Basically it makes Sean Pinius walk around, do the blacksmith emote on some anvils and a forge, then walks him back to his original position, then it loops.