Guest User

GALIO MASTER v1.0

a guest
Jun 24th, 2014
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.45 KB | None | 0 0
  1. if myHero.charName ~= "Galio" then return end
  2.  
  3. require 'VPrediction'
  4.  
  5. function Menu()
  6. MenuGalio = AutoCarry.PluginMenu
  7. MenuGalio:addSubMenu("Combo Settings", "comboConfig")
  8. MenuGalio.comboConfig:addParam("USEQ", "Use Q in Combo", SCRIPT_PARAM_ONOFF, true)
  9. MenuGalio.comboConfig:addParam("USEW", "Use W in Combo", SCRIPT_PARAM_ONOFF, true)
  10. MenuGalio.comboConfig:addParam("USEE", "Use E in Combo", SCRIPT_PARAM_ONOFF, true)
  11. MenuGalio.comboConfig:addParam("USER", "Use R in Combo", SCRIPT_PARAM_ONOFF, true)
  12. MenuGalio.comboConfig:addParam("ENEMYTOR", "Min Enemies to Cast R: ", SCRIPT_PARAM_SLICE, 2, 1, 5, 0)
  13. MenuGalio:addSubMenu("KS Settings" , "ksConfig")
  14. MenuGalio.ksConfig:addParam("IGN", "KS Ignite", SCRIPT_PARAM_ONOFF, true)
  15. MenuGalio.ksConfig:addParam("KSQ", "KS Q", SCRIPT_PARAM_ONOFF, true)
  16. MenuGalio.ksConfig:addParam("KSE", "KS E", SCRIPT_PARAM_ONOFF, true)
  17. MenuGalio.ksConfig:addParam("KSULT", "KS R", SCRIPT_PARAM_ONOFF, true)
  18. MenuGalio:addSubMenu("Harras Settings", "harrasConfig")
  19. MenuGalio.harrasConfig:addParam("HQ", "Harras enemy Q", SCRIPT_PARAM_ONKEYTOGGLE, true, GetKey("X"))
  20. MenuGalio.harrasConfig:addParam("MINMPTOQ", "Min % MP To Harras Q", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
  21. MenuGalio.harrasConfig:addParam("HE", "Harras enemy E", SCRIPT_PARAM_ONKEYTOGGLE, true, GetKey("Z"))
  22. MenuGalio.harrasConfig:addParam("MINMPTOE", "Min % MP To Harras W", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
  23. MenuGalio.harrasConfig:permaShow("HQ")
  24. MenuGalio.harrasConfig:permaShow("HE")
  25. MenuGalio:addSubMenu("Farm Settings", "farmConfig")
  26. MenuGalio.farmConfig:addParam("FQ", "Farm Q", SCRIPT_PARAM_ONOFF, true)
  27. MenuGalio.farmConfig:addParam("MINMPTOFQ", "Min % MP To Farm Q", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
  28. MenuGalio.farmConfig:addParam("FE", "Farm E", SCRIPT_PARAM_ONOFF, true)
  29. MenuGalio.farmConfig:addParam("MINMPTOFE", "Min % MP To Farm W", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
  30. MenuGalio.farmConfig:permaShow("FQ")
  31. MenuGalio.farmConfig:permaShow("FE")
  32. MenuGalio:addSubMenu("Drawing Settings", "drawConfig")
  33. MenuGalio.drawConfig:addParam("DQ", "Draw Q Range", SCRIPT_PARAM_ONOFF, true)
  34. MenuGalio.drawConfig:addParam("DW", "Draw W Range", SCRIPT_PARAM_ONOFF, true)
  35. MenuGalio.drawConfig:addParam("DE", "Draw E Range", SCRIPT_PARAM_ONOFF, true)
  36. MenuGalio.drawConfig:addParam("DR", "Draw R Range", SCRIPT_PARAM_ONOFF, true)
  37.  
  38. end
  39.  
  40. function Variables()
  41. VP = VPrediction()
  42. IgniteKey = nil;
  43. if myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") then
  44. IgniteKey = SUMMONER_1
  45. elseif myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") then
  46. IgniteKey = SUMMONER_2
  47. else
  48. IgniteKey = nil
  49. end
  50. -- Q --
  51. qRange = 940
  52. qDelay = 240
  53. qSpeed = 1400
  54. qWidth = 235
  55. -- W --
  56. wRange = 800
  57. -- E --
  58. eRange = 1180
  59. eDelay = 240
  60. eSpeed = 1400
  61. eWidth = 235
  62. -- R --
  63. rRange = 560
  64. AutoCarry.SkillsCrosshair.range = 1180
  65. end
  66.  
  67. function PluginOnLoad()
  68. Menu()
  69. Variables()
  70. end
  71.  
  72. function PluginOnTick()
  73. Target = AutoCarry.GetAttackTarget()
  74. QReady = (myHero:CanUseSpell(_Q) == READY)
  75. WReady = (myHero:CanUseSpell(_W) == READY)
  76. EReady = (myHero:CanUseSpell(_E) == READY)
  77. RReady = ((myHero:CanUseSpell(_R) ~= NOTLEARNED) and (myHero:CanUseSpell(_R) ~= COOLDOWN))
  78. IReady = (ignite ~= nil and myHero:CanUseSpell(ignite) == READY)
  79.  
  80. if AutoCarry.MainMenu.AutoCarry and Target ~= nil then
  81. if MenuGalio.comboConfig.USEQ then
  82. CastQ()
  83. end
  84. if MenuGalio.comboConfig.USEW then
  85. CastW()
  86. end
  87. if MenuGalio.comboConfig.USEE then
  88. CastE()
  89. end
  90. if MenuGalio.comboConfig.USER then
  91. CastR()
  92. end
  93. end
  94.  
  95. if MenuGalio.ksConfig.KSQ and QReady then
  96. KsQ()
  97. end
  98.  
  99. if MenuGalio.ksConfig.KSE and EReady then
  100. KsE()
  101. end
  102.  
  103. if MenuGalio.ksConfig.KSULT and RReady then
  104. KsULT()
  105. end
  106.  
  107. if MenuGalio.ksConfig.KSIGNITE and IgniteKey ~= nil then
  108. KsIG()
  109. end
  110.  
  111. if MenuGalio.harrasConfig.HQ and QReady and ((myHero.mana/myHero.maxMana)*100) > MenuGalio.harrasConfig.MINMPTOQ then
  112. HarrasQ()
  113. end
  114.  
  115. if MenuGalio.harrasConfig.HE and EReady and ((myHero.mana/myHero.maxMana)*100) > MenuGalio.harrasConfig.MINMPTOE then
  116. HarrasE()
  117. end
  118.  
  119. if MenuGalio.farmConfig.FQ and QReady and ((myHero.mana/myHero.maxMana)*100) > MenuGalio.farmConfig.MINMPTOFQ then
  120. FarmQ()
  121. end
  122.  
  123. if MenuGalio.farmConfig.FE and EReady and ((myHero.mana/myHero.maxMana)*100) > MenuGalio.farmConfig.MINMPTOFE then
  124. FarmE()
  125. end
  126. end
  127.  
  128. function KsQ()
  129. players = heroManager.iCount
  130. for i = 1, players, 1 do
  131. target = heroManager:getHero(i)
  132. qDmg = getDmg("Q", myHero, target)
  133. if target ~= nil and target.team ~= player.team and not target.dead then
  134. if QReady and qDmg > target.health then
  135. local CastPosition, HitChance, Position = VP:GetLineCastPosition(target, qDelay, qWidth, qRange, qSpeed, myHero, false)
  136. if HitChance >= 2 then
  137. CastSpell(_Q, CastPosition.x, CastPosition.z)
  138. return
  139. end
  140. end
  141. end
  142. end
  143. end
  144.  
  145. function KsE()
  146. players = heroManager.iCount
  147. for i = 1, players, 1 do
  148. target = heroManager:getHero(i)
  149. eDmg = getDmg("E", myHero, target)
  150. if target ~= nil and target.team ~= player.team and not target.dead then
  151. if EReady and eDmg > target.health then
  152. local CastPosition, HitChance, Position = VP:GetLineCastPosition(target, eDelay, eWidth, eRange, eSpeed, myHero, false)
  153. if CastPosition and not target.canMove and HitChance >= 2 then
  154. CastSpell(_E, CastPosition.x, CastPosition.z)
  155. return
  156. end
  157. end
  158. end
  159. end
  160. end
  161.  
  162. function KsULT()
  163. players = heroManager.iCount
  164. for i = 1, players, 1 do
  165. target = heroManager:getHero(i)
  166. rDmg = getDmg("R", myHero, target)
  167. if target ~= nil and target.team ~= player.team and not target.dead then
  168. if RReady and rDmg > target.health then
  169. CastSpell(_R)
  170. end
  171. end
  172. end
  173. end
  174.  
  175. function KsIG()
  176. players = heroManager.iCount
  177. for i = 1, players, 1 do
  178. target = heroManager:getHero(i)
  179. iDmg = getDmg("IGNITE", myHero, Target)
  180. if target ~= nil and target.team ~= player.team and not target.dead then
  181. if IReady and iDmg > target.health then
  182. CastSpell(IgniteKey, target)
  183. end
  184. end
  185. end
  186. end
  187.  
  188. function HarrasQ()
  189. players = heroManager.iCount
  190. for i = 1, players, 1 do
  191. target = heroManager:getHero(i)
  192. if target ~= nil and target.team ~= player.team and not target.dead then
  193. local CastPosition, HitChance, Position = VP:GetCircularCastPosition(target, qDelay, qWidth, qRange, qSpeed, myHero, false)
  194. if HitChance >= 2 then
  195. CastSpell(_Q, CastPosition.x, CastPosition.z)
  196. return
  197. end
  198. end
  199. end
  200. end
  201.  
  202. function HarrasE()
  203. players = heroManager.iCount
  204. for i = 1, players, 1 do
  205. target = heroManager:getHero(i)
  206. if target ~= nil and target.team ~= player.team and not target.dead then
  207. local CastPosition, HitChance, Position = VP:GetLineCastPosition(target, eDelay, eWidth, eRange, eSpeed, myHero, false)
  208. if CastPosition and HitChance >= 2 then
  209. CastSpell(_E, CastPosition.x, CastPosition.z)
  210. return
  211. end
  212. end
  213. end
  214. end
  215.  
  216. function CastQ()
  217. if QReady and MenuGalio.comboConfig.USEQ then
  218. local CastPosition, HitChance, Position = VP:GetCircularCastPosition(Target, qDelay, qWidth, qRange, qSpeed, myHero, false)
  219. if HitChance >= 2 then
  220. CastSpell(_Q, CastPosition.x, CastPosition.z)
  221. return
  222. end
  223. end
  224. end
  225.  
  226. function CastE()
  227. if EReady and MenuGalio.comboConfig.USEE then
  228. local CastPosition, HitChance, Position = VP:GetLineCastPosition(Target, eDelay, eWidth, eRange, eSpeed, myHero, false)
  229. if CastPosition and HitChance >= 2 then
  230. CastSpell(_E, CastPosition.x, CastPosition.z)
  231. return
  232. end
  233. end
  234. end
  235.  
  236. function CastW()
  237. if WReady and MenuGalio.comboConfig.USEW and GetDistance(Target) <= qRange then
  238. CastSpell(_W)
  239. end
  240. end
  241.  
  242. function CastR()
  243. local enemyCount = EnemyCount(myHero, rRange)
  244. if RReady and MenuGalio.comboConfig.USER and enemyCount >= MenuGalio.comboConfig.ENEMYTOR then
  245. CastSpell(_R)
  246. end
  247. end
  248.  
  249. function FarmQ()
  250. for index, minion in pairs(minionManager(MINION_ENEMY, qRange, player, MINION_SORT_HEALTH_ASC).objects) do
  251. local qDmg = getDmg("Q",minion, GetMyHero())
  252. local MinionHealth_ = minion.health
  253. if qDmg >= MinionHealth_ then
  254. CastSpell(_Q, minion)
  255. end
  256. end
  257. end
  258.  
  259. function FarmE()
  260. for index, minionn in pairs(minionManager(MINION_ENEMY, eRange, player, MINION_SORT_HEALTH_ASC).objects) do
  261. local eDmg = getDmg("E",minionn, GetMyHero())
  262. local MinionHealth_ = minionn.health
  263. if eDmg >= MinionHealth_ then
  264. CastSpell(_E, minionn)
  265. end
  266. end
  267. end
  268.  
  269. function EnemyCount(point, range)
  270. local count = 0
  271. for _, enemy in pairs(GetEnemyHeroes()) do
  272. if enemy and not enemy.dead and GetDistance(point, enemy) <= range then
  273. count = count + 1
  274. end
  275. end
  276. return count
  277. end
  278.  
  279. function PluginOnDraw()
  280. if MenuGalio.drawConfig.DQ and QReady then
  281. DrawCircle(myHero.x, myHero.y, myHero.z, qRange, ARGB(255,0,0,255))
  282. end
  283. if MenuGalio.drawConfig.DW and WReady then
  284. DrawCircle(myHero.x, myHero.y, myHero.z, wRange, ARGB(255,100,0,255))
  285. end
  286. if MenuGalio.drawConfig.DE and EReady then
  287. DrawCircle(myHero.x, myHero.y, myHero.z, eRange, ARGB(255,255,0,0))
  288. end
  289. if MenuGalio.drawConfig.DR and RReady then
  290. DrawCircle(myHero.x, myHero.y, myHero.z, rRange, ARGB(255,0,255,0))
  291. end
  292. end
Advertisement
Add Comment
Please, Sign In to add comment