the_broken_halfling_skull.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/FallenGate/the_broken_halfling_skull.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.11 10:07:44
  5. Script Purpose :
  6. Zone : FallenGate
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "I should destroy tormented dragoons to avenge the dead halfling.", 5, 100, "The visions point toward the tormented dragoons. They should be put to a final rest.", 498, 1190050)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I have destroyed enough tormented dragoons to put the halfling spirit to rest.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "The visions of revenge have faded.")
  30. if HasItem(Player, 5577) then
  31. RemoveItem(Player, 5577, 1)
  32. UpdateQuestDescription(Quest, "The visions have left and the halfling spirit seems to be at peace. For my part, I found a good bit of coin on the last of those tormented dragoons to make this worth my time and effort!")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end