avagrantsquatterPath4.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/avagrantsquatterPath4.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.10 09:07:21
  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, -12.97, -5.12, 39.36, 2, math.random(10,15))
  35. MovementLoopAddLocation(NPC, -12.97, -5.12, 39.36, 2, 0)
  36. MovementLoopAddLocation(NPC, -10.64, -4.77, 42.53, 2, 0)
  37. MovementLoopAddLocation(NPC, -5.47, -4.52, 45.03, 2, math.random(10,15))
  38. MovementLoopAddLocation(NPC, -5.47, -4.52, 45.03, 2, 0)
  39. MovementLoopAddLocation(NPC, -9.51, -4.37, 46.82, 2, 0)
  40. MovementLoopAddLocation(NPC, -11.32, -4.25, 52.52, 2, 0)
  41. MovementLoopAddLocation(NPC, -10.34, -4.24, 58.84, 2, 0)
  42. MovementLoopAddLocation(NPC, -14.1, -4.24, 62.39, 2, math.random(10,15))
  43. MovementLoopAddLocation(NPC, -14.1, -4.24, 62.39, 2, 0)
  44. MovementLoopAddLocation(NPC, -10.57, -4.24, 60.72, 2, 0)
  45. MovementLoopAddLocation(NPC, -7.05, -4.27, 62.85, 2, math.random(10,15))
  46. MovementLoopAddLocation(NPC, -7.05, -4.27, 62.85, 2, 0)
  47. MovementLoopAddLocation(NPC, -9.18, -4.24, 60.09, 2, 0)
  48. MovementLoopAddLocation(NPC, -7.21, -4.24, 54.81, 2, math.random(10,15))
  49. MovementLoopAddLocation(NPC, -7.21, -4.24, 54.81, 2, 0)
  50. MovementLoopAddLocation(NPC, -10.6, -4.24, 58.45, 2, 0)
  51. MovementLoopAddLocation(NPC, -10.29, -4.24, 65.06, 2, 0)
  52. MovementLoopAddLocation(NPC, -7.15, -4.24, 71.92, 2, 0)
  53. MovementLoopAddLocation(NPC, -10.82, -4.24, 77.58, 2, 0)
  54. MovementLoopAddLocation(NPC, -11.02, -4.24, 78.68, 2, math.random(10,15))
  55. MovementLoopAddLocation(NPC, -11.02, -4.24, 78.68, 2, 0)
  56. MovementLoopAddLocation(NPC, -7.39, -4.24, 76.17, 2, 0)
  57. MovementLoopAddLocation(NPC, -2.43, -4.3, 74.96, 2, math.random(10,15))
  58. MovementLoopAddLocation(NPC, -2.43, -4.3, 74.96, 2, 0)
  59. MovementLoopAddLocation(NPC, -5.22, -4.27, 71.72, 2, 0)
  60. MovementLoopAddLocation(NPC, -5.9, -4.3, 64.96, 2, 0)
  61. MovementLoopAddLocation(NPC, -11.86, -4.31, 56.87, 2, 0)
  62. MovementLoopAddLocation(NPC, -11.64, -4.24, 58.54, 2, math.random(10,15))
  63. MovementLoopAddLocation(NPC, -11.64, -4.24, 58.54, 2, 0)
  64. MovementLoopAddLocation(NPC, -10.98, -4.24, 55.85, 2, 0)
  65. MovementLoopAddLocation(NPC, -9, -4.26, 50.5, 2, 0)
  66. MovementLoopAddLocation(NPC, -9.14, -4.43, 44.64, 2, 0)
  67. end