aQeynoscitizen.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/aQeynoscitizen.lua
  3. Script Purpose : a Qeynos citizen
  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,4)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Are they here as spies? Are they planning an attack?", "ponder", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Have you seen them? I've heard that ratonga have been spotted in the city!", "agree", 1689589577, 4560189, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "Argh, it's not enough that they filthy up Freeport, now they've come here to spread their disease and muck around our city? PAH!", "angry", 1689589577, 4560189, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "The Council hasn't said anything about the ratonga yet. I wonder what's going on?", "ponder", 1689589577, 4560189, Spawn)
  30. else
  31. end
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, 822.63, -23.36, 108.25, 2, 30)
  35. MovementLoopAddLocation(NPC, 818.87, -23.32, 104.58, 2, 0)
  36. MovementLoopAddLocation(NPC, 820.26, -23.33, 81.49, 2, 0)
  37. MovementLoopAddLocation(NPC, 835.95, -23.5, 52.35, 2, 15)
  38. MovementLoopAddLocation(NPC, 836.02, -23.31, 46.13, 2, 0)
  39. MovementLoopAddLocation(NPC, 857.63, -25.39, 43.18, 2, 0)
  40. MovementLoopAddLocation(NPC, 882.96, -25.45, 48.95, 2, 0)
  41. MovementLoopAddLocation(NPC, 895.26, -25.5, 45.79, 2, 0)
  42. MovementLoopAddLocation(NPC, 926.1, -25.56, 55.37, 2, 0)
  43. MovementLoopAddLocation(NPC, 954.75, -25.56, 66.07, 2, 30)
  44. MovementLoopAddLocation(NPC, 926.1, -25.56, 55.37, 2, 0)
  45. MovementLoopAddLocation(NPC, 895.26, -25.5, 45.79, 2, 0)
  46. MovementLoopAddLocation(NPC, 882.96, -25.45, 48.95, 2, 0)
  47. MovementLoopAddLocation(NPC, 857.63, -25.39, 43.18, 2, 0)
  48. MovementLoopAddLocation(NPC, 836.02, -23.31, 46.13, 2, 0)
  49. MovementLoopAddLocation(NPC, 835.95, -23.5, 52.35, 2, 15)
  50. MovementLoopAddLocation(NPC, 820.26, -23.33, 81.49, 2, 0)
  51. MovementLoopAddLocation(NPC, 818.87, -23.32, 104.58, 2, 0)
  52. MovementLoopAddLocation(NPC, 822.63, -23.36, 108.25, 2, 30)
  53. end