vlepos_plan.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/TempleStreet/vlepos_plan.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.30 11:10:47
  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. AddQuestStepChat(Quest, 1, "I need to speak with Shinska.", 1, "Shinska should be around here somewhere. I need to think of a way to steal the weapon.", 11, 1360221)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken with Shinska.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I stole the weapon right from under her rather large nose.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Vlepo.", 1, "Now that I have the weapon, I should bring it back to Vlepo like he asked.", 284, 1360018 )
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. Dialog.New(QuestGiver, Player)
  25. Dialog.AddDialog("Good. I pay you only after you finish job. Find the Shinska and take one of her weapons. When you have it, bring it back here. Be sneaky ... don't let the Shinska know what you are doing.")
  26. -- Dialog.AddVoiceover("voiceover/english/merchant_qwergo_togglesmeet/fprt_hood03/quests/qwergotogglesmeet/qwergo_x1_accept.mp3", 1719061225, 3310642577)
  27. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  28. Dialog.AddOption("She'll never know what happened.")
  29. Dialog.Start()
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I have spoken to Vlepo.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Vlepo the weapon.")
  41. UpdateQuestDescription(Quest, "Vlepo plans on taking the weapon I stole from Shinska and planting it in the Togglesmeets' stall. After that he'll call the guards, framing the gnomes for the theft. Whether it works or not, I've been paid for my time in coin and drink, which is all that matters.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end