9
3

the_filament_strangler.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/TimorousDeep/the_filament_strangler.lua
  3. Script Purpose : Handles the quest, "The Filament Strangler"
  4. Script Author : Scatman
  5. Script Date : 2009.02.27
  6. Zone : Timorous Deep
  7. Quest Giver: Bio-Parser Zo'Dok
  8. Preceded by: None
  9. Followed by: It Can't ALL Be Interesting Work (it_cant_all_be_interesting_work.lua)
  10. --]]
  11. function Init(Quest)
  12. -- filament encapsulated monitor
  13. AddQuestStepObtainItem(Quest, 1, "I need some filament encapsulated monitors for Bio-Parser Zo'Dok.", 3, 100, ".", 136, 5080)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotFilaments")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok002.mp3", "", "", 4085643923, 1538179326, Player)
  20. AddConversationOption(conversation, "Ok.")
  21. StartConversation(conversation, QuestGiver, Player, "And don't worry, the plant won't try to eat you. It can recognize the lizards somehow and only attacks them. Besides, you're much too big to wrap up.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotFilaments(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have collected the filament encapsulated monitors.")
  27. AddQuestStepChat(Quest, 2, "I need to bring these monitors to Bio-Parser Zo'Dok.", 1, ".", 141, 2630080)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestDescription(Quest, "I have brought some samples of the lizards the plant preys on back to Zo'Dok.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. step1_complete_gotFilaments(Quest, QuestGiver, Player)
  37. end
  38. end