9
3

the_fallen_bell.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Antonica/the_fallen_bell.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.07 06:05:06
  5. Script Purpose : From the bell in the Tower of Vhalen in Antonica
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to destroy gnolls in Antonica.", 40, 100, "The gnolls, always preying on the helpless and weak, should be eradicated! They constantly pose a threat to the safety of Qeynosians, and I should do my part to keep them in check.", 611, 120013,120015 ,120184, 120203 ,120212 ,120251 , 120252 ,120290 ,120291,120295 , 120296 ,120300 ,120304 ,120310,120340 ,120355, 120361 ,120362, 120363 , 120364 ,120376 ,120378 ,120379, 120380, 120395,120397 ,120407,120420, 120424, 120425, 120426, 120427, 120429,120430, 120437, 120441, 120804, 120416, 120419, 120858, 121488, 121833, 121845 )
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I have destroyed quite a few gnolls in Antonica.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have destroyed a good portion of the gnoll population in Antonica, I hope this helps.")
  28. SendMessage(Player,"You feel a slight shifting of weight in one of your pockets.")
  29. if GetClass(Player)>=1 and GetClass(Player)<=10 then
  30. SummonItem(Player,135400,1)
  31. elseif GetClass(Player)>=11 and GetClass(Player)<=20 then
  32. SummonItem(Player,155598,1)
  33. elseif GetClass(Player)>=21 and GetClass(Player)<=30 then
  34. SummonItem(Player,191961,1)
  35. else
  36. SummonItem(Player,155599,1)
  37. end
  38. UpdateQuestDescription(Quest, "I have slain quite a few gnolls, I hope my efforts do not go unnoticed. There are so many of them!")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end