9
3

avagrantsquatterPath2.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/avagrantsquatterPath2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.10 08:07:20
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. human(NPC)
  12. waypoints(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if not IsInCombat(NPC)then
  16. choice = MakeRandomInt(1,4)
  17. if choice ==1 then
  18. SendMessage(Spawn,"The vagrant squatter pays no attention to you.","white")
  19. elseif choice ==2 then
  20. SendMessage(Spawn,"The vagrant squatter listlessly stares in your direction.","white")
  21. elseif choice ==3 then
  22. SendMessage(Spawn,"The vagrant squatter's sun-scorched face cares little for your hail.","white")
  23. elseif choice ==4 then
  24. SendMessage(Spawn,"The vagrant squatter eyes you and holds out its hands for an offering.","white")
  25. FaceTarget(NPC,Spawn)
  26. PlayFlavor(NPC,"","","beg",0,0)
  27. end
  28. end
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, -16.05, -4.26, 123.16, 2, math.random(10,15))
  35. MovementLoopAddLocation(NPC, -16.05, -4.26, 123.16, 2, 0)
  36. MovementLoopAddLocation(NPC, -14.44, -4.3, 119.3, 2, 0)
  37. MovementLoopAddLocation(NPC, -16.42, -4.24, 110.14, 2, 0)
  38. MovementLoopAddLocation(NPC, -10.43, -4.24, 99.85, 2, 0)
  39. MovementLoopAddLocation(NPC, -8.17, -4.24, 90.56, 2, 0)
  40. MovementLoopAddLocation(NPC, -14.02, -4.24, 85.31, 2, 0)
  41. MovementLoopAddLocation(NPC, -26.05, -3.37, 82.66, 2, math.random(10,15))
  42. MovementLoopAddLocation(NPC, -26.05, -3.37, 82.66, 2, 0)
  43. MovementLoopAddLocation(NPC, -22.25, -3.97, 80.81, 2, 0)
  44. MovementLoopAddLocation(NPC, -15.85, -4.24, 85.74, 2, 0)
  45. MovementLoopAddLocation(NPC, -9.71, -4.24, 87.83, 2, 0)
  46. MovementLoopAddLocation(NPC, -5.69, -4.24, 83.57, 2, 0)
  47. MovementLoopAddLocation(NPC, -5.61, -4.24, 76.26, 2, 0)
  48. MovementLoopAddLocation(NPC, -13.39, -4.24, 66.85, 2, 0)
  49. MovementLoopAddLocation(NPC, -8.3, -4.24, 58.66, 2, 0)
  50. MovementLoopAddLocation(NPC, -10.42, -4.25, 50.82, 2, 0)
  51. MovementLoopAddLocation(NPC, -9.73, -4.54, 43.37, 2, 0)
  52. MovementLoopAddLocation(NPC, -12.7, -5.12, 38.06, 2, 0)
  53. MovementLoopAddLocation(NPC, -18.66, -5.14, 29.54, 2, 0)
  54. MovementLoopAddLocation(NPC, -19.28, -5.05, 20.59, 2, 0)
  55. MovementLoopAddLocation(NPC, -16.91, -4.93, 15.49, 2, math.random(10,15))
  56. MovementLoopAddLocation(NPC, -16.91, -4.93, 15.49, 2, 0)
  57. MovementLoopAddLocation(NPC, -19.15, -5.03, 20.43, 2, 0)
  58. MovementLoopAddLocation(NPC, -17.48, -5.14, 30.31, 2, 0)
  59. MovementLoopAddLocation(NPC, -10.89, -5.1, 38.67, 2, 0)
  60. MovementLoopAddLocation(NPC, -10.44, -4.3, 49.42, 2, 0)
  61. MovementLoopAddLocation(NPC, -8.36, -4.24, 56.19, 2, 0)
  62. MovementLoopAddLocation(NPC, -12.12, -4.24, 63.54, 2, 0)
  63. MovementLoopAddLocation(NPC, -9.31, -4.24, 72.51, 2, 0)
  64. MovementLoopAddLocation(NPC, -15.84, -4.24, 80.73, 2, 0)
  65. MovementLoopAddLocation(NPC, -16.51, -4.24, 83.9, 2, 0)
  66. MovementLoopAddLocation(NPC, -9.57, -4.24, 92.49, 2, 0)
  67. MovementLoopAddLocation(NPC, -7.55, -4.24, 98.14, 2, 0)
  68. MovementLoopAddLocation(NPC, -14.31, -4.24, 106.03, 2, 0)
  69. MovementLoopAddLocation(NPC, -12.87, -4.24, 112.33, 2, 0)
  70. end