a_sack_of_rusty_daggers_for_kruuprum.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/a_sack_of_rusty_daggers_for_kruuprum.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.28 01:01:00
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Kruuprum
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Mender Ironmallet.", 1, "I need to find Mender Ironmallet in Graystone Yard.", 0, 2350012)
  13. AddQuestStepCompleteAction(Quest, 1, "IronmalletChat")
  14. UpdateQuestZone(Quest, "Graystone Yard")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function IronmalletChat(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I found Mender Ironmallet.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I found Mender Ironmallet.")
  29. UpdateQuestZone(Quest, "Castleview Hamlet")
  30. AddQuestStepChat(Quest, 2, "I need to return to Kruuprum .", 1, "I need deliver this bag of rusty daggers to Kruuprum in Castleview Hamlet.", 10, 2360040)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I found Mender Ironmallet.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I found Mender Ironmallet.")
  36. UpdateQuestDescription(Quest, "I retrieved a sack of rusted daggers for Merchant Kruuprum of Castleview Hamlet. I think he sells these inferior daggers.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. IronmalletChat(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end