BarberRazorburn.lua 803 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Freeport/BarberRazorburn.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.11 08:08:41
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  10. end
  11. function InRange(NPC, Spawn)
  12. PlayFlavor(NPC, "", "Snippy snippy! Clippy Clippy!", "applaude", 1689589577, 4560189, Spawn)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. local choice = math.random(1, 2)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "Where meez clipclips goez?", "peer", 1689589577, 4560189, Spawn)
  19. else
  20. PlayFlavor(NPC, "", "Hair choppy now?!", "applaude", 1689589577, 4560189, Spawn)
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end