9
3

aduck1.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/aduck1.lua
  3. Script Purpose : a duck
  4. Script Author : Scatman
  5. Script Date : 2009.05.11
  6. Script Notes :
  7. --]]
  8. --[[ OLD
  9. function spawn(NPC)
  10. MovementLoopAddLocation(NPC, 884.95, -16.29, -517.31, 3, 0)
  11. MovementLoopAddLocation(NPC, 886.49, -16.56, -511.8, 3, 0)
  12. MovementLoopAddLocation(NPC, 893.66, -17.41, -500.2, 3, 0)
  13. MovementLoopAddLocation(NPC, 893.51, -17.7, -496.18, 3, 0)
  14. MovementLoopAddLocation(NPC, 883.13, -18.43, -483.9, 3, 0)
  15. MovementLoopAddLocation(NPC, 882.44, -19.07, -473.49, 3, math.random(0, 30))
  16. MovementLoopAddLocation(NPC, 884.19, -19.25, -468.98, 3, 0)
  17. MovementLoopAddLocation(NPC, 890.28, -19.16, -463.74, 3, 0)
  18. MovementLoopAddLocation(NPC, 892.22, -18.87, -457.62, 3, 0)
  19. MovementLoopAddLocation(NPC, 870.25, -18.65, -443.54, 3, 0)
  20. MovementLoopAddLocation(NPC, 863.65, -18.82, -447.37, 3, 0)
  21. MovementLoopAddLocation(NPC, 856.23, -19.49, -457.42, 3, 0)
  22. MovementLoopAddLocation(NPC, 864.64, -19.07, -478.05, 3, math.random(0, 30))
  23. MovementLoopAddLocation(NPC, 864.75, -18.1, -486.71, 3, 0)
  24. MovementLoopAddLocation(NPC, 870.82, -17.82, -493.26, 3, 0)
  25. MovementLoopAddLocation(NPC, 884.55, -15.57, -527.9, 3, 0)
  26. MovementLoopAddLocation(NPC, 889.13, -15.57, -526.2, 3, 0)
  27. end
  28. --]]
  29. function spawn(NPC)
  30. waypoints(NPC)
  31. end
  32. function waypoints(NPC)
  33. if GetSpawnLocationID(NPC)== 133774180 then
  34. MovementLoopAddLocation(NPC, 868.2, -20.45, -430.89, 1, 5)
  35. MovementLoopAddLocation(NPC, 865.86, -20.43, -430.42, 1, 0)
  36. MovementLoopAddLocation(NPC, 861.45, -20.43, -429.24, 1, 0)
  37. MovementLoopAddLocation(NPC, 858.47, -20.43, -425.89, 1, 0)
  38. MovementLoopAddLocation(NPC, 856.98, -20.43, -423.17, 1, 15)
  39. MovementLoopAddLocation(NPC, 849.54, -20.43, -425.78, 1, 15)
  40. MovementLoopAddLocation(NPC, 849.57, -20.43, -428.39, 1, 0)
  41. MovementLoopAddLocation(NPC, 854.67, -20.43, -433.65, 1, 15)
  42. MovementLoopAddLocation(NPC, 852.87, -20.43, -443.7, 1, 0)
  43. MovementLoopAddLocation(NPC, 853.93, -20.43, -448.05, 1, 15)
  44. MovementLoopAddLocation(NPC, 856.33, -20.43, -450.62, 1, 0)
  45. MovementLoopAddLocation(NPC, 861.19, -20.44, -455.52, 1, 0)
  46. MovementLoopAddLocation(NPC, 866.95, -20.44, -456.26, 1, 0)
  47. MovementLoopAddLocation(NPC, 870.48, -20.44, -455.68, 1, 0)
  48. MovementLoopAddLocation(NPC, 880.92, -20.44, -458.35, 1, 15)
  49. MovementLoopAddLocation(NPC, 873.16, -20.44, -462.93, 1, 15)
  50. MovementLoopAddLocation(NPC, 877.34, -20.44, -466.91, 1, 15)
  51. MovementLoopAddLocation(NPC, 879.54, -20.44, -459.06, 1, 15)
  52. MovementLoopAddLocation(NPC, 874.92, -20.44, -468.62, 1, 0)
  53. MovementLoopAddLocation(NPC, 874.89, -20.44, -473.5, 1, 0)
  54. MovementLoopAddLocation(NPC, 880.06, -20.44, -485.64, 1, 0)
  55. MovementLoopAddLocation(NPC, 886.21, -20.44, -495.94, 1, 15)
  56. MovementLoopAddLocation(NPC, 880.34, -20.44, -493.62, 1, 15)
  57. MovementLoopAddLocation(NPC, 885.88, -20.44, -501.03, 1, 15)
  58. MovementLoopAddLocation(NPC, 880.05, -20.44, -502.45, 1, 0)
  59. MovementLoopAddLocation(NPC, 869.87, -20.44, -503.23, 1, 0)
  60. MovementLoopAddLocation(NPC, 868.17, -20.44, -504.03, 1, 0)
  61. MovementLoopAddLocation(NPC, 865.87, -20.44, -501.01, 1, 0)
  62. MovementLoopAddLocation(NPC, 863.38, -20.44, -495.34, 1, 15)
  63. MovementLoopAddLocation(NPC, 853.42, -20.44, -498.8, 1, 15)
  64. MovementLoopAddLocation(NPC, 856.71, -20.44, -499.46, 1, 15)
  65. MovementLoopAddLocation(NPC, 850.05, -20.44, -495.61, 1, 0)
  66. MovementLoopAddLocation(NPC, 846.04, -20.44, -493.3, 1, 0)
  67. MovementLoopAddLocation(NPC, 841.12, -20.44, -497.31, 1, 15)
  68. MovementLoopAddLocation(NPC, 846.16, -20.44, -492.71, 1, 15)
  69. MovementLoopAddLocation(NPC, 843.86, -20.44, -488.2, 1, 0)
  70. MovementLoopAddLocation(NPC, 846.62, -20.44, -481.99, 1, 0)
  71. MovementLoopAddLocation(NPC, 850.85, -20.44, -480.63, 1, 15)
  72. MovementLoopAddLocation(NPC, 851.28, -20.44, -475.23, 1, 15)
  73. MovementLoopAddLocation(NPC, 859.07, -20.44, -474.98, 1, 0)
  74. MovementLoopAddLocation(NPC, 868.37, -20.43, -470.49, 1, 0)
  75. MovementLoopAddLocation(NPC, 876.95, -20.43, -470.1, 1, 15)
  76. MovementLoopAddLocation(NPC, 873.74, -20.43, -465.66, 1, 15)
  77. MovementLoopAddLocation(NPC, 874.33, -20.43, -456.86, 1, 0)
  78. MovementLoopAddLocation(NPC, 870.53, -20.43, -454.82, 1, 0)
  79. MovementLoopAddLocation(NPC, 862.51, -20.43, -455.57, 1, 0)
  80. MovementLoopAddLocation(NPC, 855.04, -20.43, -450.03, 1, 0)
  81. MovementLoopAddLocation(NPC, 851.29, -20.43, -447, 1, 0)
  82. MovementLoopAddLocation(NPC, 850.66, -20.43, -442.74, 1, 0)
  83. MovementLoopAddLocation(NPC, 850.18, -20.43, -437.29, 1, 15)
  84. MovementLoopAddLocation(NPC, 849.34, -20.43, -439.02, 1, 0)
  85. MovementLoopAddLocation(NPC, 853.09, -20.43, -442.85, 1, 0)
  86. MovementLoopAddLocation(NPC, 854.44, -20.43, -440.24, 1, 15)
  87. MovementLoopAddLocation(NPC, 856.93, -20.43, -436.07, 1, 0)
  88. MovementLoopAddLocation(NPC, 860.37, -20.43, -433.53, 1, 0)
  89. MovementLoopAddLocation(NPC, 862.39, -20.43, -432.03, 1, 0)
  90. MovementLoopAddLocation(NPC, 869.13, -20.25, -431.37, 1, 15)
  91. end
  92. end
  93. function respawn(NPC)
  94. spawn(NPC)
  95. end
  96. function hailed(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. end