9
3

BarberWhiskerwuzzle.lua 955 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Freeport/BarberWhiskerwuzzle.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.11 08:08:54
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = math.random(1, 2)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "Got a hot date? Ya need ta get yerself fixed up!", "woowoo", 1689589577, 4560189, Spawn)
  16. else
  17. PlayFlavor(NPC, "", "So ya want ta hide from someone huh? Hey, it's none o' my business... Just curious...", "wink", 1689589577, 4560189, Spawn)
  18. end
  19. end
  20. function InRange(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. PlayFlavor(NPC, "", "Hey you! Scruffy! Get over here! You could use some work done!", "beckon", 1689589577, 4560189, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end