aBlackshieldbrutePath.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aBlackshieldbrutePath.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.31 04:01:07
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC)
  12. AddTimer(NPC, 6000, "waypoints")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function race(NPC)
  21. setrace = MakeRandomInt(1,2)
  22. if setrace == 1 then
  23. human(NPC)
  24. elseif setrace == 2 then
  25. halfelf(NPC)
  26. end
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, -439.81, -91.17, -985.86, 2, 0)
  30. MovementLoopAddLocation(NPC, -439.81, -91.17, -985.86, 2, 0)
  31. MovementLoopAddLocation(NPC, -455.42, -91.13, -950.57, 2, 0)
  32. MovementLoopAddLocation(NPC, -456.95, -90.49, -941.3, 2, 0)
  33. MovementLoopAddLocation(NPC, -454.34, -90.06, -925.04, 2, 0)
  34. MovementLoopAddLocation(NPC, -448.7, -89.43, -914.43, 2, 0)
  35. MovementLoopAddLocation(NPC, -440.22, -86.28, -909.22, 2, 0)
  36. MovementLoopAddLocation(NPC, -426.85, -81.18, -903.59, 2, 0)
  37. MovementLoopAddLocation(NPC, -401.21, -69.53, -895.18, 2, 0)
  38. MovementLoopAddLocation(NPC, -376.3, -55.13, -885.09, 2, 0)
  39. MovementLoopAddLocation(NPC, -369.95, -51.79, -882.46, 2, 0)
  40. MovementLoopAddLocation(NPC, -369.95, -51.79, -882.46, 2, 0)
  41. MovementLoopAddLocation(NPC, -378.3, -56.12, -885.14, 2, 0)
  42. MovementLoopAddLocation(NPC, -390.51, -63.11, -889.06, 2, 0)
  43. MovementLoopAddLocation(NPC, -404.6, -70.49, -893.59, 2, 0)
  44. MovementLoopAddLocation(NPC, -424.65, -79.59, -900.03, 2, 0)
  45. MovementLoopAddLocation(NPC, -436.5, -84.88, -905.41, 2, 0)
  46. MovementLoopAddLocation(NPC, -444.98, -88.09, -913.17, 2, 0)
  47. MovementLoopAddLocation(NPC, -456.1, -90.34, -930.99, 2, 0)
  48. MovementLoopAddLocation(NPC, -457.02, -90.34, -939.59, 2, 0)
  49. MovementLoopAddLocation(NPC, -439.81, -91.17, -985.86, 2, 0)
  50. MovementLoopAddLocation(NPC, -439.81, -91.17, -985.86, 2, 0)
  51. end