9
3

nogginspark_reactors.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/Baubbleshire/nogginspark_reactors.lua
  3. Script Purpose : Handles the quest, "Nogginspark Reactors"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : The Baubbleshire
  7. Quest Giver: Neezer Grund
  8. Preceded by: Scraptastic! (scraptastic.lua)
  9. Followed by: Neezer's Survery (neezers_survery.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect some Nogginspark Reactors.", 7, 100, "I need to collect some Nogginspark Reactors from the rats in the Baubbleshire that are near the grate to the Catacombs.", 791, 2380126)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedRats")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/neezer_grund/qey_village06/quests/neezer_grund/neezer_grund034a.mp3", "", "", 2831738358, 3598455810, Player)
  19. AddConversationOption(conversation, "I'll be back when I've collected seven reactors.")
  20. StartConversation(conversation, QuestGiver, Player, "They shouldn't be too much of a problem. Remember, they hang out near the Catacomb entrance.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_killedRats(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have collected the Nogginspark Reactors.")
  26. AddQuestStepChat(Quest, 2, "I need to return these Nogginspark Reactors to Neezer Grund.", 1, "I need to collect some Nogginspark Reactors from the rats in the Baubbleshire that are near the grate to the Catacombs.", 0, 2380038)
  27. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have returned the Nogginspark Reactors to Neezer Grund.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the Nogginspark reactors and returned them to Neezer.")
  32. UpdateQuestDescription(Quest, "I have collected the Nogginspark Reactors and given them to Neezer Grund.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. step1_complete_killedRats(Quest, QuestGiver, Player)
  38. end
  39. end