9
3

Misty.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/Misty.lua
  3. Script Purpose : Misty
  4. Script Author : Scatman
  5. Script Date : 2009.05.11
  6. Script Notes : Updated w/ emotes 2022.08.23 Dorbin
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function waypoints(NPC)
  12. MovementLoopAddLocation(NPC, 888.75, -13.79, -437.42, 1, 0)
  13. MovementLoopAddLocation(NPC, 885.18, -13.31, -442.76, 1, 25,"Sleep")
  14. MovementLoopAddLocation(NPC, 880.94, -13.14, -441.76, 1, 0)
  15. MovementLoopAddLocation(NPC, 879.05, -13.44, -439.52, 1, 25,"Sleep")
  16. MovementLoopAddLocation(NPC, 879.73, -13.47, -435.77, 1, 0)
  17. MovementLoopAddLocation(NPC, 880.7, -14.17, -430.35, 1, 0)
  18. MovementLoopAddLocation(NPC, 883.77, -13.74, -425.76, 1, 25,"Sleep")
  19. MovementLoopAddLocation(NPC, 879.97, -14.19, -425.73, 1, 0)
  20. MovementLoopAddLocation(NPC, 875.38, -14.46, -423.42, 1, 0)
  21. MovementLoopAddLocation(NPC, 867.76, -13.01, -420.76, 1, 0)
  22. MovementLoopAddLocation(NPC, 861.06, -12.15, -418.43, 1, 0)
  23. MovementLoopAddLocation(NPC, 858.1, -11.83, -416.22, 1, 25,"Sleep")
  24. MovementLoopAddLocation(NPC, 860.28, -12.36, -421.81, 1, 0)
  25. MovementLoopAddLocation(NPC, 870.73, -13.93, -422.59, 1, 0)
  26. MovementLoopAddLocation(NPC, 879.08, -14.26, -421.87, 1, 25,"Sleep")
  27. MovementLoopAddLocation(NPC, 876.57, -15.47, -427.36, 1, 0)
  28. MovementLoopAddLocation(NPC, 873.52, -18.37, -434.05, 1, 0)
  29. MovementLoopAddLocation(NPC, 875.83, -18.32, -436.25, 1, 25,"Sleep")
  30. MovementLoopAddLocation(NPC, 870.7, -18.42, -438.16, 1, 0)
  31. MovementLoopAddLocation(NPC, 865.05, -18.23, -441.05, 1, 25,"Sleep")
  32. MovementLoopAddLocation(NPC, 866.27, -18.44, -442.91, 1, 0)
  33. MovementLoopAddLocation(NPC, 867.37, -18.96, -448.65, 1, 0)
  34. MovementLoopAddLocation(NPC, 868.54, -19.17, -449.66, 1, 25,"Sleep")
  35. MovementLoopAddLocation(NPC, 868.54, -19.27, -450.44, 1, 0)
  36. MovementLoopAddLocation(NPC, 866.74, -19.2, -450.7, 1, 0)
  37. MovementLoopAddLocation(NPC, 864.2, -19.03, -450.65, 1, 0)
  38. MovementLoopAddLocation(NPC, 858.61, -19.05, -446.68, 1, 25,"Sleep")
  39. MovementLoopAddLocation(NPC, 857.53, -18.88, -443.49, 1, 0)
  40. MovementLoopAddLocation(NPC, 857.75, -18.98, -441.6, 1, 25,"Sleep")
  41. MovementLoopAddLocation(NPC, 857.15, -19.16, -441.48, 1, 0)
  42. MovementLoopAddLocation(NPC, 861.09, -19.21, -449.61, 1, 0)
  43. MovementLoopAddLocation(NPC, 858.41, -18.51, -452.92, 1, 0)
  44. MovementLoopAddLocation(NPC, 855.11, -19.4, -457.18, 1, 0)
  45. MovementLoopAddLocation(NPC, 853.09, -18.58, -461.13, 1, 0)
  46. MovementLoopAddLocation(NPC, 848.29, -18.01, -461.27, 1, 25,"Sleep")
  47. MovementLoopAddLocation(NPC, 845.96, -17.66, -463.4, 1, 0)
  48. MovementLoopAddLocation(NPC, 839.99, -13.92, -471.63, 1, 25,"Sleep")
  49. MovementLoopAddLocation(NPC, 835.75, -13.67, -472.47, 1, 25,"Sleep")
  50. MovementLoopAddLocation(NPC, 834.59, -14.03, -476.77, 1, 0)
  51. MovementLoopAddLocation(NPC, 830.49, -13.73, -477.41, 1, 25,"Sleep")
  52. MovementLoopAddLocation(NPC, 832.14, -13.73, -477.61, 1, 0)
  53. MovementLoopAddLocation(NPC, 835.69, -14.4, -476.07, 1, 0)
  54. MovementLoopAddLocation(NPC, 838.51, -13.89, -472.15, 1, 0)
  55. MovementLoopAddLocation(NPC, 840.76, -14, -467.56, 1, 0)
  56. MovementLoopAddLocation(NPC, 844.6, -17.35, -463.51, 1, 0)
  57. MovementLoopAddLocation(NPC, 847.22, -17.91, -464.83, 1, 0)
  58. MovementLoopAddLocation(NPC, 852.31, -18.55, -467.71, 1, 25,"Sleep")
  59. MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 1,"Heading")
  60. MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 25,"Sleep")
  61. MovementLoopAddLocation(NPC, 854.55, -16.68, -469.33, 1, 0)
  62. MovementLoopAddLocation(NPC, 854.12, -16.92, -468.49, 1, 0)
  63. MovementLoopAddLocation(NPC, 852.89, -18.58, -466.16, 1, 0)
  64. MovementLoopAddLocation(NPC, 858.75, -18.92, -466.44, 1, 0)
  65. MovementLoopAddLocation(NPC, 863.55, -18.23, -473.42, 1, 0)
  66. MovementLoopAddLocation(NPC, 870.44, -18.85, -476.77, 1, 25,"Sleep")
  67. MovementLoopAddLocation(NPC, 871.5, -18.91, -477.13, 1, 0)
  68. MovementLoopAddLocation(NPC, 869.88, -18.78, -477.22, 1, 0)
  69. MovementLoopAddLocation(NPC, 866.79, -18.83, -478.45, 1, 0)
  70. MovementLoopAddLocation(NPC, 863.48, -18.25, -473.67, 1, 0)
  71. MovementLoopAddLocation(NPC, 860.41, -19.01, -467.65, 1, 0)
  72. MovementLoopAddLocation(NPC, 860.34, -19.17, -459.86, 1, 25,"Sleep")
  73. MovementLoopAddLocation(NPC, 861.14, -19.36, -459.05, 1, 0)
  74. MovementLoopAddLocation(NPC, 859.66, -19.36, -458.83, 1, 0)
  75. MovementLoopAddLocation(NPC, 856.94, -19.34, -458.65, 1, 0)
  76. MovementLoopAddLocation(NPC, 857.17, -19.08, -456.92, 1, 0)
  77. MovementLoopAddLocation(NPC, 861.14, -19.27, -450.05, 1, 0)
  78. MovementLoopAddLocation(NPC, 866.32, -18.9, -448.65, 1, 0)
  79. MovementLoopAddLocation(NPC, 872.17, -18.88, -447.52, 1, 0)
  80. MovementLoopAddLocation(NPC, 876.66, -18.78, -449.69, 1, 0)
  81. MovementLoopAddLocation(NPC, 879.69, -19.06, -452.34, 1, 25,"Sleep")
  82. MovementLoopAddLocation(NPC, 879.79, -19.48, -454.01, 1, 0)
  83. MovementLoopAddLocation(NPC, 882.67, -19.47, -455.33, 1, 0)
  84. MovementLoopAddLocation(NPC, 887.06, -19.14, -457.1, 1, 0)
  85. MovementLoopAddLocation(NPC, 891.45, -18.52, -468.2, 1, 25,"Sleep")
  86. MovementLoopAddLocation(NPC, 887.83, -18.06, -478.34, 1, 25,"Sleep")
  87. MovementLoopAddLocation(NPC, 887.23, -18.12, -478.39, 1, 0)
  88. MovementLoopAddLocation(NPC, 886.98, -18.21, -477.63, 1, 0)
  89. MovementLoopAddLocation(NPC, 889.62, -18.42, -471.81, 1, 0)
  90. MovementLoopAddLocation(NPC, 894.91, -18.13, -467.36, 1, 0)
  91. MovementLoopAddLocation(NPC, 894.56, -18.31, -464.97, 1, 25,"Sleep")
  92. MovementLoopAddLocation(NPC, 892.9, -18.68, -456.36, 1, 0)
  93. MovementLoopAddLocation(NPC, 887.87, -17.34, -450.92, 1, 0)
  94. MovementLoopAddLocation(NPC, 890.28, -15.39, -446.64, 1, 0)
  95. MovementLoopAddLocation(NPC, 897.53, -15.28, -445.9, 1, 0)
  96. MovementLoopAddLocation(NPC, 901.99, -15.2, -448.15, 1, 25,"Sleep")
  97. MovementLoopAddLocation(NPC, 903.02, -15.31, -448.74, 1, 0)
  98. MovementLoopAddLocation(NPC, 899.89, -16.27, -446.83, 1, 0)
  99. MovementLoopAddLocation(NPC, 895.02, -14.2, -439.55, 1, 0)
  100. MovementLoopAddLocation(NPC, 890.45, -13.71, -435.21, 1, 0)
  101. MovementLoopAddLocation(NPC, 890.37, -13.69, -431.6, 1, 25,"Sleep")
  102. end
  103. function Sleep(NPC)
  104. local choice = math.random(1,2)
  105. if choice == 1 then
  106. SpawnSet(NPC, "action_state", 540)
  107. AddTimer(NPC, 22000, "Wake")
  108. elseif choice ==2 then
  109. end
  110. end
  111. function Wake(NPC)
  112. SpawnSet(NPC, "action_state", 0)
  113. end
  114. function Heading(NPC)
  115. SetHeading(NPC,180)
  116. end
  117. --[[ OLD
  118. function spawn(NPC)
  119. MovementLoopAddLocation(NPC, 886.51, -13.74, -433.7, 2, 0)
  120. MovementLoopAddLocation(NPC, 893.35, -15.1, -442.65, 2, 0)
  121. MovementLoopAddLocation(NPC, 893.22, -18.07, -453.45, 2, 0)
  122. MovementLoopAddLocation(NPC, 897.16, -18.12, -463.73, 2, 0)
  123. MovementLoopAddLocation(NPC, 896.33, -17.98, -468.75, 2, 0)
  124. MovementLoopAddLocation(NPC, 884.48, -18.47, -479.11, 2, 5)
  125. MovementLoopAddLocation(NPC, 888.89, -17.96, -490.04, 2, math.random(0, 30))
  126. MovementLoopAddLocation(NPC, 893.55, -17.65, -496.84, 2, 0)
  127. MovementLoopAddLocation(NPC, 894.02, -16.24, -519.28, 2, 0)
  128. MovementLoopAddLocation(NPC, 888.24, -13.86, -538.79, 2, 0)
  129. MovementLoopAddLocation(NPC, 880.94, -14.64, -532.11, 2, 0)
  130. MovementLoopAddLocation(NPC, 870.38, -16.37, -530.64, 2, 0)
  131. MovementLoopAddLocation(NPC, 878.59, -16.88, -514.71, 2, 0)
  132. MovementLoopAddLocation(NPC, 870.89, -17.85, -491.59, 2, 0)
  133. MovementLoopAddLocation(NPC, 864.27, -18.18, -485.9, 2, 0)
  134. MovementLoopAddLocation(NPC, 863.76, -18.43, -474.64, 2, 5)
  135. MovementLoopAddLocation(NPC, 855.6, -18.89, -460.24, 2, math.random(0, 30))
  136. MovementLoopAddLocation(NPC, 863.53, -18.78, -446.69, 2, 0)
  137. MovementLoopAddLocation(NPC, 872.08, -18.49, -442.15, 2, 0)
  138. MovementLoopAddLocation(NPC, 875.7, -15.04, -425.86, 2, 0)
  139. MovementLoopAddLocation(NPC, 880.6, -13.86, -432.16, 2, 0)
  140. MovementLoopAddLocation(NPC, 880.84, -13.44, -438.9, 2, 0)
  141. end
  142. --]]
  143. function respawn(NPC)
  144. end
  145. function hailed(NPC, Spawn)
  146. FaceTarget(NPC, Spawn)
  147. end