not_since_the_invention_of_the_wheel.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/TempleStreet/not_since_the_invention_of_the_wheel.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.01 04:11:43
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver: Zninki Flatzazzle
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to check each one of these a vagrant squatters to find who stole the Bread Bisector.", 1, 22, "According to his other device, Zninki claims the squatters are in the city outskirts. I bet they've run to the Ruins.", 23, 8420023,8420066)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Ruins")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've found the Bread Bisector on one of the a vagrant squatters.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to find the Bread Bisector, which looks awfully similar to a knife.")
  20. UpdateQuestZone(Quest,"Temple Street")
  21. AddQuestStepChat(Quest, 2, "I need to speak with Zninki.I", 1, " need to return this device to Zninki Flatzazzle.", 23, 1360032)
  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("Would you? That would be most satisfactory! Why yes, I like that idea very much. I shall eagerly await the return of my ingenious device – the Bread Bisector!")
  28. PlayFlavor(QuestGiver,"","","happy",0,0,Player)
  29. Dialog.AddOption("I'll see what I can do.")
  30. Dialog.Start()
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. -- Remove any quest specific items here when the quest is deleted
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I've spoken with Zninki.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Zninki the Bread Bisector, which he was rather pleased by.")
  42. UpdateQuestDescription(Quest, "I've returned Zninki's Bread Bisector to him. He demonstrated the device to me, and I have to say I don't think I've ever seen any invention greater than that.")
  43. GiveQuestReward(Quest, Player)
  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