9
3

aDarkpawyouth.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aDarkpawyouth.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.15 07:07:27
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/DarkpawGnoll1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. if GetSpawnLocationID(NPC)== 133785089 or GetSpawnLocationID(NPC)== 133785090 then
  13. AddTimer(NPC,MakeRandomInt(1000,3500),"Run")
  14. else
  15. IdleBored(NPC)
  16. end
  17. end
  18. function Run(NPC)
  19. local Choice = MakeRandomInt(1,2)
  20. if Choice == 1 then
  21. MovementLoopAddLocation(NPC, -223.02, -18.63, 367.08, 4, 0)
  22. MovementLoopAddLocation(NPC, -264.97, -18.18, 358.61, 4, 0)
  23. MovementLoopAddLocation(NPC, -304.32, -12.89, 345.16, 4, 0)
  24. MovementLoopAddLocation(NPC, -334.21, -8.24, 335.82, 4, 0)
  25. MovementLoopAddLocation(NPC, -356.47, -6.91, 324.08, 4, 0)
  26. MovementLoopAddLocation(NPC, -367.91, -1.93, 316.53, 4, 0)
  27. MovementLoopAddLocation(NPC, -384.38, 2.01, 303.03, 4, 0)
  28. MovementLoopAddLocation(NPC, -392.53, 4.50, 278.45, 4, 0)
  29. MovementLoopAddLocation(NPC, -389.51, 4.69, 268.03, 4, 6)
  30. else
  31. MovementLoopAddLocation(NPC, -242.39, -16.85, 347.73, 4, 0)
  32. MovementLoopAddLocation(NPC,-278.97, -19.98, 334.70, 4, 0)
  33. MovementLoopAddLocation(NPC, -301.73, -14.96, 334.97, 4, 0)
  34. MovementLoopAddLocation(NPC, -321.74, -12.70, 332.40, 4, 0)
  35. MovementLoopAddLocation(NPC, -333.85, -8.55, 329.71, 4, 0)
  36. MovementLoopAddLocation(NPC, -353.12, -7.06, 318.33, 4, 0)
  37. MovementLoopAddLocation(NPC, -371.48, 1.04, 303.07, 4, 0)
  38. MovementLoopAddLocation(NPC, -392.53, 4.50, 278.45, 4, 0)
  39. MovementLoopAddLocation(NPC, -389.51, 4.69, 268.03, 4, 6)
  40. end
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end