9
3

TorvilBeastamer.lua 837 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/TorvilBeastamer.lua
  3. Script Purpose : Torvil Beastamer <Pet Merchant>
  4. Script Author : theFoof
  5. Script Date : 2013.10.29
  6. Script Notes :
  7. --]]
  8. require"SpawnScripts/FrostfangSea/halas_proximity_cheer"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 15, "ProxCheer")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local choice = math.random(1,3)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "", "Tail or beak, I got what ye seek!", "wink", 1689589577, 4560189, Spawn)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "", "Haven't a friend in the world? Buy one from me!", "nod", 0, 0, Spawn)
  22. elseif choice == 3 then
  23. PlayFlavor(NPC, "", "Warm up yer house with a pet, my friend!", "hello", 0, 0, Spawn)
  24. end
  25. end