9
3

Wobblecog.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/Wobblecog.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.22 05:10:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 12, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. choice = MakeRandomInt(1,2)
  15. if choice ==1 then
  16. PlayFlavor(NPC, "voiceover/english/mirf_guinders/qey_village06/100_mirf_guinders_callout_a5068619.mp3","Come hither, for I have much to tell you!", "beckon", 2649708751,4092898916, Spawn)
  17. else
  18. PlayFlavor(NPC, "voiceover/english/merchant_qwergo_togglesmeet/fprt_hood03/100_merchantqwergobtogglesmeet_callout_3ca72d41.mp3","I have something so very important to say to you! Will you not hear me out?", "wave", 892700118,2368875233, Spawn)
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. Dialog.New(NPC, Spawn)
  25. Dialog.AddDialog("Sorry friend. You have stepped into an area lost in the fabric of time. Shall I send you to a more stable timeline?")
  26. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1020.mp3",0,0 )
  27. PlayFlavor(NPC,"","","hello",0,0,Spawn)
  28. Dialog.AddOption("Yes please! Send me to a stable timeline. [Classic Zone]","ClassicZone")
  29. Dialog.AddOption("Why shouldn't I stay here?","OtherPlace")
  30. Dialog.AddOption("Can't you send me somewhere else?","OtherPlace2")
  31. Dialog.AddOption("No thank you. I'll stay here for now.")
  32. Dialog.Start()
  33. end
  34. function OtherPlace(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("You'll encounter oddities here until the timelines sort themselves out. The time-fragments are still being reassembled!")
  39. PlayFlavor(NPC,"","","scold",0,0,Spawn)
  40. Dialog.AddOption("Alright. Send me to a stable timeline from here. [Classic Zone]","ClassicZone")
  41. Dialog.AddOption("Can't you send me somewhere else?","OtherPlace2")
  42. Dialog.AddOption("[Other reasons?]","OtherReasons")
  43. Dialog.AddOption("Nevermind then. I'm staying here.")
  44. Dialog.Start()
  45. end
  46. function OtherReasons(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("[This zone is the Revamped (LU19) version. Some content here are still a work in progress. The classic zones need testing and offer quest updates not found here.]")
  51. Dialog.AddOption("Alright. Send me to a stable timeline from here. [Classic Zone]","ClassicZone")
  52. Dialog.AddOption("Can't you send me somewhere else?","OtherPlace2")
  53. Dialog.AddOption("Nevermind then. I'm staying here.")
  54. Dialog.Start()
  55. end
  56. function OtherPlace2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Are you mad?! The seas are too terrible, too unpredictable! The effects of the great cataclysms haven't subsided entirely, you know. We need powerful, secure and sturdy vessels in order to travel and explore the unexplored reaches of the world!")
  61. Dialog.AddVoiceover("voiceover/english/regias_flutzrubble/fprt_hood03/quests/regiasflutzrubble/lore_regias_004.mp3", 16821237,3341915909)
  62. PlayFlavor(NPC,"","","no",0,0,Spawn)
  63. Dialog.AddOption("Alright. Send me to a stable timeline from here. [Classic Zone]","ClassicZone")
  64. Dialog.AddOption("Why shouldn't I stay here?","OtherPlace")
  65. Dialog.AddOption("Nevermind then. I'm staying here.")
  66. Dialog.Start()
  67. end
  68. function respawn(NPC)
  69. spawn(NPC)
  70. end
  71. function ClassicZone(NPC,Spawn)
  72. FaceTarget(NPC, Spawn)
  73. choice = MakeRandomInt(1,5)
  74. if choice ==1 then
  75. PlayFlavor(NPC, "voiceover/english/gnome_eco_evil_1/ft/gnome/gnome_eco_evil_1_hail_gm_4d2d14ae.mp3", "So many test subjects, so little time!", "", 2502077, 3261378172, Spawn)
  76. elseif choice ==2 then
  77. PlayFlavor(NPC, "voiceover/english/gnome_eco_good_1/ft/gnome/gnome_eco_good_1_hail_gm_67fc1b9e.mp3", "If a gear is lost in a forest and no one can find it, did it ever exist to begin with?", "", 2116604349, 2342019789, Spawn, 0)
  78. elseif choice ==3 then
  79. PlayFlavor(NPC, "voiceover/english/gnome_eco_evil_1/ft/gnome/gnome_eco_evil_1_hail_gm_a0ec45ef.mp3", "Through the advances in modern magic, anything is possible.", "", 2871018676, 2157629655, Spawn)
  80. elseif choice ==4 then
  81. PlayFlavor(NPC, "voiceover/english/gnome_eco_evil_1/ft/gnome/gnome_eco_evil_1_hail_gm_b7905eb1.mp3", "No, no, no!!! That will never work! The person still needs to breathe, don't they? Don't they?", "", 3693935176, 3848510180, Spawn)
  82. elseif choice ==5 then
  83. PlayFlavor(NPC, "voiceover/english/gnome_base_1/ft/gnome/gnome_base_1_1_death_gm_4cc32cef.mp3","Looks like its time to move on!", "",2032831151,1634089730, Spawn)
  84. end
  85. CastSpell(NPC,132)
  86. AddTimer(NPC,2000,"Teleport",1,Spawn)
  87. end
  88. function Teleport(NPC,Spawn)
  89. CastSpell(Spawn,101)
  90. AddTimer(NPC,2300,"Teleport2",1,Spawn)
  91. end
  92. function Teleport2(NPC,Spawn)
  93. local zone = GetZone(Spawn)
  94. if GetZoneID(zone) == 195 then --Oakmyst
  95. ZoneRef = GetZone("Oakmyst_Classic")
  96. Zone(ZoneRef,Spawn)
  97. elseif GetZoneID(zone) == 196 then --ForestRuins
  98. ZoneRef = GetZone("ForestRuins_Classic")
  99. Zone(ZoneRef,Spawn)
  100. elseif GetZoneID(zone) == 197 then --Caves
  101. ZoneRef = GetZone("Caves_Classic")
  102. Zone(ZoneRef,Spawn)
  103. elseif GetZoneID(zone) == 198 then --Caves
  104. ZoneRef = GetZone("PeatBog_Classic")
  105. Zone(ZoneRef,Spawn)
  106. end
  107. end