disarming_the_rygorr.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/FrostfangSea/disarming_the_rygorr.lua
  3. Script Purpose : the quest Disarming the Ry'Gorr
  4. Script Author : theFoof
  5. Script Date : 2013.6.3
  6. Zone : Frostfang Sea
  7. Quest Giver : Blorpisa Bogchild
  8. Preceded by : Weapon of Choice
  9. Followed by : Perfectly Missing
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(5,80), math.random(13,25), 0, 0)
  13. AddQuestStep(Quest, 1, "I must cleanse Ry'Gorr weapons.", 5, 100, "I must go to the battlefield and cleanse Ry'Gorr weapons.", 616)
  14. AddQuestStepCompleteAction(Quest, 1, "CleansedWeapons")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if not HasItem(Player, 47614) then
  18. SummonItem(Player, 47614, 1)
  19. end
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. if HasItem(Player, 47614) then
  23. RemoveItem(Player, 47614)
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function CleansedWeapons(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have cleansed the Ry'Gorr weapons I found on the battlefield.")
  30. AddQuestStepChat(Quest, 2, "I must speak with Blorpisa Bogchild. Blorpisa is staying at the Great Shelf.", 1, "I must return to Blorpisa at the Great Shelf and tell her that her potion was a success.", 0, 4700039)
  31. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  32. end
  33. function CompleteQuest(Quest, QuestGiver, Player)
  34. GiveQuestReward(Quest, Player)
  35. if HasItem(Player, 47614) then
  36. RemoveItem(Player, 47614)
  37. end
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. CleansedWeapons(Quest, QuestGiver, Player)
  42. end
  43. end