StopTheElementals.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/StopTheElementals.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.09 01:07:13
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: N/A
  8. Preceded by: The Gnoll Cave
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Locate the source of the released fire elementals.", 1, 100, "If Tish's magical equipment caused this, then I should find the source to recover her property.", 11, 5940005)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestTaskGroupDescription(Quest, 1, "I have found what appears to be Tish's lost equipment.")
  17. AddQuestStepChat(Quest, 2, "Return the equipment to Tish Tickers.", 1, "The Rampaging Elemental was carrying some strange arcane equipment. I should bring this to Tish in the Thundering Steppes.", 11, 2490042)
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Step2Complete(Quest, QuestGiver, Player)
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. Step2Complete(Quest, QuestGiver, Player)
  34. end
  35. end