adrunksailor.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/adrunksailor.lua
  3. Script Purpose : a drunk sailor
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. waypoints(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local choice = math.random(1,6)
  22. if choice == 1 then
  23. 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)
  24. elseif choice == 2 then
  25. 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)
  26. elseif choice == 3 then
  27. 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)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "I've heard word of a massive flotilla of ships blocking access to some of the established trade routes! Who do they think they are?! Do the Far Seas Traders have the audacity to think they own the seas?", "shakefist", 1689589577, 4560189, Spawn)
  30. elseif choice == 5 then
  31. 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)
  32. elseif choice == 6 then
  33. PlayFlavor(NPC, "", "I've heard the Far Seas Trading Company no longer honors the Pact of Tserrin.", "agree", 1689589577, 4560189, Spawn)
  34. else
  35. end
  36. end
  37. function waypoints(NPC)
  38. MovementLoopAddLocation(NPC, 926.33, -25.56, 64.28, 2, 0)
  39. MovementLoopAddLocation(NPC, 916.7, -25.49, 54.32, 2, 0)
  40. MovementLoopAddLocation(NPC, 906.84, -25.25, 48.73, 2, 0)
  41. MovementLoopAddLocation(NPC, 911.84, -25.49, 32.88, 2, 0)
  42. MovementLoopAddLocation(NPC, 922.02, -25.49, 22.11, 2, 0)
  43. MovementLoopAddLocation(NPC, 931.07, -25.4, 15.12, 2, 0)
  44. MovementLoopAddLocation(NPC, 933.57, -25.42, 14.33, 2, 0)
  45. MovementLoopAddLocation(NPC, 938.88, -25.55, 11.42, 2, 0)
  46. MovementLoopAddLocation(NPC, 927.9, -25.43, 16.95, 2, 0)
  47. MovementLoopAddLocation(NPC, 931.45, -25.58, 31.72, 2, 0)
  48. MovementLoopAddLocation(NPC, 923.78, -25.49, 51.49, 2, 0)
  49. MovementLoopAddLocation(NPC, 910.29, -25.33, 88.01, 2, 0)
  50. MovementLoopAddLocation(NPC, 928.5, -25.27, 97.46, 2, 0)
  51. MovementLoopAddLocation(NPC, 932.35, -25.27, 92.05, 2, 0)
  52. MovementLoopAddLocation(NPC, 924.95, -25.27, 88.74, 2, 120)
  53. MovementLoopAddLocation(NPC, 932.35, -25.27, 92.05, 2, 0)
  54. MovementLoopAddLocation(NPC, 928.5, -25.27, 97.46, 2, 0)
  55. MovementLoopAddLocation(NPC, 910.29, -25.33, 88.01, 2, 0)
  56. MovementLoopAddLocation(NPC, 923.78, -25.49, 51.49, 2, 0)
  57. MovementLoopAddLocation(NPC, 931.45, -25.58, 31.72, 2, 0)
  58. MovementLoopAddLocation(NPC, 927.9, -25.43, 16.95, 2, 0)
  59. MovementLoopAddLocation(NPC, 938.88, -25.55, 11.42, 2, 0)
  60. MovementLoopAddLocation(NPC, 933.57, -25.42, 14.33, 2, 0)
  61. MovementLoopAddLocation(NPC, 931.07, -25.4, 15.12, 2, 0)
  62. MovementLoopAddLocation(NPC, 922.02, -25.49, 22.11, 2, 0)
  63. MovementLoopAddLocation(NPC, 911.84, -25.49, 32.88, 2, 0)
  64. MovementLoopAddLocation(NPC, 906.84, -25.25, 48.73, 2, 0)
  65. MovementLoopAddLocation(NPC, 916.7, -25.49, 54.32, 2, 0)
  66. MovementLoopAddLocation(NPC, 926.33, -25.56, 64.28, 2, 0)
  67. end