Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. --Boss Hunter
  2. --#main
  3. local BuffSpell = 'utevo gran lux'
  4.  
  5. macro(200, "utevo gran lux", function()
  6. say(BuffSpell)
  7. delay(29800)
  8. end)
  9.  
  10. --
  11.  
  12. local manaId = 9112
  13. local manaPercent = 95
  14. macro(200, "faster potting", function()
  15. if (manapercent() <= manaPercent) or (hppercent() <= manaPercent) then
  16. usewith(manaId, player)
  17. end
  18. end)
  19.  
  20. --
  21.  
  22. local castBelowHp = 60
  23. local deactiveBelowMana = 40
  24. macro(100, "advanced manashield", function()
  25. if (hppercent() <= castBelowHp and manapercent() >= deactiveBelowMana and not hasManaShield()) then
  26. say('utamo vita')
  27. end
  28. if (manapercent() <= deactiveBelowMana and hppercent() >= castBelowHp and hasManaShield()) then
  29. say('utamo vita')
  30. end
  31. end)
  32.  
  33.  
  34. local trainSpell = 'utevo mana'
  35. local manaPercent = 90
  36. macro(200, "mana train", function()
  37. if (manapercent() > manaPercent) then
  38. say(trainSpell)
  39. end
  40. end)
  41.  
  42. macro(250, "Eat Food", function()
  43. use(3725)
  44. delay(59750)
  45. end)
  46. --#panels
  47.  
  48. --#macros
  49. local singleTargetSpell = 'exori max star'
  50. local multiTargetSpell = 'exevo max row'
  51. local strongTargetSpell = 'exevo gran mas san'
  52. local distance = 3
  53. local amountOfMonsters = 2
  54.  
  55. macro(250, "multi target spell", function()
  56. local specAmount = 0
  57. if not g_game.isAttacking() then
  58. return
  59. end
  60. for i,mob in ipairs(getSpectators()) do
  61. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  62. specAmount = specAmount + 1
  63. end
  64. end
  65. if (specAmount >= amountOfMonsters) then
  66. say(strongTargetSpell)
  67. say(multiTargetSpell)
  68. else
  69. say(strongTargetSpell)
  70. say(singleTargetSpell)
  71. end
  72. end)
  73.  
  74. local singleTargetSpell = 'exori max star'
  75. local distance = 3
  76. local amountOfMonsters = 1
  77.  
  78. macro(250, "PVP target spell", function()
  79. local specAmount = 0
  80. if not g_game.isAttacking() then
  81. return
  82. end
  83. for i,mob in ipairs(getSpectators()) do
  84. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isPlayer()) then
  85. specAmount = specAmount + 1
  86. end
  87. end
  88. if (specAmount >= amountOfMonsters) then
  89. say(singleTargetSpell)
  90.  
  91. end
  92. end)
  93.  
  94. local singleTargetSpell = 'exori max star'
  95. local strongTargetSpell = 'exevo gran mas san'
  96. local distance = 3
  97. local amountOfMonsters = 1
  98.  
  99. macro(250, "boss target spell", function()
  100. local specAmount = 0
  101. if not g_game.isAttacking() then
  102. return
  103. end
  104. for i,mob in ipairs(getSpectators()) do
  105. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  106. specAmount = specAmount + 1
  107. end
  108. end
  109. if (specAmount >= amountOfMonsters) then
  110. say(strongTargetSpell)
  111. say(singleTargetSpell)
  112. else
  113. say(singleTargetSpell)
  114.  
  115. end
  116. end)
  117.  
  118.  
  119. local multiTargetSpell = 'exevo max row'
  120. local strongTargetSpell = 'exevo gran mas san'
  121. local distance = 3
  122. local amountOfMonsters = 1
  123.  
  124. macro(250, "dung target spell", function()
  125. local specAmount = 0
  126.  
  127. for i,mob in ipairs(getSpectators()) do
  128. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  129. specAmount = specAmount + 1
  130. end
  131. end
  132. if (specAmount >= amountOfMonsters) then
  133. say(strongTargetSpell)
  134. say(multiTargetSpell)
  135.  
  136. end
  137. end)
  138.  
  139.  
  140.  
  141. --
  142. local walkButton = modules.game_luniabot.walkButton
  143. function turnOnWalking()
  144. walkButton:setChecked(true)
  145. end
  146. function turnOffWalking()
  147. walkButton:setChecked(false)
  148. end
  149.  
  150. macro(500, "Exp Mode", function()
  151. for i, tile in ipairs(g_map.getTiles(posz())) do
  152. for u,item in ipairs(tile:getItems()) do
  153. if (item:getId() == 25058) or (item:getId() == 21463) then
  154. turnOffWalking()
  155. autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
  156. schedule(5000, turnOnWalking)
  157. elseif (item:getId() == 9586) then
  158. turnOffWalking()
  159. g_game.use(item)
  160. schedule(5000, turnOnWalking)
  161. delay(1500)
  162. end
  163. end
  164. end
  165. end)
  166.  
  167. local walk_button = modules.game_luniabot.walkButton;
  168.  
  169. function hasEffect(tile, effect)
  170. for i, fx in ipairs(tile:getEffects()) do
  171. if fx:getId() == effect then
  172. return true
  173. end
  174. end
  175. return false
  176. end
  177.  
  178. macro(100, "Exp Essence", function()
  179. for _, tile in pairs(g_map.getTiles(posz())) do
  180. if (hasEffect(tile, 56) or hasEffect(tile, 56)) then
  181. walk_button:setChecked(false);
  182. autoWalk(tile:getPosition(), 100, { ignoreNonPathable = true });
  183. schedule(5000, function() walk_button:setChecked(true); end);
  184. end
  185. end
  186. end)
  187.  
  188. --
  189. --
  190.  
  191.  
  192. --#hotkeys
  193.  
  194. --#callbacks
  195.  
  196. --#other
  197. onAddThing(function(tile, thing)
  198. if thing:isItem() and thing:getId() == 2129 then
  199. local pos = tile:getPosition().x .. "," .. tile:getPosition().y .. "," .. tile:getPosition().z
  200. if not storage[pos] or storage[pos] < now then
  201. storage[pos] = now + 20000
  202. end
  203. tile:setTimer(storage[pos] - now)
  204. end
  205. end)
  206.  
  207. local playerToFollow = 'Vaillant'
  208. macro(250, "auto follow", function()
  209. if g_game.isFollowing() then
  210. return
  211. end
  212. for _, followcreature in ipairs(g_map.getSpectators(pos(), false)) do
  213. if (followcreature:getName() == playerToFollow and getDistanceBetween(pos(), followcreature:getPosition()) <= 8) then
  214. g_game.follow(followcreature)
  215. end
  216. end
  217. end)
  218.  
  219. macro(10, "Reattack", function()
  220. if (not g_game.isAttacking()) then
  221. attack(target);
  222. end
  223. end)
  224.  
  225. macro(2000, "say target", function()
  226. local creature = g_game.getAttackingCreature();
  227. if (creature) then
  228. say("!bg " .. creature:getName());
  229. end
  230. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement