a_stone_from_home.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Graystone/a_stone_from_home.lua
  3. Script Purpose : Handles the quest, "A Stone From Home"
  4. Script Author : Scatman
  5. Script Date : 2009.10.05
  6. Zone : Graystone Yard
  7. Quest Giver: Mav Boilfist
  8. Preceded by: A Package (a_package.lua)
  9. Followed by: A Missing Husband (a_missing_husband.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to examine Mav's stone while near the Stone of Kaladim in Graystone Yard.", 1, 100, "I need to take Mav's stone to the Stone of Kaladim here in the Graystone Yard and see if anything interesting happens.", 0)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_ExaminedStone")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. -- Mav's Stone
  19. if not HasItem(Player, 9384, 1) then
  20. SummonItem(Player, 9384, 1)
  21. end
  22. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/mav_boilfist/qey_village03/quests/mav_boilfist/mav_boilfist029b.mp3", "", "", 2185318647, 3149226816, Player)
  23. AddConversationOption(conversation, "I can't wait to see what happens!")
  24. AddConversationOption(conversation, "I doubt anything will happen.")
  25. StartConversation(conversation, QuestGiver, Player, "I can't wait to hear what happens!")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function Step1_Complete_ExaminedStone(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have examined Mav's stone.")
  31. AddQuestStepChat(Quest, 2, "I should return to Mav Boilfist.", 1, "I need to take Mav's stone to the Stone of Kaladim here in the Graystone Yard and see if anything interesting happens.", 0, 2350016)
  32. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  33. end
  34. function Quest_Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have spoken with Mav Boilfist.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have done as Mav asked.")
  37. -- Mav's Stone
  38. while HasItem(Player, 9384) do
  39. RemoveItem(Player, 9384)
  40. end
  41. GiveQuestReward(Quest, Player)
  42. UpdateQuestDescription(Quest, "I have returned Mav's stone to her.")
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1_Complete_ExaminedStone(Quest, QuestGiver, Player)
  47. end
  48. end