adiseasedratongaPath3.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.04 09:12:48
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. dofile ("SpawnScripts/Generic/MonsterCallouts/BaseRatonga1.lua")
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. ratonga(NPC, Spawn)
  13. class(NPC)
  14. waypoints(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function class(NPC,Spawn)
  23. local class = MakeRandomInt(1,3)
  24. if class == 1 then
  25. SpawnSet(NPC, "class", 1 )
  26. SetSpellList(NPC, 291)
  27. elseif class == 2 then
  28. SpawnSet(NPC, "class", 11)
  29. SetSpellList(NPC, 297)
  30. elseif class == 3 then
  31. SpawnSet(NPC, "class", 31)
  32. SetSpellList(NPC, 294)
  33. end
  34. end
  35. function waypoints(NPC)
  36. MovementLoopAddLocation(NPC, -180.42, 0.05, 93.15, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, -180.42, 0.05, 93.15, 2, 0)
  38. MovementLoopAddLocation(NPC, -182.39, 0.05, 97.52, 2, 0)
  39. MovementLoopAddLocation(NPC, -182.47, 0.36, 100.37, 2, 0)
  40. MovementLoopAddLocation(NPC, -182.57, 0, 114.95, 2, MakeRandomInt(8,15))
  41. MovementLoopAddLocation(NPC, -182.57, 0, 114.95, 2, 0)
  42. MovementLoopAddLocation(NPC, -182.71, 0.27, 102.21, 2, 0)
  43. MovementLoopAddLocation(NPC, -181.73, 0.05, 96.71, 2, 0)
  44. MovementLoopAddLocation(NPC, -178.82, 0.05, 92.41, 2, 0)
  45. MovementLoopAddLocation(NPC, -175.04, 0.24, 90.89, 2, 0)
  46. MovementLoopAddLocation(NPC, -168.58, 0.05, 90.51, 2, 0)
  47. MovementLoopAddLocation(NPC, -159.12, 0.05, 90.2, 2, MakeRandomInt(8,15))
  48. MovementLoopAddLocation(NPC, -159.12, 0.05, 90.2, 2, 0)
  49. MovementLoopAddLocation(NPC, -170.33, 0.05, 90.49, 2, 0)
  50. MovementLoopAddLocation(NPC, -175.1, 0.24, 90.48, 2, 0)
  51. MovementLoopAddLocation(NPC, -178.71, 0.05, 92.76, 2, 0)
  52. MovementLoopAddLocation(NPC, -181.9, 0.05, 96.84, 2, 0)
  53. MovementLoopAddLocation(NPC, -182.54, 0.31, 100.17, 2, MakeRandomInt(8,15))
  54. MovementLoopAddLocation(NPC, -182.54, 0.31, 100.17, 2, 0)
  55. MovementLoopAddLocation(NPC, -181.92, 0.05, 96.39, 2, 0)
  56. MovementLoopAddLocation(NPC, -172.11, 0.05, 90.2, 2, MakeRandomInt(8,15))
  57. MovementLoopAddLocation(NPC, -172.11, 0.05, 90.2, 2, 0)
  58. MovementLoopAddLocation(NPC, -177.29, 0.05, 90.21, 2, 0)
  59. MovementLoopAddLocation(NPC, -181.28, 0.05, 94.78, 2, MakeRandomInt(8,15))
  60. MovementLoopAddLocation(NPC, -181.28, 0.05, 94.78, 2, 0)
  61. MovementLoopAddLocation(NPC, -182.25, 0.3, 100.17, 2, 0)
  62. MovementLoopAddLocation(NPC, -182.46, 0, 105.58, 2, MakeRandomInt(8,15))
  63. MovementLoopAddLocation(NPC, -182.46, 0, 105.58, 2, 0)
  64. MovementLoopAddLocation(NPC, -182.69, 0.41, 100.33, 2, 0)
  65. MovementLoopAddLocation(NPC, -184.52, 0.32, 96.01, 2, 0)
  66. MovementLoopAddLocation(NPC, -183.52, 0.08, 97.21, 2, MakeRandomInt(8,15))
  67. MovementLoopAddLocation(NPC, -183.52, 0.08, 97.21, 2, 0)
  68. MovementLoopAddLocation(NPC, -179.28, 0.05, 92.14, 2, 0)
  69. MovementLoopAddLocation(NPC, -173.87, 0.06, 91.12, 2, MakeRandomInt(8,15))
  70. MovementLoopAddLocation(NPC, -173.87, 0.06, 91.12, 2, 0)
  71. MovementLoopAddLocation(NPC, -173.95, 0.41, 86.96, 2, 0)
  72. MovementLoopAddLocation(NPC, -173.85, 0.15, 88.12, 2, MakeRandomInt(8,15))
  73. MovementLoopAddLocation(NPC, -173.85, 0.15, 88.12, 2, 0)
  74. MovementLoopAddLocation(NPC, -173.97, 0.05, 89.32, 2, 0)
  75. MovementLoopAddLocation(NPC, -178.35, 0.05, 91.43, 2, 0)
  76. MovementLoopAddLocation(NPC, -181.99, 0.04, 98.02, 2, 0)
  77. MovementLoopAddLocation(NPC, -182.52, 0, 105.38, 2, MakeRandomInt(8,15))
  78. MovementLoopAddLocation(NPC, -182.52, 0, 105.38, 2, 0)
  79. MovementLoopAddLocation(NPC, -182.22, 0.04, 98.01, 2, 0)
  80. end