adiseasedratongaPath5.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath5.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.04 10:12:27
  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, -177.42, 1.22, 58.23, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, -177.42, 1.22, 58.23, 2, 0)
  38. MovementLoopAddLocation(NPC, -179.46, 1.22, 54.32, 2, 0)
  39. MovementLoopAddLocation(NPC, -179.94, 1.34, 50.47, 2, 0)
  40. MovementLoopAddLocation(NPC, -180.08, 1.34, 46.74, 2, MakeRandomInt(8,15))
  41. MovementLoopAddLocation(NPC, -180.08, 1.34, 46.74, 2, 0)
  42. MovementLoopAddLocation(NPC, -180.22, 1.34, 51.5, 2, 0)
  43. MovementLoopAddLocation(NPC, -178.44, 1.22, 57.61, 2, 0)
  44. MovementLoopAddLocation(NPC, -172.79, 1.78, 60.97, 2, 0)
  45. MovementLoopAddLocation(NPC, -166.2, 1.78, 61.18, 2, MakeRandomInt(8,15))
  46. MovementLoopAddLocation(NPC, -166.2, 1.78, 61.18, 2, 0)
  47. MovementLoopAddLocation(NPC, -171, 1.55, 61.31, 2, 0)
  48. MovementLoopAddLocation(NPC, -176.15, 1.22, 59.93, 2, 0)
  49. MovementLoopAddLocation(NPC, -179.6, 1.22, 55.01, 2, 0)
  50. MovementLoopAddLocation(NPC, -183.47, 1.71, 50.56, 2, 0)
  51. MovementLoopAddLocation(NPC, -183.06, 1.57, 50.9, 2, MakeRandomInt(8,15))
  52. MovementLoopAddLocation(NPC, -183.06, 1.57, 50.9, 2, 0)
  53. MovementLoopAddLocation(NPC, -181.63, 1.47, 51.74, 2, 0)
  54. MovementLoopAddLocation(NPC, -179.88, 1.34, 49.92, 2, 0)
  55. MovementLoopAddLocation(NPC, -179.79, 1.34, 47.3, 2, MakeRandomInt(8,15))
  56. MovementLoopAddLocation(NPC, -179.79, 1.34, 47.3, 2, 0)
  57. MovementLoopAddLocation(NPC, -180.05, 1.58, 52.73, 2, 0)
  58. MovementLoopAddLocation(NPC, -178.42, 1.22, 57.97, 2, 0)
  59. MovementLoopAddLocation(NPC, -172.08, 1.78, 60.98, 2, 0)
  60. MovementLoopAddLocation(NPC, -168.4, 1.71, 64.72, 2, 0)
  61. MovementLoopAddLocation(NPC, -168.55, 1.63, 64.47, 2, MakeRandomInt(8,15))
  62. MovementLoopAddLocation(NPC, -168.55, 1.63, 64.47, 2, 0)
  63. MovementLoopAddLocation(NPC, -168.99, 1.29, 62.96, 2, 0)
  64. MovementLoopAddLocation(NPC, -171.79, 1.78, 61.36, 2, 0)
  65. end