get_rich_quick.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : get_rich_quick.lua
  3. Script Purpose : Handles the quest, "Get Rich Quick!"
  4. Script Author : torsten
  5. Script Date : 15.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Armsdealer Silentblade
  9. Preceded by : Free Wares for Silentblade
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Blort.", 1, "I need to bring this shipment of maces to Arms Dealer Blort in Big Bend.", 655, 1340023)
  15. UpdateQuestZone(Quest,"Big Bend")
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I've spoken with Blort.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have given Arms Dealer Blort the maces he's been waiting on.")
  21. UpdateQuestZone(Quest,"Beggar's Court")
  22. AddQuestStepChat(Quest, 2, "I should return to Silentblade.", 1, "I should return to Arms Dealer Silentblade and let him know Blort was given his maces.", 11, 1370011)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I've spoken with Silentblade.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "Silentblade has taught me another trick of the trade in the arms dealer business.")
  28. UpdateQuestDescription(Quest, "I've been shown by Arms Dealer Silentblade that one of the best ways to make money as an arms dealer is to let other people make it for you. It seems the trick is to get a bunch of people to buy from you, and when they have enough recruits, they can sell those weapons to other Arms Dealers. I may look into this someday. It seems I could get rich quick this way!")
  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 need this heavy supply of maces taken to my biggest customer, Blort. He lives out in Big Bend and sells weapons. Bring him these containers of maces. Do it fast. When you return, I'll tell you my secret.")
  35. Dialog.AddVoiceover("voiceover/english/armsdealer_silentblade/fprt_hood04/quests/armsdealersilentblade/silentblade_x2_accept.mp3", 0, 0) --NO KEYS
  36. Dialog.AddOption("Fair enough. I'll be back.")
  37. Dialog.Start()
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end
  42. function Deleted(Quest, QuestGiver, Player)
  43. -- Remove any quest specific items here when the quest is deleted
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end