9
3

SlaughtergrotttheVigilant.lua 791 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Freeport/SlaughtergrotttheVigilant.lua
  3. Script Author : premierio015
  4. Script Date : 2020.07.11 07:07:31
  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. end
  14. function respawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. local choice = math.random(1, 2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "You want to explore? Rediscover lost lands!", "", 1689589577, 4560189, Spawn)
  21. else
  22. PlayFlavor(NPC, "", "Adventure! You want it! I tell you where to get it!", "", 1689589577, 4560189, Spawn)
  23. end
  24. end
  25. function LeaveRange(NPC, Spawn)
  26. end