9
3

Gavinfell.lua 965 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/Gavinfell.lua
  3. Script Purpose : Gavinfell <Guard>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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. else
  20. CheckFaction(NPC, Spawn, "Qeynos")
  21. end
  22. end
  23. function LeaveRange(NPC, Spawn)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. GenericGuardHail(NPC, Spawn)
  28. -- PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2268064933, 2349331472, Spawn)
  29. end