GreldaneIrongut.lua 712 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/GreldaneIrongut.lua
  3. Script Purpose : Greldane Irongut
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 4, "InRange", "LeaveRange")
  11. SetInfoStructString(NPC, "action_state", "drinking_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. GenericDrunkCallout(NPC, Spawn, faction)
  18. end
  19. function LeaveRange(NPC, Spawn)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. GenericDrunkHail(NPC, Spawn, faction)
  24. end