Guest User

Untitled

a guest
Aug 3rd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. if myHero.charName ~= "Alistar" then return end
  2.  
  3.  
  4. myHero = GetMyHero()
  5.  
  6. local ts
  7. local zasiegq = 365 -- Wpisz obecny zasieg z "Q"
  8. local ee = 200 -- Tutaj wpisz, ile musisz miec hp zeby zalaczyc E.
  9.  
  10. function powitanie()
  11. PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun!</font>")
  12. end
  13.  
  14. function OnLoad()
  15. powitanie()
  16. ts = TargetSelector(TARGET_LOW_HP_PRIORITY, 650)
  17.  
  18.  
  19. Config = scriptConfig("[NECEK CARRY] Alistar", "aliscio")
  20. opcje = scriptConfig("[NECEK CARRY] Ustawienia", "aliscio2")
  21. Config:addParam("otoczka", "Otoczka postaci", SCRIPT_PARAM_ONOFF, true)
  22. --Config:addParam("autoe", "Auto E", SCRIPT_PARAM_ONOFF, true)
  23. Config:addParam("autoe", "Auto E", SCRIPT_PARAM_LIST, 3, {"OFF", "100 HP", "200 HP", "300 HP", "400 HP", "500 HP", "600 HP", })
  24. Config:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
  25. opcje:addParam("opcjemana", "Minimalna mana do 'E'", SCRIPT_PARAM_LIST, 2, {"100 Many", "200 Many", "300 Many", "400 Many", "500 Many" })
  26.  
  27. end
  28.  
  29. function OnTick()
  30. ts:update()
  31. test()
  32.  
  33. end
  34.  
  35.  
  36. function OnDraw()
  37. if(Config.otoczka) then
  38. DrawCircle(myHero.x, myHero.y, myHero.z, 650, 0x33CC33)
  39. end
  40.  
  41. test()
  42. autoe()
  43.  
  44. end
  45.  
  46.  
  47. function test()
  48.  
  49. if (Config.combo) then
  50. if (ts.target ~= nil) then
  51. if (myHero:CanUseSpell(_W and _Q) == READY) then
  52. if (GetDistance(ts.target) <= zasiegq) then
  53. CastSpell(_Q)
  54. else
  55. CastSpell(_W, ts.target)
  56. if (GetDistance(ts.target) <= zasiegq) then
  57. CastSpell(_Q)
  58. end
  59. end
  60. else
  61. siemanko = DrawText("Poczekaj, az 'Q' oraz 'W' bedzie dostepne.", 18, 100, 100, 0xFFCC0000)
  62. end
  63. end
  64. end
  65. end
  66.  
  67.  
  68.  
  69.  
  70. function autoe()
  71.  
  72.  
  73. if (opcje.opcjemana) then
  74. if (myHero.mana <= (opcje.opcjemana * 100)) then
  75. DrawText("Brakuje Ci many!", 24, 100, 140, 0xFFCC0000)
  76. else
  77. if (Config.autoe) then
  78. if (myHero.health <= (Config.autoe * 100 - 100)) then
  79. if (myHero:CanUseSpell(_E) == READY) then
  80. CastSpell(_E)
  81. end
  82. end
  83. end
  84. end
  85. end
  86.  
  87. end
Advertisement
Add Comment
Please, Sign In to add comment