Hey guys, I recently cooked up a small script to get 2 guardians for the player to fight a boss with. There's 3 problems, they don't spawn with a shield and sword that they are suppose to, they don't respawn if you die, and they don't despawn if you finish the quest. Here's the script,
function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
if pPlayer:HasQuest(90001) then
pPlayer:CreateGuardian(90004, 1000000, 90, 4)
end
end
RegisterServerHook(14, "OnQuestAccept")
function OnQuestAccept(event, pPlayer, questId, pQuestGiver)
if pPlayer:HasQuest(90001) then
pPlayer:CreateGuardian(90004, 1000000, 90, 4)
end
end
RegisterServerHook(14, "OnQuestAccept")