dollnapping.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/GreaterFaydark/dollnapping.lua
  3. Script Purpose : Handles the quest, "Dollnapping!"
  4. Script Author : Scatman
  5. Script Date : 2009.03.29
  6. Zone : Greater Faydark
  7. Quest Giver: Sua Augren
  8. Preceded by: Broken Buttons (broken_buttons.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Elder's Crown
  13. -- Redstone Loop
  14. -- Golden Wraps
  15. -- Steel Plated Shield
  16. -- Dewdrop Trinket
  17. AddQuestStepKill(Quest, 1, "I need to get Ami's doll back from the Klixie, Yellowjacket. The Klixies hang around the area to the southeast of Amethyst Pond.", 1, 100, "I should find the Klixie called Yellowjacket and get Ami's doll back for her. The Klixies usually hang around to the south east of Amethyst Pond.", 2254, 1140052)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledYellowjacket")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/exp03_questvo2/sua_augren/_exp03/exp03_rgn_greater_faydark/sua_augren/sua_augren006.mp3", "", "", 2584537319, 806721000, Player)
  24. AddConversationOption(conversation, "No problem. I'll get the doll for Ami.")
  25. StartConversation(conversation, QuestGiver, Player, "I couldn't ask you to do that. It would be wonderful if Ami got her doll back, but it's too dangerous.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function Step1_Complete_KilledYellowjacket(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I got Ami's doll back from the Klixie Yellowjacket.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I got Ami's doll back from the Klixie Yellowjacket.")
  32. AddQuestStepChat(Quest, 2, "I should give the doll I recovered back to Ami.", 1, "I should give the doll I recovered from Yellowjacket to Ami Augren. It would make her really happy to see it.", 2254, 1140019)
  33. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  34. end
  35. function Quest_Complete(Quest, QuestGiver, Player)
  36. UpdateQuestDescription(Quest, "I got Ami's doll back from Yellowjacket and returned it to her. Ami seems much happier now that she has her favorite toy again.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1_Complete_KilledYellowjacket(Quest, QuestGiver, Player)
  42. end
  43. end