9
3

TarynHighsea.lua 864 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/TarynHighsea.lua
  3. Script Purpose : Taryn Highsea <Barber>
  4. Script Author : theFoof
  5. Script Date : 2013.10.30
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. Chat(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. Chat(NPC)
  19. end
  20. function Chat(NPC)
  21. FaceTarget(NPC, Spawn)
  22. local choice = math.random(1,3)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "I can help! Come closer for a consultation!", "hello", 1689589577, 4560189, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "", "A new look for a new town, that's what I always say!", "smile", 1689589577, 4560189, Spawn)
  27. else
  28. PlayFlavor(NPC, "", "Hm...I'm pretty sure that look is bad luck.", "beckon", 0, 0, Spawn)
  29. end
  30. end