pouring_one_out_for_my_skellies.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/FrostfangSea/pouring_one_out_for_my_skellies.lua
  3. Script Purpose : for the quest "Pouring One Out for My Skellies"
  4. Script Author : theFoof
  5. Script Date : 2013.5.31
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Belka Thunderheart
  9. Preceded by : 'Tis Most Unnatural
  10. Followed by : No Substitute for Shard Work
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I must pour Fronden's Finest on several Ry'Gorr bone piles.", 5, 100, "I must pour Fronden's Finest on several Ry'Gorr bone piles. The bone piles litter the battlefield of the Great Shelf.", 2209)
  14. AddQuestStepCompleteAction(Quest, 1, "PouredAle")
  15. AddQuestRewardCoin(Quest, math.random(5,80), math.random(6,15), 0, 0)
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if not HasItem(Player, 46438) then
  19. SummonItem(Player, 46438, 1)
  20. end
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  24. AddConversationOption(conversation, "We'll find out. Wish me luck.")
  25. AddConversationOption(conversation, "I wasn't expecting it to be easy.")
  26. StartConversation(conversation, QuestGiver, Player, "I can't imagine a skeleton will hold still long enough to let ye splash them, so ye'll want to pour this on the bone piles of the recently re-deceased.")
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. RemoveItem(Player, 46438)
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. end
  33. function PouredAle(Quest, QuestGiver, Player)
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have successfully destroyed the Ry'Gorr bone piles.")
  35. AddQuestStepChat(Quest, 2, "I must speak with Belka Thunderheart.", 1 ,"I must speak with Belka Thunderheart, who can be found in the cave at the Great Shelf.", 0, 4700079)
  36. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  37. end
  38. function CompleteQuest(Quest, QuestGiver, Player)
  39. GiveQuestReward(Quest, Player)
  40. RemoveItem(Player, 46438)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. PouredAle(Quest, QuestGiver, Player)
  45. end
  46. end