adrunksailor.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Freeport/adrunksailor.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.11 09:07:19
  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. local choice = math.random(1, 2)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "I don't know what to tell you, mate. If the Traders haven't found your brother by now, I'm afraid he's probably gone to the Hold of Prexus.", "sigh", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "It's been a long time since we've seen any refugees from the Outpost of the Overlord. Have they all been rescued?", "confused", 1689589577, 4560189, Spawn)
  18. else
  19. PlayFlavor(NPC, "", "I'm beginning to miss those young adventurers running about town, solving everyone's problems. Good work is hard to find!", "shame", 1689589577, 4560189, Spawn)
  20. end
  21. end
  22. function InRange(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "", "Captain Gullham and his men left port for the Outpost of the Overlord several moons ago. Neither he, nor his ship, the Callisto Prince, has been seen since!", "no", 1689589577, 4560189, Spawn)
  25. end
  26. function LeaveRange(NPC, Spawn)
  27. end
  28. function respawn(NPC)
  29. end