flawless_core_chore.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/flawless_core_chore.lua
  3. Script Purpose : the quest "Flawless Core Chore"
  4. Script Author : theFoof
  5. Script Date : 2013.7.24
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Knut Orcbane
  9. Preceded by : Becoming Another Orcbane
  10. Followed by : Sometimes You Feel Like a Knut
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(27,50), 0, 0)
  14. AddQuestStepKill(Quest, 1, "Slay velinoid smashers in your effort to obtain their flawless velium cores.", 6, 80, "Slay velinoid smashers in your effort to obtain their flawless velium cores.", 3029, 4700554)
  15. AddQuestStepCompleteAction(Quest, 1, "GotCrystals")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "knut_orcbane/halas/cragged_spine/knut_orcbane_053.mp3", "", "", 592887905, 3275413012, Player)
  21. AddConversationOption(conversation, "I understand.")
  22. StartConversation(conversation, QuestGiver, Player, "It is them, the Velinoid crystal men. The old magick is in them. Seize an armful of their flawless velium cores and return to us.")
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function GotCrystals(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "You have obtained enough flawless velium cores to suffice.")
  30. AddQuestStepChat(Quest, 2, "Return to Knut Orcbane with the flawless velium cores you obtained.", 1, "You should return to Knut Orcbane, at Cragged Spine, with the flawless velium cores you obtained.", 0, 4700113)
  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. GotCrystals(Quest, QuestGiver, Player)
  39. end
  40. end