impish_threats.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/impish_threats.lua
  3. Script Purpose : the quest Impish Threats
  4. Script Author : theFoof
  5. Script Date : 2013.7.19
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Knut Orcbane
  9. Preceded by : None
  10. Followed by : Clan of the Cave Imps
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStepKill(Quest, 1, "Slay the glacial imps that inhabit the cliff north of Cragged Spine.", 8, 100, "The defenders at Cragged Spine are finding it difficult to face the attacking Ry'Gorr orcs while they are being pestered by imps from behind.", 611, 4700066, 4700065, 4701106)
  15. AddQuestStepCompleteAction(Quest, 1, "KilledImps")
  16. end
  17. function Accepted(Quest, QuestGiver, Spawn)
  18. FaceTarget(QuestGiver, Spawn)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "knut_orcbane/halas/cragged_spine/knut_orcbane_015.mp3", "", "", 2593056094, 2652573993, Spawn)
  21. AddConversationOption(conversation, "Will do!")
  22. StartConversation(conversation, QuestGiver, Spawn, "As I knew you would! There's no shying away from duty for you. Report back to me when you have completed this mission, " .. GetName(Spawn) .. ".")
  23. end
  24. function Deleted(Quest, QuestGiver, Spawn)
  25. end
  26. function Declined(Quest, QuestGiver, Spawn)
  27. end
  28. function KilledImps(Quest, QuestGiver, Spawn)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "The number of glacial imps has been reduced.")
  30. AddQuestStepChat(Quest, 2, "Return to Knut Orcbane now that the number of glacial imps has been reduced.", 1, "You should return to Knut Orcbane, at Cragged Spine, now that the number of glacial imps has been reduced.", 0, 4700113)
  31. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  32. end
  33. function CompleteQuest(Quest, QuestGiver, Spawn)
  34. GiveQuestReward(Quest, Spawn)
  35. end
  36. function Reload(Quest, QuestGiver, Spawn, Step)
  37. if Step == 1 then
  38. KilledImps(Quest, QuestGiver, Spawn)
  39. end
  40. end