9
3

to_the_great_shelf.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/to_the_great_shelf.lua
  3. Script Purpose : for the quest "To the Great Shelf!"
  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 : Pelted
  10. Followed by : None
  11. --]]
  12. require"SpawnScripts/FrostfangSea/FlibbitQuagmarr"
  13. function Init(Quest)
  14. AddQuestRewardCoin(Quest, math.random(8,80), math.random(13,25), 0, 0)
  15. AddQuestStep(Quest, 1, "I must make sure Splorpy is ready to leave.", 1, 100, "I must speak with Splorpy at Gwenevyn's Cove and make sure he is ready to go.", 0)
  16. AddQuestStepCompleteAction(Quest, 1, "GotSplorpy")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "flibbit_quagmarr/halas/gwenevyns_cove/flibbit_quagmarr/flibbit_quagmarr_059.mp3", "", "", 1062705629, 386941071, Player)
  22. AddConversationOption(conversation, "I'm ready. Is Splorpy ready to go?", "Quest6Chat_6")
  23. StartConversation(conversation, QuestGiver, Player, "Thank you! I will catch up with you both, soon. I have heard rumors of a small cavern carved out by some dwarves. I'll meet you there.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. SetTempVariable(Player, "splorp", nil)
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function GotSplorpy(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "Splorpy is ready to leave.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "Splorpy and I have begun our journey across the Icemane Plains to the Great Shelf.")
  33. AddQuestStepChat(Quest, 2, "I must take Splorpy to his father Flibbit Quagmarr. Flibbit is at The Great Shelf.", 1, "I must escort Splorpy to his father Flibbit at The Great Shelf.", 0, 4700045)
  34. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  35. end
  36. function CompleteQuest(Quest, QuestGiver, Player)
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. GotSplorpy(Quest, QuestGiver, Player)
  42. end
  43. end