IzzayMeestere.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/Freeport/IzzayMeestere.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.20 07:07:00
  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. choice = math.random(1, 3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "They listens in to us. It's only fair to listens to them.", "grumble", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "What is the Militia doing this time?", "lookaway", 1689589577, 4560189, Spawn)
  18. else
  19. PlayFlavor(NPC, "", "It is sure ugly here!", "shiver", 1689589577, 4560189, Spawn)
  20. end
  21. end
  22. function InRange(NPC, Spawn)
  23. choice = math.random(1, 3)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "", "They listens in to us. It's only fair to listens to them.", "grumble", 1689589577, 4560189, Spawn)
  26. elseif choice == 2 then
  27. PlayFlavor(NPC, "", "What is the Militia doing this time?", "lookaway", 1689589577, 4560189, Spawn)
  28. else
  29. PlayFlavor(NPC, "", "It is sure ugly here!", "shiver", 1689589577, 4560189, Spawn)
  30. end
  31. end
  32. function LeaveRange(NPC, Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end