9
3

bronas_thralls.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : bronas_thralls.lua
  3. Script Purpose : Handles the quest, "Brona's Thralls"
  4. Script Author : torsten
  5. Script Date : 11.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Slaver Brona
  9. Preceded by : None
  10. Followed by : Brona's Guard Check
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Bartender Icebrew in the Scale Yard.", 1, "I've got to let Bartender Icebrew from the Scale Yard district know that Brona has new thralls for him to choose from.", 11, 1390051)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've spoken with Bartender Icebrew.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've informed Bartender Icebrew of Brona's new thralls.")
  20. AddQuestStepChat(Quest, 2, "I should return to Brona.", 1, "I should return to Brona to tell her that I have delivered the message.", 11, 1340030)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestDescription(Quest, "Running errands for Slaver Brona wasn't as bad as I had imagined... Perhaps I'll offer my services again.")
  25. GiveQuestReward(Quest, Player)
  26. end
  27. function Accepted(Quest, QuestGiver, Player)
  28. FaceTarget(QuestGiver, Player)
  29. Dialog.New(QuestGiver, Player)
  30. Dialog.AddDialog("Oh? Then drag your sorry carcass to Bartender Icebrew of Scale Yard. Tell him I have new thralls for him to buy. Tell him to hurry, 'cause they won't last. Come back here, and I'll let ya' have a copper.")
  31. Dialog.AddVoiceover("voiceover/english/slaver_brona/fprt_hood1/quests\brona/brona_x1_accept.mp3",4231567409,3154108942)
  32. PlayFlavor(QuestGiver, "","","stare",0,0, Player)
  33. Dialog.AddOption("You better! I'm not doing this for free!")
  34. Dialog.Start()
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is declined
  38. end
  39. function Deleted(Quest, QuestGiver, Player)
  40. -- Remove any quest specific items here when the quest is deleted
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end