will_fight_for_fun.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/TheSprawl/will_fight_for_fun.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.12.13 07:12:13
  5. Script Purpose : This quest was designed to give an inactive/useless quest reward purpose from Scale Yard and a reason to kill Woodelves/halflings in The Sprawl.
  6. Zone : TheSprawl
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Kill any wood elves, halflings, and dwarves in The Sprawl", 12, 100, "I'm in the mood to clear out the Qeynosian riff-raff in The Sprawl. Let me see how beg for death as I end their miserable existance!", 91,8400031,8400029,8400030)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if HasItem(Player, 1001111,1) then
  17. RemoveItem(Player, 1001111)
  18. SendMessage(Player,"You place the lock of smooth hair in your quest satchle.")
  19. end
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  25. UpdateQuestStepDescription(Quest, 1, "I have killed the Qeynosian troublemakers.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the Qeynosian troublemakers. Their tears were reward enough.")
  27. if HasItem(Player, 1001111) then
  28. RemoveItem(Player, 1001111)
  29. end
  30. UpdateQuestDescription(Quest, "I've culled the Sprawl of a potential threat. Their tears were satisfying as I cut them down!")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. QuestComplete(Quest, QuestGiver, Player)
  36. end
  37. end