aGruttoothbrute.lua 5.0 KB

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