Well I managed to get the script to recodnize Whitemane but she talks when the player kills the monster for the quest and then again after the player hands in the quest. She should only talk when the player hands it in. Also she won't walk to the location specified. Help is always appreciated.
Code:
local Running = false
function OnQuestComplete_Whitemane90001(event, pPlayer, QuestId, pQuestGiver)
if(QuestId == 90001 and not Running) then
local Whitemane = pPlayer:GetCreatureNearestCoords(199.408005, 121.653, 134.910004, 90010)
if(Whitemane) then
Running = true
Whitemane:SendChatMessage(12, 7, "Follow me.")
Whitemane:RegisterEvent("Move01_Whitemane", 1000, 1)
end
end
end
function Move01_Whitemane(pUnit, event)
pUnit:MoveTo(201.447388, 52.051525, 128.766281, 4.742254)
pUnit:RegisterEvent("Move02_Whitemane", 10000, 1)
end
function Move02_Whitemane(pUnit, event)
pUnit:MoveTo(234.638535, 48.716961, 115.707848, 6.163822)
Running = false -- This should be at the end of the script (Whitemane despawned/respawned)
end
RegisterServerHook(22, "OnQuestComplete_Whitemane90001")
Edit: Someone managed to fix the bug where whitemane would talk when you kill the mob, the script above has been updated. Whitemane still refuses to walk to the location she should.