in_search_of_the_tower_of_the_order_of_three.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Baubbleshire/in_search_of_the_tower_of_the_order_of_three.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.19 01:01:28
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Algan Tinmizer
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I need to locate the mage tower ruins.", 6, "I need to locate the mage tower ruins in the Forest Ruins.", 0, 1117.56, -9.25, -760.03, 827)
  13. AddQuestStepCompleteAction(Quest, 1, "TowerRuins")
  14. UpdateQuestZone(Quest, "Forest Ruins")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'll be back shortly, I hope.")
  20. StartConversation(conversation, QuestGiver, Player, "Good! I can't wait to hear about it!")
  21. PlayFlavor(QuestGiver, "","","clap",0,0,Player)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function quest_complete(Quest, QuestGiver, Player)
  26. end
  27. function TowerRuins(Quest, QuestGiver,Player)
  28. UpdateQuestStepDescription(Quest, 1, "I found the mage tower ruins.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I located the mage tower ruins.")
  30. UpdateQuestZone(Quest, "Baubbleshire")
  31. AddQuestStepChat(Quest, 2, "I need to inform Algan Tinmizer", 1, "I need to return and speak with Algan Tinmizer.", 0, 2380037)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have told Algan Tinmizer.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to speak to Algan Tinmizer.")
  37. UpdateQuestDescription(Quest, "I discovered the location of the ancient ruins of the Order of Three. This information was passed on to Algan Tinmizer of Baubbleshire who in turn paid me for my service.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. TowerRuins(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end