aDarkbladebrigandPath1.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladebrigandPath1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.10 06:12:10
  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, -92.38, 1, 54.64, 2, 0)
  34. MovementLoopAddLocation(NPC, -92.38, 1, 54.64, 2, 0)
  35. MovementLoopAddLocation(NPC, -94.78, 1, 57.62, 2, 0)
  36. MovementLoopAddLocation(NPC, -95.18, 1, 60.19, 2, 0)
  37. MovementLoopAddLocation(NPC, -94.82, 1, 108.2, 2, 0)
  38. MovementLoopAddLocation(NPC, -93.11, 1, 110.93, 2, 0)
  39. MovementLoopAddLocation(NPC, -91.34, 1, 111.92, 2, 0)
  40. MovementLoopAddLocation(NPC, -86.58, 1, 112.2, 2, 0)
  41. MovementLoopAddLocation(NPC, -86.58, 1, 112.2, 2, 0)
  42. MovementLoopAddLocation(NPC, -92.51, 1, 111.53, 2, 0)
  43. MovementLoopAddLocation(NPC, -93.92, 1, 109.4, 2, 0)
  44. MovementLoopAddLocation(NPC, -94.57, 1, 58.04, 2, 0)
  45. end