9
3

avagrantsquatterPath3.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/avagrantsquatterPath3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.10 08:07:43
  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, -1.21, -4.3, 77.25, 2, math.random(10, 15))
  35. MovementLoopAddLocation(NPC, -1.21, -4.3, 77.25, 2, 0)
  36. MovementLoopAddLocation(NPC, -9.54, -4.24, 84.49, 2, math.random(10, 15))
  37. MovementLoopAddLocation(NPC, -9.54, -4.24, 84.49, 2, 0)
  38. MovementLoopAddLocation(NPC, -6.74, -4.24, 86.42, 2, 0)
  39. MovementLoopAddLocation(NPC, -6.65, -4.24, 92.9, 2, math.random(10, 15))
  40. MovementLoopAddLocation(NPC, -6.65, -4.24, 92.9, 2, 0)
  41. MovementLoopAddLocation(NPC, -8.21, -4.24, 91.31, 2, 0)
  42. MovementLoopAddLocation(NPC, -12.78, -4.24, 90.76, 2, 0)
  43. MovementLoopAddLocation(NPC, -16.66, -4.29, 94.22, 2, math.random(10, 15))
  44. MovementLoopAddLocation(NPC, -16.66, -4.29, 94.22, 2, 0)
  45. MovementLoopAddLocation(NPC, -13.29, -4.24, 95.44, 2, 0)
  46. MovementLoopAddLocation(NPC, -12.48, -4.24, 100.33, 2, 0)
  47. MovementLoopAddLocation(NPC, -16.74, -4.39, 104.85, 2, 0)
  48. MovementLoopAddLocation(NPC, -18.16, -4.38, 105.48, 2, math.random(10, 15))
  49. MovementLoopAddLocation(NPC, -18.16, -4.38, 105.48, 2, 0)
  50. MovementLoopAddLocation(NPC, -14.89, -4.27, 106.24, 2, 0)
  51. MovementLoopAddLocation(NPC, -10.54, -4.24, 110.51, 2, math.random(10, 15))
  52. MovementLoopAddLocation(NPC, -10.54, -4.24, 110.51, 2, 0)
  53. MovementLoopAddLocation(NPC, -12.59, -4.24, 107.47, 2, 0)
  54. MovementLoopAddLocation(NPC, -11.82, -4.24, 101.64, 2, math.random(10, 15))
  55. MovementLoopAddLocation(NPC, -11.82, -4.24, 101.64, 2, 0)
  56. MovementLoopAddLocation(NPC, -14.62, -4.24, 98.2, 2, 0)
  57. MovementLoopAddLocation(NPC, -16.6, -4.19, 91.94, 2, 0)
  58. MovementLoopAddLocation(NPC, -13.79, -4.24, 86.37, 2, math.random(10, 15))
  59. MovementLoopAddLocation(NPC, -13.79, -4.24, 86.37, 2, 0)
  60. MovementLoopAddLocation(NPC, -10.73, -4.24, 85.89, 2, 0)
  61. MovementLoopAddLocation(NPC, -7.48, -4.24, 81.86, 2, 0)
  62. MovementLoopAddLocation(NPC, -8.78, -4.24, 75.2, 2, 0)
  63. MovementLoopAddLocation(NPC, -12.08, -4.24, 71.23, 2, math.random(10, 15))
  64. MovementLoopAddLocation(NPC, -12.08, -4.24, 71.23, 2, 0)
  65. MovementLoopAddLocation(NPC, -7.44, -4.24, 77.73, 2, 0)
  66. end