pelted.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/pelted.lua
  3. Script Purpose : for the quest "Pelted"
  4. Script Author : theFoof
  5. Script Date : 2013.5.30
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Flibbit Quagmarr
  9. Preceded by : Bartering Crystals
  10. Followed by : To The Great Shelf!
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill icemane cubs for their pelts. I can find the cubs in the Icemane Caves south of Gwenevyn's Cove.", 6, 100, "I must kill icemane cubs.", 122, 4700060, 4700481)
  14. AddQuestStepCompleteAction(Quest, 1, "GotPelts")
  15. AddQuestRewardCoin(Quest, math.random(5,80), math.random(6,15), 0, 0)
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "flibbit_quagmarr/halas/gwenevyns_cove/flibbit_quagmarr/flibbit_quagmarr_052.mp3", "", "", 1207372169, 2214842448, Player)
  21. AddConversationOption(conversation, "I will return once I have the pelts for you.")
  22. StartConversation(conversation, QuestGiver, Player, "Thank you, " .. GetName(Player) .. ". May Mithaniel light your way!")
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function GotPelts(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the icemane cubs.")
  30. AddQuestStepChat(Quest, 2, "I must speak with Flibbit Quagmarr. Flibbit is staying in Gwenevyn's Cove.", 1, "I should return the icemane cub pelts to Flibbit Quagmarr in Gwenevyn's Cove.", 0, 4700045)
  31. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  32. end
  33. function CompleteQuest(Quest, QuestGiver, Player)
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. GotPelts(Quest, QuestGiver, Player)
  39. end
  40. end