9
3

shivos_arcane_rod.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/TheSprawl/shivos_arcane_rod.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.15 04:11:25
  5. Script Purpose :
  6. Zone : TheSprawl
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should show this rod to someone in Freeport.", 1, "I should show this rod to someone and see if they know what it does. I hear there's an extensive library in the City of Freeport. Maybe someone there would know.", 169, 1440034 )
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. UpdateQuestZone(Quest,"North Freeport")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if HasItem(Player, 2292) then
  18. RemoveItem(Player, 2292)
  19. SendMessage(Player,"You place the magic rod in your quest satchle.")
  20. end
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I returned the rod to Claudia Quart.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I returned the rod to Claudia Quart and received a reward.")
  32. UpdateQuestDescription(Quest, "It turns out the rod was originally the possession of Claudia Quart. The Great Shivo stole it from her some time ago. I returned the rod to Claudia for a reward.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end