batwing_crunchies_for_jerben.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. 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, 1970014)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. PlayFlavor(NPC, "", "Ooh...I can't wait for some crunchies!", "manipulate", 1689589577, 4560189, Spawn)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have gathered the bat wings that I needed.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've collected all five albino bat wings for Jerben Sleepwell at the harbor in the Qeynos Province District.")
  27. AddQuestStepChat(Quest, 2, "I need to speak with Jerben Sleepwell", 1, "I need to return to Jerben Sleepwell at the harbor in the Qeynos Province District.", 11, 2340030, 6600463)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken with Jerben Sleepwell.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Jerben Sleepwell regarding the bat wings.")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end