Bio-ParserZoDok.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/Bio-ParserZoDok.lua
  3. Script Purpose : Bio-Parser Zo'Dok
  4. Script Author : John Adams
  5. Script Date : 2009.02.27
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 124
  9. QUEST_2 = 125
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. ProvidesQuest(NPC, QUEST_2)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasCompletedQuest(Spawn, QUEST_1) then
  21. if HasCompletedQuest(Spawn, QUEST_2) then
  22. Say(NPC, "You're done.", Spawn)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. DidYouGetTheRoots(NPC, Spawn, conversation)
  25. else
  26. DidYouCollectThem(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouCollectThem(NPC, Spawn, conversation)
  30. else
  31. Greetings(NPC, Spawn, conversation)
  32. end
  33. end
  34. ---------------------------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. ---------------------------------------------------------------------------------------------------------------
  37. function Greetings(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok000.mp3", "", "", 652636726, 3529587114, Spawn)
  39. AddConversationOption(conversation, "Interesting.", "dlg_34_1")
  40. StartConversation(conversation, NPC, Spawn, "Greetings. I am Bio-Parser Zo'Dok. I study the land and to some capacity its inhabitants. It's actually such an inhabitant that has captured my interest. South of here I have discovered a strange plant that feeds on flesh. Specifically, it eats the skittering monitors on the loft. It lashes them to the ground with filaments that it extends from the ground, and then draws their nutrients into itself.")
  41. end
  42. function dlg_34_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok001.mp3", "", "", 609913966, 761927847, Spawn)
  46. AddConversationOption(conversation, "I can do it.", "OfferQuest1")
  47. StartConversation(conversation, NPC, Spawn, "Very! I've never seen anything quite like it. Any monitors that wander too close are quickly trapped in its grip. I'd love to get some samples of the monitors once they've been encapsulated in the filament. Perhaps you could lure some of them over to the plant and then pull them from the ground once it tries to eat them. Or are you too squeamish? ")
  48. end
  49. function OfferQuest1(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, QUEST_1)
  52. end
  53. function DidYouCollectThem(NPC, Spawn, conversation)
  54. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok003.mp3", "", "", 280859713, 2049233430, Spawn)
  55. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  56. AddConversationOption(conversation, "Yes, I did.", "dlg_38_1")
  57. else
  58. AddConversationOption(conversation, "Not yet.")
  59. end
  60. StartConversation(conversation, NPC, Spawn, "Did you collect them?")
  61. end
  62. function dlg_38_1(NPC, Spawn)
  63. if HasQuest(Spawn, QUEST_1) then
  64. SetStepComplete(Spawn, QUEST_1, 2)
  65. end
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok004.mp3", "", "", 4099549313, 768729331, Spawn)
  69. AddConversationOption(conversation, "Sure, I can help.", "OfferQuest2")
  70. StartConversation(conversation, NPC, Spawn, "Great! These will keep me busy for some time. While I study this collection, how would you like to help further my studies by gathering some Trythec roots for me? They're not nearly so... unsettling, merely a curiosity. They grow in the tiny jungle to the south.")
  71. end
  72. ------------------------------------------------------------------------------------------------------------------
  73. -- QUEST 2
  74. ------------------------------------------------------------------------------------------------------------------
  75. function OfferQuest2(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, QUEST_2)
  78. end
  79. function DidYouGetTheRoots(NPC, Spawn, conversation)
  80. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok006.mp3", "", "", 1609069608, 4045525587, Spawn)
  81. if HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2 then
  82. AddConversationOption(conversation, "Yes.", "dlg_43_1")
  83. else
  84. AddConversationOption(conversation, "No.")
  85. end
  86. StartConversation(conversation, NPC, Spawn, "Did you get the roots?")
  87. end
  88. function dlg_43_1(NPC, Spawn)
  89. SetStepComplete(Spawn, QUEST_2, 2)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/rok_questvo/bio-parser_zo_dok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/zodok/zodok007.mp3", "", "", 4179618229, 2858561590, Spawn)
  93. AddConversationOption(conversation, "You're welcome.")
  94. StartConversation(conversation, NPC, Spawn, "Perfect. Thank you.")
  95. end