domestication_is_the_new_survivalism.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/FrostfangSea/domestication_is_the_new_survivalism.lua
  3. Script Purpose : for the quest "Domestication is the New Survivalism"
  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 : Tackling the Basilisks
  10. Followed by : Domestication is the New Survivalism
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,80), math.random(13,25), 0, 0)
  14. AddQuestStep(Quest, 1, "I must harvest frostbiter basilisk eggs.", 8, 100, "I must harvest frostbiter basilisk eggs. The basilisks' nests can be found to the east of the Great Shelf, along the shoreline past the battlefield.", 1190)
  15. AddQuestStepCompleteAction(Quest, 1, "GotEggs")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  21. AddConversationOption(conversation, "You can count on me.")
  22. AddConversationOption(conversation, "We all do what we can.")
  23. StartConversation(conversation, QuestGiver, Player, "I don't expect the adult basilisks will take kindly to ye poking around in their nests, so prepare for a fight. And thank ye, in advance, for the help. Yer a reliable and generous sort and it'd be a bleak world without ye.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function GotEggs(Quest, QuestGiver, Player)
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have harvested the frostbiter basilisk eggs.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  33. end
  34. function CompleteQuest(Quest, QuestGiver, Player)
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. GotEggs(Quest, QuestGiver, Player)
  40. end
  41. end