9
3

MarcusLevidius.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/MarcusLevidius.lua
  3. Script Purpose : Marcus Levidius
  4. Script Author : John Adams
  5. Script Date : 2009.04.05 (18.7.2022 by torsten, waypoints)
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. choice = math.random(1, 4)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "", "Yes, yes, hello. I'm busy.", "hello", 1689589577, 4560189, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "", "Oh, drat, I hope not. Oh, sorry, I thought you might have meant the weather.", "confused", 1689589577, 4560189, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "", "Grim determination has gotten us to where we are now.", "agree", 1689589577, 4560189, Spawn)
  23. elseif choice == 4 then
  24. PlayFlavor(NPC, "", "One day, we shall reign supreme over the lessers.", "brandish", 1689589577, 4560189, Spawn)
  25. end
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 39.71, -6.25, 46.31, 2, 0)
  29. MovementLoopAddLocation(NPC, 29.43, -5.75, 40.97, 2, math.random(8,12))
  30. MovementLoopAddLocation(NPC, 34.18, -5, 33, 2, 0)
  31. MovementLoopAddLocation(NPC, 26.31, -5.75, 32.09, 2, math.random(8,12))
  32. MovementLoopAddLocation(NPC, -17.58, -5, 17.83, 2, 0)
  33. MovementLoopAddLocation(NPC, -15.27, -4.99, 7.51, 2, 0)
  34. MovementLoopAddLocation(NPC, -10.51, -2.31, 11.61, 2, 0)
  35. MovementLoopAddLocation(NPC, -1.01, 1.94, 15.71, 2, math.random(8,12))
  36. MovementLoopAddLocation(NPC, 3.24, 2.66, 5.35, 2, 0)
  37. MovementLoopAddLocation(NPC, 15.59, 3.5, 7.75, 2, 0)
  38. MovementLoopAddLocation(NPC, 19.71, 3.5, 2.88, 2, 0)
  39. MovementLoopAddLocation(NPC, 21.91, 5.25, -14.45, 2, math.random(8,12))
  40. MovementLoopAddLocation(NPC, 7.21, 4.75, -23.88, 2, 0)
  41. MovementLoopAddLocation(NPC, -0.71, 3.75, -24.3, 2, math.random(8,12))
  42. MovementLoopAddLocation(NPC, -13.99, 2, -4.07, 2, 0)
  43. MovementLoopAddLocation(NPC, 7, 2.71, 8.39, 2, 0)
  44. MovementLoopAddLocation(NPC, 48.64, 2.59, 9.6, 2, 0)
  45. MovementLoopAddLocation(NPC, 28.38, 2, 14.39, 2, 0)
  46. MovementLoopAddLocation(NPC, 47.81, 2.5, 10.96, 2, 0)
  47. MovementLoopAddLocation(NPC, 50, 1.93, 26.01, 2, math.random(8,12))
  48. MovementLoopAddLocation(NPC, 32.54, -5, 24.13, 2, 0)
  49. MovementLoopAddLocation(NPC, 29.27, -6.25, 46.87, 2, 0)
  50. MovementLoopAddLocation(NPC, 11.54, -6.51, 46.06, 2, 0)
  51. end