9
3

verins_new_thralls.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : verins_new_thralls.lua
  3. Script Purpose : Handles the quest, "Verin's New Thralls"
  4. Script Author : torsten/Dorbin
  5. Script Date : 24.07.2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Scale Yard
  8. Quest Giver : Verin Ithelz
  9. Preceded by : None
  10. Followed by : Preventative Maintenance
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill ten Dervish crooks.", 10, 100, "I should travel to the Sprawl and start beating on these dervish crooks.", 611, 1260000)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"The Sprawl")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the Dervish crooks.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've beaten up ten of the dervishes.")
  21. UpdateQuestZone(Quest,"Scale Yard")
  22. AddQuestStepChat(Quest, 2, "I should return to Verin Ithelz.", 1, "They didn't take too long before they died, so I don't think Verin will be pleased with these potential replacements for his current thralls. I should let him know this.", 11, 1390020)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have spoken with Verin.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Verin about the durability of the dervishes, or lack thereof.")
  28. UpdateQuestDescription(Quest, "Verin paid me for testing the dervish crooks' mettle and let me keep one of their manacles. He told me that he may have further use of me in the future, so I should check back with him later.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("I've been considering the chattel that runs free in the Sprawl. You know ... those roustabouts who call themselves Guttersnipes. Ha! I want to know how much of a beating they can take before they're no longer ... ah ... useful. Yes. Go to the Sprawl and very slowly kill some of them. Return to me with your report, and I will pay you in coin.")
  35. --Dialog.AddVoiceover("voiceover/english/colin_stoutfist/fprt_hood06/quests/colinstoutfist/colin_x1_accept.mp3",1343954066,3596296789)
  36. PlayFlavor(QuestGiver, "","","tapfoot",0,0, Player)
  37. Dialog.AddOption("I'll see how long they last. You better have that coin ready!")
  38. Dialog.Start()
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. -- Remove any quest specific items here when the quest is deleted
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end