questiksarskull.lua 751 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : IksarSkullFire.lua
  3. Script Purpose : Iksar Skull Fire for quest 152
  4. Script Author : Xanibunib
  5. Script Date : 4.1.2009
  6. Script Notes : <special-instructions>
  7. --]]
  8. -- Quest ID's
  9. local QUEST_3 = 342 --152 --Paying homage to the past--
  10. function spawn(NPC)
  11. SetRequiredQuest(NPC, QUEST_3, 3)
  12. end
  13. function hailed(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, Message)
  18. if HasQuest(Spawn, QUEST_3) and GetQuestStep(Spawn, QUEST_3) == 3 and Message == "place skulls" then
  19. --492 for fire
  20. SpawnSet(NPC, "visual_state", "492")
  21. AddTimer(NPC, 5000, "EndFire")
  22. SetStepComplete(Spawn, QUEST_3, 3)
  23. end
  24. end
  25. function EndFire(NPC)
  26. SpawnSet(NPC, "visual_state", "0")
  27. end