9
3

aGruttoothbrute.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothbrute.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.09 03:09:26
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin2.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. EmoteLoop(NPC,Spawn)
  13. if GetSpawnLocationID(NPC)==133775625 then
  14. waypoints(NPC)
  15. end
  16. end
  17. function hailed(NPC, Spawn)
  18. end
  19. function EmoteLoop(NPC,Spawn)
  20. if IsInCombat(NPC) == false and HasMoved(NPC)==false then
  21. choice = MakeRandomInt(1,10)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn, 0)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn, 0)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  30. elseif choice == 5 then
  31. PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
  32. elseif choice == 6 then
  33. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  34. elseif choice == 7 then
  35. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  36. elseif choice == 8 then
  37. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn, 0)
  38. elseif choice == 9 then
  39. PlayFlavor(NPC, "", "", "brandish", 0, 0, Spawn, 0)
  40. elseif choice == 10 then
  41. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  42. end
  43. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  44. else
  45. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  46. end
  47. end
  48. function respawn(NPC)
  49. spawn(NPC)
  50. end
  51. function waypoints(NPC)
  52. MovementLoopAddLocation(NPC, 249.32, -0.5, -163.56, 2, 15)
  53. MovementLoopAddLocation(NPC, 249.46, -0.54, -162.96, 2, 0)
  54. MovementLoopAddLocation(NPC, 251.58, -1, -162.96, 2, 0)
  55. MovementLoopAddLocation(NPC, 247.73, -0.02, -169.86, 2, 0)
  56. MovementLoopAddLocation(NPC, 245.82, -0.01, -173.24, 2, 0)
  57. MovementLoopAddLocation(NPC, 237.8, -0.2, -168.96, 2, 0)
  58. MovementLoopAddLocation(NPC, 227.89, -0.8, -166.62, 2, 0)
  59. MovementLoopAddLocation(NPC, 223.22, -0.78, -165.64, 2, 0)
  60. MovementLoopAddLocation(NPC, 215.64, -0.95, -159.65, 2, 0)
  61. MovementLoopAddLocation(NPC, 208.51, -0.92, -163.36, 2, 0)
  62. MovementLoopAddLocation(NPC, 205.97, -0.91, -165.77, 2, 0)
  63. MovementLoopAddLocation(NPC, 200.07, -0.89, -175.64, 2, 0)
  64. MovementLoopAddLocation(NPC, 194, -0.87, -177.41, 2, 0)
  65. MovementLoopAddLocation(NPC, 185.43, -0.83, -179.25, 2, 0)
  66. MovementLoopAddLocation(NPC, 176.48, -0.8, -184.84, 2, 0)
  67. MovementLoopAddLocation(NPC, 172.19, -0.78, -194.84, 2, 0)
  68. MovementLoopAddLocation(NPC, 167.09, -0.76, -201.03, 2, 0)
  69. MovementLoopAddLocation(NPC, 162.7, -0.75, -203.27, 2, 0)
  70. MovementLoopAddLocation(NPC, 152.02, -0.59, -214.22, 2, 20)
  71. MovementLoopAddLocation(NPC, 150.4, -0.6, -214.43, 2, 0)
  72. MovementLoopAddLocation(NPC, 150.53, -0.54, -210.13, 2, 0)
  73. MovementLoopAddLocation(NPC, 147.23, -0.69, -204.46, 2, 0)
  74. MovementLoopAddLocation(NPC, 142.69, -0.67, -202.24, 2, 0)
  75. MovementLoopAddLocation(NPC, 136.63, -0.65, -198.76, 2, 0)
  76. MovementLoopAddLocation(NPC, 133.3, -0.62, -195.27, 2, 0)
  77. MovementLoopAddLocation(NPC, 129.56, -0.63, -191, 2, 0)
  78. MovementLoopAddLocation(NPC, 125.48, -0.61, -183.18, 2, 0)
  79. MovementLoopAddLocation(NPC, 123.64, -0.61, -179.16, 2, 0)
  80. MovementLoopAddLocation(NPC, 122.53, -0.6, -174.43, 2, 0)
  81. MovementLoopAddLocation(NPC, 123.09, -0.37, -167.58, 2, 0)
  82. MovementLoopAddLocation(NPC, 119.02, -0.4, -163.78, 2, 15)
  83. MovementLoopAddLocation(NPC, 117.65, -0.4, -163.45, 4, 0)
  84. MovementLoopAddLocation(NPC, 93.72, -0.31, -163.94, 4, 0)
  85. MovementLoopAddLocation(NPC, 86.21, 0.15, -161.29, 4, 0)
  86. MovementLoopAddLocation(NPC, 77.94, -0.2, -161.71, 4, 0)
  87. MovementLoopAddLocation(NPC, 70.11, -2.57, -160.74, 4, 0)
  88. MovementLoopAddLocation(NPC, 67.2, -2.56, -161.86, 4, 15)
  89. MovementLoopAddLocation(NPC, 55.93, -2.52, -167.36, 4, 0)
  90. MovementLoopAddLocation(NPC, 51.39, -2.5, -169.81, 4, 0)
  91. MovementLoopAddLocation(NPC, 50.4, -2.5, -167.02, 4, 0)
  92. MovementLoopAddLocation(NPC, 51.37, -2.5, -170.5, 4, 0)
  93. MovementLoopAddLocation(NPC, 49.13, -2.5, -164.59, 4, 0)
  94. MovementLoopAddLocation(NPC, 51.8, -2.5, -169.37, 4, 0)
  95. MovementLoopAddLocation(NPC, 53.23, -2.51, -165.44, 4, 0)
  96. MovementLoopAddLocation(NPC, 52.28, -2.51, -169.5, 4, 0)
  97. MovementLoopAddLocation(NPC, 51.38, -2.5, -168.86, 4, 15)
  98. MovementLoopAddLocation(NPC, 55.1, -2.16, -170.6, 2, 10000)
  99. end