9
3

sleetfoot_search_party.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/sleetfoot_search_party.lua
  3. Script Purpose : for the quest "Sleetfoot Search Party"
  4. Script Author : theFoof
  5. Script Date : 2013.6.13
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Thirin Veliumdelver
  9. Preceded by : A Good Distraction
  10. Followed by : Seeking Elemental Education
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(52,65), 0, 0)
  14. AddQuestStepLocation(Quest, 1, "I need to search for Ordin Sleetfoot.", 5, "I should return to where I last saw Ordin Sleetfoot and make sure he is okay.", 0, -254.09, -17.42, -37.16)
  15. AddQuestStepCompleteAction(Quest, 1, "FoundBody")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "thirin_veliumdelver/halas/cragged_spine/thirin_veliumdelver_cave014.mp3", "", "", 2567826241, 991797781, Player)
  21. AddConversationOption(conversation, "We will. I will return shortly when I've found him.")
  22. StartConversation(conversation, QuestGiver, Player, "Thank ye, my friend. Perhaps we will share an ale together with Ordin once this is all done.")
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function FoundBody(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have found Ordin Sleetfoot.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have discovered Ordin Sleetfoot's body, near a large elemental creature made of ice and velium")
  31. AddQuestStepChat(Quest, 2, "I should speak with Thirin Veliumdelver about Ordin.", 1, "I have discovered Ordin Sleetfoot's body, near what appears to be a creature made of ice and velium. I should return to Thirin Veliumdelver and tell him of Ordin's fate.", 0, 4700112)
  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. FoundBody(Quest, QuestGiver, Player)
  40. end
  41. end