9
3

aDarkbladescoutPath3.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladescoutPath3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.10 06:12:52
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC,Spawn)
  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, Spawn)
  21. local race = MakeRandomInt(1,6)
  22. if race == 1 or race == 2 then
  23. human(NPC, Spawn)
  24. elseif race == 3 or race == 4 then
  25. ratonga(NPC, Spawn)
  26. elseif race == 5 then
  27. kerra(NPC, Spawn)
  28. elseif race == 6 then
  29. darkelf(NPC, Spawn)
  30. end
  31. end
  32. function waypoints(NPC)
  33. MovementLoopAddLocation(NPC, -76.64, 1.31, 114.45, 2, 0)
  34. MovementLoopAddLocation(NPC, -66.28, 0.95, 113.56, 2, 0)
  35. MovementLoopAddLocation(NPC, -61.95, 1.26, 109.82, 2, 0)
  36. MovementLoopAddLocation(NPC, -61.76, 1, 93.22, 2, 0)
  37. MovementLoopAddLocation(NPC, -62.45, 1, 108.49, 2, 0)
  38. MovementLoopAddLocation(NPC, -65.58, 0.91, 112.14, 2, 0)
  39. end