aMilitiaguard55704.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aMilitiaguard55704.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.04.25 08:04:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. MovementLoopAddLocation(NPC, 78.70, -10.03, -23.81, 2, 2)
  10. MovementLoopAddLocation(NPC, 156.29, -3.52, -75.16, 2, 0)
  11. MovementLoopAddLocation(NPC, 159.12, -3.52, -71.24, 2, 5)
  12. MovementLoopAddLocation(NPC, 156.29, -3.52, -75.16, 2, 0)
  13. MovementLoopAddLocation(NPC, 78.70, -10.03, -23.81, 2, 2)
  14. MovementLoopAddLocation(NPC, 81.38, -9.77, -17,03, 2, 5)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. local choice = math.random(1, 3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "Do not challenge my authority, citizen. In Freeport, the Overlord's word is law!", "scold", 1689589577, 4560189, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 1689589577, 4560189, Spawn)
  23. else
  24. PlayFlavor(NPC, "", "Do you have business with the Freeport Militia?", "glare", 1689589577, 4560189, Spawn)
  25. end
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end