9
3

sneeds_supplies.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/NorthQeynos/sneeds_supplies.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.13 11:05:51
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Sneed Galliway
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Get Sneed's supplies from Blacksmith Hegrenn.", 1, "I must find Blacksmith Hegrenn and get the order for Sneed.", 11, 2310038)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"South Qeynos")
  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. UpdateQuestStepDescription(Quest, 1, "I've gotten the supplies for Sneed.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've got Sneed's supplies from the blacksmith.")
  28. AddQuestStepChat(Quest, 2, "Deliever Sneed's supplies to him in North Qeynos.", 1, "I must make sure Sneed gets these supplies back at his shop in North Qeynos.", 566, 2220027)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. UpdateQuestZone(Quest,"North Qeynos")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I've delievered supplies for Sneed.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've delievered Sneed's supplies from the blacksmith.")
  36. UpdateQuestDescription(Quest, "I helped Sneed Galliway by getting his order from Blacksmith Hegrenn. I even earned some coin in the process.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end