aQeynosianprotector.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aQeynosianprotector.lua
  3. Script Author : cynnar
  4. Script Date : 2023.04.10 04:04:11
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseHuman1.lua")
  9. function spawn(NPC)
  10. Waypoints(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function Waypoints(NPC)
  16. MovementLoopAddLocation(NPC, 422.18, -24.79, -896.23, 2, 1)
  17. MovementLoopAddLocation(NPC, 422.18, -24.79, -896.23, 2, MakeRandomInt(15,25),"Action")
  18. MovementLoopAddLocation(NPC, 429.58, -25.34, -892.64, 2, 1)
  19. MovementLoopAddLocation(NPC, 429.58, -25.34, -892.64, 2, MakeRandomInt(5,15),"Action")
  20. MovementLoopAddLocation(NPC, 422.18, -24.79, -896.23, 2, 1)
  21. MovementLoopAddLocation(NPC, 422.18, -24.79, -896.23, 2, MakeRandomInt(15,25),"Action")
  22. MovementLoopAddLocation(NPC, 420.26, -25.84, -890.36, 2, 1)
  23. MovementLoopAddLocation(NPC, 420.26, -25.84, -890.36, 2, MakeRandomInt(5,15),"Action")
  24. end
  25. function Action(NPC)
  26. local choice = MakeRandomInt(1, 4)
  27. if choice == 1 then
  28. PlayFlavor(NPC, "", "", "peer", 0, 0)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "", "", "stretch", 0, 0)
  31. elseif choice == 3 then
  32. PlayFlavor(NPC, "", "", "yawn", 0, 0)
  33. elseif choice == 4 then
  34. PlayFlavor(NPC, "", "", "attention", 0, 0)
  35. end
  36. end