9
3

adiseasedratongaPath9.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath9.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.07 10:12:04
  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, -26.02, 1.34, 22.89, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, -26.02, 1.34, 22.89, 2, 0)
  38. MovementLoopAddLocation(NPC, -23.12, 1.34, 20.3, 2, 0)
  39. MovementLoopAddLocation(NPC, -18.26, 1.94, 19.71, 2, 0)
  40. MovementLoopAddLocation(NPC, -10.57, 1.34, 19.83, 2, MakeRandomInt(8,15))
  41. MovementLoopAddLocation(NPC, -10.57, 1.34, 19.83, 2, 0)
  42. MovementLoopAddLocation(NPC, -8.41, 1.34, 14.14, 2, 0)
  43. MovementLoopAddLocation(NPC, -8.69, 1.34, 14.8, 2, MakeRandomInt(8,15))
  44. MovementLoopAddLocation(NPC, -8.69, 1.34, 14.8, 2, 0)
  45. MovementLoopAddLocation(NPC, -9.01, 1.34, 18.04, 2, 0)
  46. MovementLoopAddLocation(NPC, -13.47, 1.34, 19.33, 2, 0)
  47. MovementLoopAddLocation(NPC, -17.64, 1.85, 19.66, 2, 0)
  48. MovementLoopAddLocation(NPC, -21.69, 1.34, 19.86, 2, 0)
  49. MovementLoopAddLocation(NPC, -25.67, 1.34, 22.48, 2, 0)
  50. MovementLoopAddLocation(NPC, -27.56, 1.34, 25.45, 2, 0)
  51. MovementLoopAddLocation(NPC, -27.6, 1.34, 37.28, 2, MakeRandomInt(8,15))
  52. MovementLoopAddLocation(NPC, -27.6, 1.34, 37.28, 2, 0)
  53. MovementLoopAddLocation(NPC, -27.48, 1.34, 30.7, 2, 0)
  54. MovementLoopAddLocation(NPC, -28.48, 1.35, 28.98, 2, 0)
  55. MovementLoopAddLocation(NPC, -30.83, 1.83, 29.18, 2, 0)
  56. MovementLoopAddLocation(NPC, -30.09, 1.58, 29.06, 2, MakeRandomInt(8,15))
  57. MovementLoopAddLocation(NPC, -30.09, 1.58, 29.06, 2, 0)
  58. MovementLoopAddLocation(NPC, -28.33, 1.34, 28.41, 2, 0)
  59. MovementLoopAddLocation(NPC, -26.61, 1.34, 24.11, 2, 0)
  60. MovementLoopAddLocation(NPC, -23.33, 1.34, 21.07, 2, 0)
  61. MovementLoopAddLocation(NPC, -14.96, 1.34, 19.3, 2, MakeRandomInt(8,15))
  62. MovementLoopAddLocation(NPC, -14.96, 1.34, 19.3, 2, 0)
  63. MovementLoopAddLocation(NPC, -17.01, 1.73, 19.7, 2, 0)
  64. MovementLoopAddLocation(NPC, -21.57, 1.34, 20.55, 2, MakeRandomInt(8,15))
  65. MovementLoopAddLocation(NPC, -21.57, 1.34, 20.55, 2, 0)
  66. MovementLoopAddLocation(NPC, -21.25, 1.34, 20, 2, 0)
  67. MovementLoopAddLocation(NPC, -14.81, 1.34, 19.21, 2, 0)
  68. MovementLoopAddLocation(NPC, -8.46, 1.34, 18.9, 2, MakeRandomInt(8,15))
  69. MovementLoopAddLocation(NPC, -8.46, 1.34, 18.9, 2, 0)
  70. MovementLoopAddLocation(NPC, -14.51, 1.34, 19.73, 2, 0)
  71. MovementLoopAddLocation(NPC, -21.71, 1.34, 19.82, 2, 0)
  72. end