Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. --Akalay/Noob
  2. --#main
  3. singlehotkey('_', "Mandatory Scripts", function () say("!bosses") end)
  4.  
  5. local manaId = 28649
  6. local manaPercent = 95
  7. macro(200, "Potion Healing", function()
  8. if (hppercent() <= manaPercent) then
  9. usewith(manaId, player)
  10. end
  11. end)
  12.  
  13. --#panels
  14.  
  15. --#macros
  16. singlehotkey(']', "Spell Caster", function () say("!bosses") end)
  17.  
  18.  
  19. local singleTargetSpell = 'uber exori gran'
  20. local multiTargetSpell = 'uber exori gran'
  21. local strongTargetSpell = 'exori gran mas'
  22. local distance = 3
  23. local amountOfMonsters = 2
  24.  
  25. macro(250, "Exp Caster", function()
  26. local specAmount = 0
  27. if not g_game.isAttacking() then
  28. return
  29. end
  30. for i,mob in ipairs(getSpectators()) do
  31. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  32. specAmount = specAmount + 1
  33. end
  34. end
  35. if (specAmount >= amountOfMonsters) then
  36. say(strongTargetSpell)
  37. say(multiTargetSpell)
  38. else
  39. say(strongTargetSpell)
  40. say(singleTargetSpell)
  41. end
  42. end)
  43.  
  44. local singleTargetSpell = 'uber exori gran'
  45. local multiTargetSpell = 'uber exori gran'
  46. local strongTargetSpell = 'exori gran mas'
  47. local distance = 3
  48. local amountOfMonsters = 1
  49.  
  50. macro(250, "PVP target spell", function()
  51. local specAmount = 0
  52. if not g_game.isAttacking() then
  53. return
  54. end
  55. for i,mob in ipairs(getSpectators()) do
  56. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isPlayer()) then
  57. specAmount = specAmount + 1
  58. end
  59. end
  60. if (specAmount >= amountOfMonsters) then
  61. say(strongTargetSpell)
  62. say(multiTargetSpell)
  63. else
  64. say(strongTargetSpell)
  65. say(singleTargetSpell)
  66. end
  67. end)
  68.  
  69. local multiTargetSpell = 'uber exori gran'
  70. local strongTargetSpell = 'exori gran mas'
  71. local distance = 3
  72. local amountOfMonsters = 1
  73.  
  74. macro(250, "Dungeon Caster", function()
  75. local specAmount = 0
  76.  
  77. for i,mob in ipairs(getSpectators()) do
  78. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  79. specAmount = specAmount + 1
  80. end
  81. end
  82. if (specAmount >= amountOfMonsters) then
  83. say(strongTargetSpell)
  84. say(multiTargetSpell)
  85.  
  86. end
  87. end)
  88.  
  89. --
  90.  
  91. local multiTargetSpell = 'uber exori mas'
  92. local strongTargetSpell = 'exori gran mas'
  93. local distance = 3
  94. local amountOfMonsters = 1
  95.  
  96. macro(250, "Noob Dung Caster", function()
  97. local specAmount = 0
  98.  
  99. for i,mob in ipairs(getSpectators()) do
  100. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  101. specAmount = specAmount + 1
  102. end
  103. end
  104. if (specAmount >= amountOfMonsters) then
  105. say(strongTargetSpell)
  106. say(multiTargetSpell)
  107.  
  108. end
  109. end)
  110.  
  111. --
  112.  
  113. local manaId = 23375
  114. local manaPercent = 95
  115. macro(200, "Noob Healing", function()
  116. if (hppercent() <= manaPercent) then
  117. usewith(manaId, player)
  118. end
  119. end)
  120.  
  121. --
  122.  
  123. singlehotkey('[', "Other Scripts", function () say("!bosses") end)
  124.  
  125. --
  126.  
  127. macro(500, "Exp Mode", function()
  128. for i, tile in ipairs(g_map.getTiles(posz())) do
  129. for u,item in ipairs(tile:getItems()) do
  130. if (item:getId() == 25058) or (item:getId() == 21463) then
  131. autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
  132. elseif (item:getId() == 9586) then
  133. g_game.use(item)
  134. delay(1500)
  135. end
  136. end
  137. end
  138. end)
  139.  
  140.  
  141. --#hotkeys
  142.  
  143. --#callbacks
  144.  
  145. --#other
  146. onAddThing(function(tile, thing)
  147. if thing:isItem() and thing:getId() == 2129 then
  148. local pos = tile:getPosition().x .. "," .. tile:getPosition().y .. "," .. tile:getPosition().z
  149. if not storage[pos] or storage[pos] < now then
  150. storage[pos] = now + 20000
  151. end
  152. tile:setTimer(storage[pos] - now)
  153. end
  154. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement