9
3

improving_the_design.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/TempleStreet/improving_the_design.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.01 08:11:32
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver: Sparzit
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill some undead pikemen and collect bone rot from them.", 10, 100, "I need to kill some undead pikemen in the Graveyard. I'll try to collect the samples after I've killed them.", 181, 8390024)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Graveyard")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have gathered the bone rot from the pikemen.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to collect the samples of bone rot for Sparzit.")
  20. UpdateQuestZone(Quest,"Temple Street")
  21. AddQuestStepChat(Quest, 2, "I need to speak with Sparzit in Temple Street.", 1, "This is the amount that Sparzit asked for, so I should return them to him. He is in Temple Street in Freeport, standing near the makeshift bar in the downstairs plaza.", 102, 1360041)
  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("Wonderful! What I need is a time-released debilitating toxin ... which is precisely the active substance found in the decomposing osteonecrotic tissue of the undead! Good friend, go and find me some samples of \"bone rot\" from those Undead Pikemen. Bring the samples to me and I'll give you some coin.")
  28. Dialog.AddVoiceover("voiceover/english/sparzit_cogsnibble/fprt_hood03/quests/sparzitcogsnibble/sparzit_x2_accept.mp3", 2139375878, 1700119912)
  29. PlayFlavor(QuestGiver,"","","happy",0,0,Player)
  30. Dialog.AddOption("Err... \"Bone Rot\"? I'll see what I can do.")
  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 have given Sparzit the samples as he requested.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Sparzit the samples as he requested.")
  43. UpdateQuestDescription(Quest, "Sparzit offered me some coin for my time that I spent collecting samples of bone rot for him.")
  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