Nirelz
Epic Member
Code:
local entry = 44011
local T =
{
{1122.253174, -1785.297729, 60.963055, "Let's begin our journey"},
{1106.852173, -1792.795776, 60.794872, "Test2"}, -- this text is just to see if it actually loaded correctly
{1078.978149, -1803.456421, 65.286316, "Test3"}, -- this text is just to see if it actually loaded correctly
}
local function Move(creature, id)
creature:MoveClear()
if(not id) then
id = 1
elseif(#T < id) then -- last point reached, dont do anything
return
end
local x,y,z,text = table.unpack(T[id])
creature:MoveTo(id, x, y, z)
if(text) then
creature:SendUnitSay(text, 0)
end
end
local function QuestAccept(event, player, creature, quest)
if(quest:GetId() == 30006) then
Move(creature) -- start moving
end
end
local function ReachedPoint(event, creature, Type, id)
if(Type == 8) then
Move(creature, id+1) -- move to next point
end
end
RegisterCreatureEvent(entry, 31, QuestAccept)
RegisterCreatureEvent(entry, 6, ReachedPoint)
When reached reached first waypoint he stops and tells "test2" "test3" but he dosnt move to the waypoint i added in on it
Anyone got any idea why?
side-note: talked with Rochet alot regarding this and couldnt rly figure out why he didnt move on reaching first waypoint
Last edited: