astockpileprotectorPath1.lua 1.9 KB

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