9
3

food_for_kruuprum.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/food_for_kruuprum.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.28 01:01:47
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Merchant Kruuprum
  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 insects such as the centipedes in the Forest Ruins.", 6, 100, "I need to gather food for Merchant Kruuprum in Castleview. Apparently he eats insects such as the centipedes in the Forest Ruins.", 135, 1960026, 8270006)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledBugs")
  15. UpdateQuestZone(Quest, "Forest Ruins")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Praise Marr! Thou would'st be so kind! The meaty part of any insect would rightly do. That should tide me for at least a few days. I would happily pay thee some coin upon thy return.")
  21. Dialog.AddVoiceover("voiceover/english/merchant_kruuprum/qey_village04/merchantkruuprum001.mp3",3403348691,1398407939)
  22. PlayFlavor(QuestGiver, "", "", "boggle", 0,0 , Player)
  23. Dialog.AddOption("Hold out for a bit longer. I'll return as soon as I've found some.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function KilledBugs(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I have killed some insects")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered the food for Merchant Kruuprum in Castleview.")
  36. UpdateQuestZone(Quest, "Castleview Hamlet")
  37. AddQuestStepChat(Quest, 2, "I return to Kruuprum.", 1, "I need give these insects to Kruuprum.", 135, 2360040)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I return to Kruuprum")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I've gathered the food for Merchant Kruuprum in Castleview.")
  43. UpdateQuestDescription(Quest, "Kruuprum was very thankful for the food I provided for him.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. KilledBugs(Quest, QuestGiver, Player)
  49. end
  50. if Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end