9
3

Bekker.lua 742 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Bekker.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.23 12:04:59
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if math.random(0, 100) <= 25 then
  17. FaceTarget(NPC, Spawn)
  18. GenericGuardHail(NPC, Spawn)
  19. CheckFaction(NPC, Spawn, "Qeynos")
  20. else
  21. CheckFaction(NPC, Spawn, "Qeynos")
  22. end
  23. end
  24. function LeaveRange(NPC, Spawn)
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. GenericGuardHail(NPC, Spawn)
  29. end