sociophobia

Katarina senpai

Jul 22nd, 2015
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.77 KB | None | 0 0
  1. --done my Laiha senpai , credits to Inspipred for dmg calc
  2. require('Inspired')
  3. require('IWalk')
  4. AddInfo("Katarina", "Katarina:")
  5. AddButton("Draw", "Killable Circle", true)
  6. AddButton("Check", "Overdamage check", true)
  7. --worst script 2015 #fpsdrops #lowquality #scripterwannabe
  8. OnLoop(function(myHero)
  9.     myHero = GetMyHero()
  10.     local unit = GetCurrentTarget()
  11.     local myhp=GetCurrentHP(myHero)
  12.     if((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 and GetItemSlot(myHero,3153)>3157 then  
  13.         CastTargetSpell(myHero, GetItemSlot(myHero,3153))
  14.     end
  15.     if KeyIsDown(0x5A) then
  16.         wardjumpthatbitch()
  17.     end
  18.     if isKillableEasy(unit) then
  19.         if IsInDistance(unit, 675) and CanUseSpell(myHero, _Q) == READY  then
  20.                 CastTargetSpell(unit, _Q)
  21.         end
  22.         if IsInDistance(unit, 375) and CanUseSpell(myHero, _W) == READY and GetButtonValue("W") then
  23.             CastTargetSpell(myHero, _W)
  24.         end
  25.         if IsInDistance(unit, 700) and CanUseSpell(myHero, _E) == READY and GetButtonValue("E") then
  26.                 CastTargetSpell(unit, _E)
  27.         end
  28.     end
  29.     if isKillable(unit) and  GetCastLevel(myHero,_R) > 0 and  CanUseSpell(myHero, _R) then
  30.             if IsInDistance(unit, 675) and CanUseSpell(myHero, _Q) == READY  then
  31.                 CastTargetSpell(unit, _Q)
  32.         end
  33.         if IsInDistance(unit, 375) and CanUseSpell(myHero, _W) == READY and GetButtonValue("W") then
  34.             CastTargetSpell(myHero, _W)
  35.         end
  36.         if IsInDistance(unit, 700) and CanUseSpell(myHero, _E) == READY and GetButtonValue("E") then
  37.                 CastTargetSpell(unit, _E)
  38.         end
  39.        
  40.         if IsInDistance(unit, 550) then
  41.             HoldPosition()
  42.                 waitTickCount = GetTickCount() + 50
  43.                 CastTargetSpell(myHero, _R)
  44.         end
  45.     end
  46. end)
  47.  
  48. --auto E away #laihapr0logic #dontjudgemeplease
  49.  
  50. --AddGapcloseEvent(_E,700,GetLowestMinion(GetOrigin(myHero), 700, MINION_ALLY)
  51.  
  52.  
  53. --kata R logic leeched from inspired senpaaai
  54. OnProcessSpell(function(unit, spell)
  55.   if unit and unit == myHero and spell then
  56.     if spell.name:lower():find("katarinar") then
  57.       waitTickCount = GetTickCount() + 2500
  58.     end
  59.   end
  60. end)
  61.  
  62.  
  63. --useless functions made by laiha senpai here
  64. function isKillable(unit,myHero)
  65.     myHero = GetMyHero()
  66.     local AP = GetBonusAP(myHero)
  67.     local dmgq= CalcDamage(myHero, unit, 0, 35+25*GetCastLevel(myHero,_Q)+0.45*AP) * 1.25
  68.     local dmgw= CalcDamage(myHero, unit, 0, 5+35*GetCastLevel(myHero,_W)+0.25*AP+0.6*TotalDmg)
  69.     local dmge= CalcDamage(myHero, unit, 0, 10+30*GetCastLevel(myHero,_E)+0.25*AP)
  70.     local dmgr= CalcDamage(myHero, unit, 0, 30+10*GetCastLevel(myHero,_R)+0.2*AP+0.3*GetBonusDmg(myHero)) * 10
  71.     local hp=GetCurrentHp(unit)
  72.     local unitPos=GetOrigin(unit)
  73.     killable=false
  74.     easy=false
  75.     if dmgq+dmgw+dmge+dmgr>hp then
  76.         DrawCircle(unit.x,unit.y,unit.z,25,1,1,0xff00ff00)
  77.         killable=true      
  78.     end
  79.     return killable
  80. end
  81.  
  82. --useless function n2 made by Laiha senpai so we have less fps (+fps drops)
  83. function isKillableEasy(unit,myHero)
  84.     myHero = GetMyHero()
  85.     local AP = GetBonusAP(myHero)
  86.     local dmgq= CalcDamage(myHero, unit, 0, 35+25*GetCastLevel(myHero,_Q)+0.45*AP) * 1.25
  87.     local dmgw= CalcDamage(myHero, unit, 0, 5+35*GetCastLevel(myHero,_W)+0.25*AP+0.6*TotalDmg)
  88.     local dmge= CalcDamage(myHero, unit, 0, 10+30*GetCastLevel(myHero,_E)+0.25*AP)
  89.     local dmgr= CalcDamage(myHero, unit, 0, 30+10*GetCastLevel(myHero,_R)+0.2*AP+0.3*GetBonusDmg(myHero)) * 10
  90.     local hp=GetCurrentHp(unit)
  91.     local unitPos=GetOrigin(unit)
  92.     easy=false
  93.     if dmgq+dmgw+dmge>hp then
  94.         easy=true
  95.         DrawCircle(unit.x,unit.y,unit.z,25,1,1,0xffff0000)
  96.     end
  97.     return easy
  98. end
  99.  
  100. --if you copy that func please CREDITS , ty student , Laiha senpai is proud of you
  101. --function wardjumpthatbitch(myHero)
  102.     --local creep=ClosestMinion(MyHeroPos,MINION_ALLY)
  103.     --if(GetDistance(GetOrigin(creep),GetOrigin(myHero))<700 and CanUseSpell(myHero,_E)== READY then
  104.     --  CastTargetSpell(creep,_E)
  105.     --end
  106.  
  107. --end
Advertisement
Add Comment
Please, Sign In to add comment