adiseasedratongaPath1.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/adiseasedratongaPath1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.04 04:12:19
  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.56, 0, 203.83, 2, MakeRandomInt(8,15))
  37. MovementLoopAddLocation(NPC, -182.56, 0, 203.83, 2, 0)
  38. MovementLoopAddLocation(NPC, -182.73, 0.2, 208.53, 2, 0)
  39. MovementLoopAddLocation(NPC, -180.7, 0, 213.35, 2, 0)
  40. MovementLoopAddLocation(NPC, -176.72, 0, 216.35, 2, 0)
  41. MovementLoopAddLocation(NPC, -173.58, 0, 217.19, 2, 0)
  42. MovementLoopAddLocation(NPC, -171.36, 0, 217.15, 2, MakeRandomInt(8,15))
  43. MovementLoopAddLocation(NPC, -171.36, 0, 217.15, 2, 0)
  44. MovementLoopAddLocation(NPC, -174.03, 0, 217.04, 2, 0)
  45. MovementLoopAddLocation(NPC, -177.77, 0, 215.88, 2, 0)
  46. MovementLoopAddLocation(NPC, -180.27, 0, 213.44, 2, 0)
  47. MovementLoopAddLocation(NPC, -181.36, 0.25, 209.84, 2, MakeRandomInt(8,15))
  48. MovementLoopAddLocation(NPC, -181.36, 0.25, 209.84, 2, 0)
  49. MovementLoopAddLocation(NPC, -180.65, 0, 212.52, 2, 0)
  50. MovementLoopAddLocation(NPC, -178.36, 0, 215.05, 2, MakeRandomInt(8,15))
  51. MovementLoopAddLocation(NPC, -178.36, 0, 215.05, 2, 0)
  52. MovementLoopAddLocation(NPC, -174.43, 0, 216.72, 2, 0)
  53. MovementLoopAddLocation(NPC, -172.66, 0, 216.63, 2, MakeRandomInt(8,15))
  54. MovementLoopAddLocation(NPC, -172.66, 0, 216.63, 2, 0)
  55. MovementLoopAddLocation(NPC, -175.89, 0, 215.99, 2, 0)
  56. MovementLoopAddLocation(NPC, -180.61, 0, 213.79, 2, 0)
  57. MovementLoopAddLocation(NPC, -181.99, 0.24, 209.14, 2, 0)
  58. end