Mehina.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Mehina.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.12 03:07:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = math.random(1, 3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "These stone walls don't keep things out; they keep us in!", "", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "There's no place for the elderly in this town.", "", 1689589577, 4560189, Spawn)
  18. else
  19. PlayFlavor(NPC, "", "I don't care what they say. This town is not much to look at, is it?", "", 1689589577, 4560189, Spawn)
  20. end
  21. end
  22. function respawn(NPC)
  23. end
  24. function InRange(NPC, Spawn)
  25. local choice = math.random(1, 3)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "", "These stone walls don't keep things out; they keep us in!", "", 1689589577, 4560189, Spawn)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "", "There's no place for the elderly in this town.", "", 1689589577, 4560189, Spawn)
  30. else
  31. PlayFlavor(NPC, "", "I don't care what they say. This town is not much to look at, is it?", "", 1689589577, 4560189, Spawn)
  32. end
  33. end
  34. function LeaveRange(NPC, Spawn)
  35. end