ConallLancebreaker.lua 813 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/Antonica/ConallLancebreaker.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.27 08:08:22
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetInfoStructString(NPC, "action_state", "drinking_idle")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1, 3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "Grab an ale, me friend!", "", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "I should be gettin' back to me wife, before she comes callin' after me... again.", "", 1689589577, 4560189, Spawn)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "", "Hail, right back at ya.", "", 1689589577, 4560189, Spawn)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end