Guest User

Untitled

a guest
Aug 4th, 2014
2,843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. -- MADE IN POLAND
  2.  
  3. if myHero.charName ~= "Alistar" then return end
  4.  
  5.  
  6. local ts
  7. local zasiegq = 365 -- Range Q
  8.  
  9. local DFG = GetInventorySlotItem(3128) -- Deathfire Grasp
  10. local ZH = GetInventorySlotItem(3157) -- Zhonya's Hourglass
  11.  
  12. function powitanie()
  13. PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun! By necek123.</font>")
  14. end
  15.  
  16. function OnLoad()
  17. powitanie()
  18. ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, 650, DAMAGE_MAGIC, true)
  19.  
  20. Config = scriptConfig("[NECEK CARRY] Alistar", "aliscio")
  21. opcje = scriptConfig("[NECEK CARRY] Settings", "aliscio2")
  22. activator = scriptConfig("[NECEK CARRY] Activator", "aliscio3")
  23.  
  24. Config:addParam("otoczka", "Draw circle", SCRIPT_PARAM_ONOFF, true)
  25. --Config:addParam("autoe", "Auto E", SCRIPT_PARAM_ONOFF, true)
  26. Config:addParam("autoe", "Auto E", SCRIPT_PARAM_LIST, 3, {"OFF", "100 HP", "200 HP", "300 HP", "400 HP", "500 HP", "600 HP", })
  27. Config:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
  28. opcje:addParam("opcjemana", "Minimum mana to 'E'", SCRIPT_PARAM_LIST, 1, {"100 Many", "200 Many", "300 Many", "400 Many", "500 Many" })
  29. opcje:addParam("podazanie", "Follow the mouse", SCRIPT_PARAM_ONOFF, true)
  30. opcje:addTS(ts)
  31.  
  32. Config:permaShow("combo")
  33. Config:permaShow("autoe")
  34. opcje:permaShow("podazanie")
  35.  
  36. activator:addParam("onoff", "Activator", SCRIPT_PARAM_ONOFF, true)
  37.  
  38. activator:addParam("DFG", "Deathfire Grasp", SCRIPT_PARAM_ONOFF, true)
  39. activator:addParam("ZH", "Zhonya's Hourglass", SCRIPT_PARAM_ONOFF, true)
  40.  
  41. activator:permaShow("onoff")
  42.  
  43. end
  44.  
  45. function OnTick()
  46. ts:update()
  47. test()
  48. autozon()
  49.  
  50.  
  51. end
  52.  
  53.  
  54. function OnDraw()
  55. if(Config.otoczka) then
  56. DrawCircle(myHero.x, myHero.y, myHero.z, 650, 0x33CC33)
  57. end
  58.  
  59. test()
  60. autoe()
  61.  
  62. end
  63.  
  64.  
  65. function test()
  66.  
  67. if (Config.combo) then
  68. if (opcje.podazanie) then
  69. zakursorem()
  70. if (ts.target ~= nil) then
  71. if (myHero:CanUseSpell(_W and _Q) == READY) then
  72. if (GetDistance(ts.target) <= zasiegq) then
  73. CastSpell(_Q)
  74. if (DFG ~= nil) then
  75. if (activator.DFG and activator.onoff) then
  76. CastSpell(DFG, ts.target)
  77. end
  78. end
  79. else
  80. if (DFG ~= nil) then
  81. if (activator.DFG and activator.onoff) then
  82. CastSpell(DFG, ts.target)
  83. end
  84. end
  85. CastSpell(_W, ts.target)
  86. if (GetDistance(ts.target) <= zasiegq) then
  87. CastSpell(_Q)
  88. end
  89. end
  90. else
  91. siemanko = DrawText("Wait for cooldown to 'W', 'Q'", 18, 100, 100, 0xFFCC0000)
  92. end
  93. end
  94. end
  95. end
  96.  
  97.  
  98.  
  99.  
  100. function autoe()
  101.  
  102.  
  103. if (opcje.opcjemana) then
  104. if (myHero.mana <= (opcje.opcjemana * 100)) then
  105. DrawText("You don't have mana.", 24, 100, 140, 0xFFCC0000)
  106. else
  107. if (Config.autoe) then
  108. if (myHero.health <= (Config.autoe * 100 - 100)) then
  109. if (myHero:CanUseSpell(_E) == READY) then
  110. CastSpell(_E)
  111. end
  112. end
  113. end
  114. end
  115. end
  116. end
  117. end
  118.  
  119.  
  120. function zakursorem()
  121. if GetDistance(mousePos) > 10 then
  122. local moveToPos = myHero + (Vector(mousePos) - myHero):normalized()*250
  123. myHero:MoveTo(moveToPos.x, moveToPos.z)
  124. end
  125. end
  126.  
  127.  
  128. function autozon()
  129. if (activator.ZH) then
  130. if (ZH ~= nil) then
  131. if (myHero.health <= 100) then
  132. CastSpell(ZH)
  133. end
  134. end
  135. end
  136. end
Advertisement
Add Comment
Please, Sign In to add comment