batwing_crunchies_for_jerben.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/StarcrestCommune/batwing_crunchies_for_jerben.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.25 10:09:52
  5. Script Purpose :
  6. Zone : StarcrestCommune, Qeynos Province District
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. UpdateQuestZone(Quest,"Caves")
  13. AddQuestStepKill(Quest, 1, "I must gather the wings from five albino bats in the Caves. The locals call these bats 'shale bats'.", 5, 30, "I need to gather up some bat wings for Jerben Sleepwell at the harbor in the Qeynos Province District. The bat wings can be found in the Caves, reachable by mariner bell within the City of Qeynos.", 140, 197001, 8260016,8260018,8260073,8260080)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. PlayFlavor(QuestGiver, "", "Ooh...I can't wait for some crunchies!", "manipulate", 1689589577, 4560189, Player)
  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 have gathered the bat wings that I needed.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've collected all five albino bat wings for Jerben Sleepwell at the harbor in Starcrest Commune.")
  28. UpdateQuestZone(Quest,"Starcrest Commune")
  29. AddQuestStepChat(Quest, 2, "I need to speak with Jerben Sleepwell", 1, "I need to return to Jerben Sleepwell at the harbor in the Starcrest Commune.", 140, 2340030, 6600463)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  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 spoken with Jerben Sleepwell.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Jerben Sleepwell regarding the bat wings.")
  36. UpdateQuestDescription(Quest, "Jerben Sleepwell was very pleased that he could once again have his favorite dish. He paid me a little coin for my services, but better than that, I know he and his wife will be happy tonight! The extra table is a welcome addition to my needed furniture collection as well.")
  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