FawnStarstone.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/FawnStarstone.lua
  3. Script Purpose : Fawn Starstone
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Recreated dialog / movement loop - 07.04.2022
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,241)
  11. waypoints(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11)<0 then
  18. FaceTarget(NPC, Spawn)
  19. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  20. elseif not HasCompletedQuest(Spawn,241) then
  21. Dialog2(NPC, Spawn)
  22. else
  23. DialogFinish(NPC, Spawn)
  24. end
  25. end
  26. function Dialog1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("Wonderful! Thank you so much.")
  30. Dialog.AddOption("I'll be back.")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  37. Dialog.AddDialog("Welcome to the village! I hope you find everything you need. I wish I had!")
  38. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1051.mp3", 0, 0)
  39. if not HasQuest(Spawn,241) and not HasCompletedQuest(Spawn,241) and GetLevel(Spawn) >= 8 then
  40. Dialog.AddOption("What do you mean, you wish you had?", "Dialog4")
  41. end
  42. if GetQuestStep(Spawn,241)==4 then
  43. Dialog.AddOption("I've managed to gather all the components you needed to start your garden.","Turnin")
  44. end
  45. Dialog.AddOption("Thanks for the welcome! See you around!")
  46. Dialog.Start()
  47. end
  48. function Dialog3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  52. Dialog.AddDialog("Oh I suppose I'll need some seeds too. And I don't just need soil, I need things to enrich the soil I already have. I'd like to get some diatomaceous sand from the crabs of Antonica. I believe fish eggs would help with that too, so I'd like some of those as well. As for seeds, I'm sure you can collect some stuck to the fur of some of the mammals that wander around Antonica. If you could bring me all of these items it would help me greatly!")
  53. Dialog.AddOption("I can get them.", "QuestOffer")
  54. Dialog.AddOption("Ugh! Animal bits and dirt are not my kind of thing. Sorry")
  55. Dialog.Start()
  56. end
  57. function QuestOffer(NPC, Spawn)
  58. OfferQuest(NPC, Spawn, 241)
  59. end
  60. function Dialog4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  64. Dialog.AddDialog("Well ... I hate to complain, but I thought the village would have more trees. Yes, I know ... I could move elsewhere, but I've come to love my new home. Hmm... I wonder... would you help me bring a little more greenery to the area?")
  65. Dialog.AddOption("What do you have in mind?", "Dialog5")
  66. Dialog.AddOption("I'm sorry, I haven't time right now.")
  67. Dialog.Start()
  68. end
  69. function Dialog5(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  73. Dialog.AddDialog("It would be nice to have more trees, but that's not practical. I'm building a garden behind my house, so I can look at it and imagine the whole village is verdant. The first thing I need is soil.")
  74. Dialog.AddOption("Where can I find some?", "Dialog3")
  75. Dialog.Start()
  76. end
  77. function Turnin(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. PlayFlavor(NPC, "", "", "happy", 0, 0, Spawn)
  81. SetStepComplete(Spawn, 241,4)
  82. Dialog.AddDialog("Bless you! This is wonderful. They say one good turn deserves another. This isn't much payment considering what you've done for me, but I hope you put it to good use.")
  83. Dialog.AddOption("Good luck with your garden.")
  84. Dialog.Start()
  85. end
  86. function DialogFinish(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. Dialog.New(NPC, Spawn)
  89. Dialog.AddDialog("I love sitting in my garden and listening to the birds sing.")
  90. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1051.mp3", 0, 0)
  91. Dialog.AddOption("Your garden is looking great! Good day, Fawn.")
  92. Dialog.Start()
  93. end
  94. function waypoints(NPC)
  95. MovementLoopAddLocation(NPC, 790.03, -24.51, 319.99, 2, 15,"InitialPause")
  96. MovementLoopAddLocation(NPC, 787.37, -24.37, 319.13, 2, 0)
  97. MovementLoopAddLocation(NPC, 786.44, -24.37, 319.93, 2, 15,"InitialPause")
  98. MovementLoopAddLocation(NPC, 786.18, -24.39, 320.32, 2, 0)
  99. MovementLoopAddLocation(NPC, 786.67, -24.41, 320.92, 2, 15,"InitialPause")
  100. MovementLoopAddLocation(NPC, 789.61, -24.48, 319.66, 2, 15,"InitialPause")
  101. MovementLoopAddLocation(NPC, 788.61, -24.49, 321.21, 2, 0)
  102. MovementLoopAddLocation(NPC, 787.63, -24.45, 321.31, 2, 15,"InitialPause")
  103. MovementLoopAddLocation(NPC, 788.55, -24.43, 319.33, 2, 15,"InitialPause")
  104. MovementLoopAddLocation(NPC, 787.63, -24.45, 321.31, 2, 15,"InitialPause")
  105. MovementLoopAddLocation(NPC, 788.61, -24.49, 321.21, 2, 0)
  106. MovementLoopAddLocation(NPC, 789.61, -24.48, 319.66, 2, 15,"InitialPause")
  107. MovementLoopAddLocation(NPC, 786.67, -24.41, 320.92, 2, 15,"InitialPause")
  108. MovementLoopAddLocation(NPC, 786.18, -24.39, 320.32, 2, 0)
  109. MovementLoopAddLocation(NPC, 786.44, -24.37, 319.93, 2, 15,"InitialPause")
  110. MovementLoopAddLocation(NPC, 787.37, -24.37, 319.13, 2, 0)
  111. MovementLoopAddLocation(NPC, 790.03, -24.51, 319.99, 2, 15,"InitialPause")
  112. end
  113. function InitialPause(NPC)
  114. local GatherSpawn = GetSpawn(NPC, 2340032) -- Get Paula Marx
  115. math.randomseed(os.time())
  116. local pause = math.random (1, 4)
  117. if pause == 1 then
  118. AddTimer(NPC, 100, "stop_gathering")
  119. else
  120. AddTimer(NPC, 1000, "Gather")
  121. end
  122. end
  123. function Gather(NPC)
  124. local GatherSpawn = GetSpawn(NPC, 2340032) --
  125. PlayFlavor(NPC,"","","gathering_search",0,0)
  126. AddTimer(NPC, 5000, "Collect") -- for 5 seconds, then stop
  127. end
  128. function Collect(NPC)
  129. local GatherSpawn = GetSpawn(NPC, 2340032)
  130. PlayFlavor(NPC,"","","gathering_success",0,0)
  131. AddTimer(NPC, 2000, "stop_gathering") -- for 5 seconds, then stop
  132. end
  133. function stop_gathering(NPC)
  134. local GatherSpawn = GetSpawn(NPC, 2340032)
  135. SpawnSet(NPC, "visual_state", "0") -- Stop her from gathering
  136. end
  137. --[[346077)[Sun Apr 24 08:34:37 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Welcome to the village! I hope you find everything you need. I wish I had!"
  138. Line 129215: (1114346077)[Sun Apr 24 08:34:37 2005] You say,"Hail, Fawn Starstone"
  139. Line 129216: (1114346080)[Sun Apr 24 08:34:40 2005] You say to Fawn Starstone,"What do you mean, you wish you had?"
  140. Line 129217: (1114346080)[Sun Apr 24 08:34:40 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Well ... I hate to complain, but I thought the village would have more trees. Yes, I know ... I could move elsewhere, but I've come to love my new home. Hmm... I wonder... would you help me bring a little more greenery to the area?"
  141. Line 129218: (1114346082)[Sun Apr 24 08:34:42 2005] You say to Fawn Starstone,"What do you have in mind?"
  142. Line 129219: (1114346082)[Sun Apr 24 08:34:42 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"It would be nice to have more trees, but that's not practical. I'm building a garden behind my house, so I can look at it and imagine the whole village is verdant. The first thing I need is soil."
  143. Line 129220: (1114346084)[Sun Apr 24 08:34:44 2005] You say to Fawn Starstone,"The soil?"
  144. Line 129222: (1114346087)[Sun Apr 24 08:34:47 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Yes, the soil. I need you to get the scat of fifteen young timber wolves. I'll use it as fertilizer to nourish the plants in my new garden. Sure you don't mind?"
  145. Line 129223: (1114346100)[Sun Apr 24 08:35:00 2005] You say to Fawn Starstone,"Not at all; it's a pleasure."
  146. Line 129224: (1114346100)[Sun Apr 24 08:35:00 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Bless you! You'll find the wolves all over Antonica. I'll meet you back here later. I wonder what I should plant first...?"
  147. Line 129225: (1114346102)[Sun Apr 24 08:35:02 2005] You say to Fawn Starstone,"See you soon."
  148. Line 130162: (1114350616)[Sun Apr 24 09:50:16 2005] \aPC 4087435 Trotsky:Trotsky\/a says,"Hail, Fawn Starstone"
  149. Line 131105: (1114354648)[Sun Apr 24 10:57:28 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"That was quick! Thank you very much! Oh, this is perfect! Putting this into the soil allows it to drain much better, you know. And it adds essential nutrients to help the little plants get off to a good start."
  150. Line 131106: (1114354648)[Sun Apr 24 10:57:28 2005] You say,"Hail, Fawn Starstone"
  151. Line 131107: (1114354651)[Sun Apr 24 10:57:31 2005] You say to Fawn Starstone,"It was nothing. Did you need anything else?"
  152. Line 131108: (1114354651)[Sun Apr 24 10:57:31 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"No, no! You've done plenty for me already ... But, lately my back has been hurting me terribly. Gracious! I'm complaining again! I hate to impose ... but you can do one more thing for me."
  153. Line 131109: (1114354655)[Sun Apr 24 10:57:35 2005] You say to Fawn Starstone,"Glad to be of assistance. What can I do?"
  154. Line 131110: (1114354655)[Sun Apr 24 10:57:35 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"I appreciate you going out of your way like this. A handful of Coldwind octopus beaks would add more vigor to the garden, or so I'm told. You'll find the octopi near the coast outside of Qeynos. One of my neighbors thinks I'm part wood elf with all my fiddling in my garden! Maybe she's right!"
  155. Line 131111: (1114354657)[Sun Apr 24 10:57:37 2005] You say to Fawn Starstone,"No problem; I'll be back soon."
  156. Line 131860: (1114358210)[Sun Apr 24 11:56:50 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Welcome to the village! I hope you find everything you need. I wish I had!"
  157. Line 131861: (1114358210)[Sun Apr 24 11:56:50 2005] You say,"Hail, Fawn Starstone"
  158. Line 131862: (1114358214)[Sun Apr 24 11:56:54 2005] You say to Fawn Starstone,"I've got what you needed."
  159. Line 131865: (1114358215)[Sun Apr 24 11:56:55 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says to you,"Bless you! This is wonderful. They say one good turn deserves another. This isn't much payment considering what you've done for me, but I hope you put it to good use."
  160. Line 131866: (1114358220)[Sun Apr 24 11:57:00 2005] You say to Fawn Starstone,"Good luck with your garden."
  161. Line 131867: (1114358221)[Sun Apr 24 11:57:01 2005] \aNPC 10502 Fawn Starstone:Fawn Starstone\/a says,"I love sitting in my garden and listening to the birds sing."
  162. Line 131868: (1114358221)[Sun Apr 24 11:57:01 2005] You say,"Hail, Fawn Starstone"
  163. Search "Starstone" (4 hits in 1 file of 1 searched)
  164. C:\Users\JasGr\OneDrive\Desktop\Old Desktop\EQ2 Emu Stuff\EmemJR's EQ2 Logs\eq2log_Shellie.txt (4 hits)
  165. Line 5136: (1118602782)[Sun Jun 12 14:59:42 2005] \aNPC 11128 Fawn Starstone:Fawn Starstone\/a says to you,"Welcome to the village! I hope you find everything you need. I wish I had!"
  166. Line 5137: (1118602782)[Sun Jun 12 14:59:42 2005] You say,"Hail, Fawn Starstone"
  167. Line 5138: (1118602784)[Sun Jun 12 14:59:44 2005] You say to Fawn Starstone,"Thanks for the welcome! See you around!"
  168. --]]