astalwartSabertoothPath1.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/astalwartSabertoothPath1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.05.04 08:05:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. VoiceBox(NPC)
  10. AddTimer(NPC,6000, "waypoints")
  11. end
  12. function VoiceBox(NPC)
  13. local choice = MakeRandomInt(1,3)
  14. if choice == 1 then
  15. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGnoll1.lua")
  16. elseif choice == 2 then
  17. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll1.lua")
  18. elseif choice == 3 then
  19. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua")
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, 4.84, -15.58, 65.48, 2, math.random(5,10))
  30. MovementLoopAddLocation(NPC, 3.71, -15.61, 63.68, 2, 0)
  31. MovementLoopAddLocation(NPC, 1.94, -15.68, 63.72, 2, 0)
  32. MovementLoopAddLocation(NPC, 1.94, -15.68, 63.72, 2, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 7.8, -15.53, 65.49, 2, 0)
  34. MovementLoopAddLocation(NPC, 7.8, -15.53, 65.49, 2, math.random(5,10))
  35. MovementLoopAddLocation(NPC, 3.16, -15.64, 65.56, 2, 0)
  36. MovementLoopAddLocation(NPC, 3.16, -15.64, 65.56, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 4.15, -15.6, 66, 2, 0)
  38. MovementLoopAddLocation(NPC, 10.32, -15.5, 62.59, 2, 0)
  39. MovementLoopAddLocation(NPC, 10.32, -15.5, 62.59, 2, math.random(5,10))
  40. MovementLoopAddLocation(NPC, 4.41, -15.6, 68.22, 2, 0)
  41. MovementLoopAddLocation(NPC, 5.4, -15.57, 65.57, 2, 0)
  42. MovementLoopAddLocation(NPC, 5.4, -15.57, 65.57, 2, math.random(5,10))
  43. MovementLoopAddLocation(NPC, 7.47, -15.52, 62.6, 2, 0)
  44. MovementLoopAddLocation(NPC, 7.47, -15.52, 62.6, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, 5.3, -15.58, 67.04, 2, 0)
  46. MovementLoopAddLocation(NPC, 5.3, -15.58, 67.04, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 7.45, -15.52, 60.67, 2, 0)
  48. MovementLoopAddLocation(NPC, 7.45, -15.52, 60.67, 2, math.random(5,10))
  49. end