adiseasedratongaPath7.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath7.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.07 09:12:58
  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, 20.22, 1.34, 74.07, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, 20.22, 1.34, 74.07, 2, 0)
  38. MovementLoopAddLocation(NPC, 20.18, 1.81, 77.16, 2, 0)
  39. MovementLoopAddLocation(NPC, 20.1, 1.57, 82.94, 2, 0)
  40. MovementLoopAddLocation(NPC, 19.95, 1.59, 102.63, 2, MakeRandomInt(8,15))
  41. MovementLoopAddLocation(NPC, 19.95, 1.59, 102.63, 2, 0)
  42. MovementLoopAddLocation(NPC, 20.14, 1.34, 71.48, 2, MakeRandomInt(8,15))
  43. MovementLoopAddLocation(NPC, 20.14, 1.34, 71.48, 2, 0)
  44. MovementLoopAddLocation(NPC, 20.09, 1.34, 91.81, 2, 0)
  45. MovementLoopAddLocation(NPC, 16.65, 1.77, 91.29, 2, 0)
  46. MovementLoopAddLocation(NPC, 17.52, 1.53, 91.54, 2, MakeRandomInt(8,15))
  47. MovementLoopAddLocation(NPC, 17.52, 1.53, 91.54, 2, 0)
  48. MovementLoopAddLocation(NPC, 19.35, 1.34, 91.22, 2, 0)
  49. MovementLoopAddLocation(NPC, 20.08, 1.34, 89.48, 2, 0)
  50. MovementLoopAddLocation(NPC, 20.19, 1.34, 86.2, 2, 0)
  51. MovementLoopAddLocation(NPC, 23.46, 1.83, 85.54, 2, 0)
  52. MovementLoopAddLocation(NPC, 23.02, 1.68, 85.4, 2, MakeRandomInt(8,15))
  53. MovementLoopAddLocation(NPC, 23.02, 1.68, 85.4, 2, 0)
  54. MovementLoopAddLocation(NPC, 21.12, 1.35, 85.1, 2, 0)
  55. MovementLoopAddLocation(NPC, 20.2, 1.34, 87.27, 2, 0)
  56. MovementLoopAddLocation(NPC, 20.02, 1.74, 101.46, 2, MakeRandomInt(8,15))
  57. MovementLoopAddLocation(NPC, 20.02, 1.74, 101.46, 2, 0)
  58. MovementLoopAddLocation(NPC, 20.21, 1.6, 76.04, 2, 0)
  59. MovementLoopAddLocation(NPC, 16.49, 1.83, 74.46, 2, 0)
  60. MovementLoopAddLocation(NPC, 17.55, 1.52, 74.39, 2, MakeRandomInt(8,15))
  61. MovementLoopAddLocation(NPC, 17.55, 1.52, 74.39, 2, 0)
  62. MovementLoopAddLocation(NPC, 19.97, 1.34, 73.65, 2, 0)
  63. MovementLoopAddLocation(NPC, 20.09, 1.34, 69.49, 2, MakeRandomInt(8,15))
  64. MovementLoopAddLocation(NPC, 20.09, 1.34, 69.49, 2, 0)
  65. end