joining_the_gang.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : joining_the_gang.lua
  3. Script Purpose : Handles the quest, "Joining the Gang"
  4. Script Author : torsten
  5. Script Date : 15.07.2022
  6. Script Notes :
  7. Zone : Sunken City
  8. Quest Giver : Manius Galla
  9. Preceded by : None
  10. Followed by : Donations from the Banker
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill Blackshield raiders", 10, 100, "I need to kill some of the Blackshields in the Sunken City. I can reach the Sunken City by using any of the bells in and around the City of Freeport.", 611, 1240002)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have killed the Blackshield raiders.")
  18. AddQuestStepChat(Quest, 2, "I should return to Manius.", 1, "I've let Manius know that I've done what it takes to pass his test.", 11, 1370127)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I've killed the raider lackeys as Manius asked, completing my test. He said he'll think about letting me join, as he hasn't decided yet. I should check back with him later.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Accepted(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is accepted
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. Step1Complete(Quest, QuestGiver, Player)
  37. elseif Step == 2 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end