keys_for_sempronia.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/TempleStreet/keys_for_sempronia.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.06 02:11:46
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill diseased ratonga until I find the one with the keys.", 1, 30, "I don't know which of the diseased ratonga took the keys, so I'll just have to kill them until I find the guy.", 11, 8430009,8430010,8430011)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Thieves Way")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've found the keys.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the old vault keys on the body of a diseased ratonga.")
  20. UpdateQuestZone(Quest,"Temple Street")
  21. AddQuestStepChat(Quest, 2, "I need to talk with Sempronia the banker.", 1, "I should bring these keys back to Sempronia in the Temple Street district.", 1007, 1360020)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Perhaps there is. On the way to the bank this morning, I overheard a few ratonga talking about how one of their brethren had come down with a wasting disease. They went on to say that he was the one that stole the spare vault keys and plans on ransoming them back to the Freeport Reserve in exchange for a cure. I'd prefer the Reserve doesn't lose a single copper more over all of this. If you'd be so kind as to try to find this diseased ratonga in the sewers and bring back the keys, I'd be willing to pay you from my own money.")
  28. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/quests/semproniagallus/sempronia_x1_accept.mp3", 494673703, 1541325887)
  29. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  30. Dialog.AddOption("Sounds reasonable, especially the part where I get paid.")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I've spoken with Sempronia.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned the old vault keys to Sempronia the banker in the Temple Street district.")
  43. UpdateQuestDescription(Quest, "I've returned the old vault keys to Sempronia the banker in the Temple Street district.")
  44. GiveQuestReward(Quest, Player)
  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