adiseasedratongaPath2.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.04 09:12:17
  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, -182.73, 0, 158.29, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, -182.73, 0, 158.29, 2, 0)
  38. MovementLoopAddLocation(NPC, -182.56, 0, 167.8, 2, MakeRandomInt(8,15))
  39. MovementLoopAddLocation(NPC, -182.56, 0, 167.8, 2, 0)
  40. MovementLoopAddLocation(NPC, -182.22, 0, 146.22, 2, MakeRandomInt(8,15))
  41. MovementLoopAddLocation(NPC, -182.22, 0, 146.22, 2, 0)
  42. MovementLoopAddLocation(NPC, -181.9, 0.24, 160.91, 2, MakeRandomInt(8,15))
  43. MovementLoopAddLocation(NPC, -181.9, 0.24, 160.91, 2, 0)
  44. MovementLoopAddLocation(NPC, -182.89, 0.29, 152.36, 2, MakeRandomInt(8,15))
  45. MovementLoopAddLocation(NPC, -182.89, 0.29, 152.36, 2, 0)
  46. MovementLoopAddLocation(NPC, -182.96, 0, 165.75, 2, MakeRandomInt(8,15))
  47. MovementLoopAddLocation(NPC, -182.96, 0, 165.75, 2, 0)
  48. MovementLoopAddLocation(NPC, -185.57, 0.38, 156.66, 2, 0)
  49. MovementLoopAddLocation(NPC, -184.82, 0.1, 157.24, 2, MakeRandomInt(8,15))
  50. MovementLoopAddLocation(NPC, -184.82, 0.1, 157.24, 2, 0)
  51. MovementLoopAddLocation(NPC, -182.96, 0, 157.36, 2, 0)
  52. MovementLoopAddLocation(NPC, -182.5, 0, 150.66, 2, MakeRandomInt(8,15))
  53. MovementLoopAddLocation(NPC, -182.5, 0, 150.66, 2, 0)
  54. end