elddar_rope.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/QeynosHarbor/elddar_rope.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.23 07:05:41
  5. Script Purpose :
  6. Zone : QeynosHarbor
  7. Quest Giver: Harron
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should get the rope from Adrianna.", 1, "I must go to Elddar Grove and get the rope that Harron ordered from Adrianna.", 11, 2070065)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"The Elddar Grove")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I got the rope from Adrianna.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have been to Elddar Grove and picked up the rope that Harron ordered.")
  29. UpdateQuestZone(Quest,"Qeynos Harbor")
  30. AddQuestStepChat(Quest, 2, "I should get this rope back to Harron in Qeynos Harbor.", 1, "Harron is waiting for this rope in the Qeynos Harbor.", 2329, 2210038)
  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 delivered the rope to Harron.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Harron the rope he ordered from the Elddar Grove.")
  37. UpdateQuestDescription(Quest, "I have been to Elddar Grove and picked up the rope that Harron ordered so he can make nets and harpoon line. He gave me some coin for my help.")
  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