9
3

a_rediscovered_shrine.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/Antonica/a_rediscovered_shrine.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.29 08:08:21
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I should find the shrine.", 10, "I should find the location of that shrine for Riason.", 11, 345, 5, 1185, 249)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I hate sad goodbyes...")
  19. StartConversation(conversation, QuestGiver, Player, "Cooper's letter said the shrine is at the southern edge of the Thundering Steppes. That's quite a journey for someone like you, and I won't shed a tear if you do not return.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I found the shrine.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found the shrine to the far south of the Thundering Steppes.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Riason Hanagom.", 1, "I need to return to Riason for my pay.", 11, 120150)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I received my payment.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I received my payment from Riason Hanagom.")
  37. UpdateQuestDescription(Quest, "That cretin Riason sent me to a shrine of disease! I found the Shrine of Bertoxxulous to the south of the Thundering Steppes covered with gnolls. If I get sick I am going to throttle that man...")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end