Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Suggestion only ._.


  • Please log in to reply
4 replies to this topic

#1
jafs

jafs

    Newbie

  • Members
  • 7 posts
  • LocationPhilippines

Can someone make a script for all heroes that can calculate the damage you will dealt to them.. Here a example ( Credits to the owner ) ._.
I want more script just lke this gimme some cant find a script just tlike this ;( only "Inspired" ( http://gamingonstero...ac-scripts-v16/ ) thanks.. ;(

 

Config = scriptConfig("IKatarina", "Katarina.lua")
Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
 
OnLoop(function(myHero)
  if waitTickCount > GetTickCount() then return end
  local unit = GetTarget((CanUseSpell(myHero, _E) == READY and 700 or CanUseSpell(myHero, _Q) == READY and 675 or 375), DAMAGE_MAGIC)
  if unit then
    local dmg = 0
    local hp  = GetCurrentHP(unit)
    local AP = GetBonusAP(myHero)
    local TotalDmg = GetBonusDmg(myHero)+GetBaseDamage(myHero)
    local targetPos = GetOrigin(unit)
    local drawPos = WorldToScreen(1,targetPos.x,targetPos.y,targetPos.z)
    if CanUseSpell(myHero, _Q) == READY then
      dmg = dmg + CalcDamage(myHero, unit, 0, 35+25*GetCastLevel(myHero,_Q)+0.45*AP) * 1.25
    end
    if CanUseSpell(myHero, _W) == READY then
      dmg = dmg + CalcDamage(myHero, unit, 0, 5+35*GetCastLevel(myHero,_W)+0.25*AP+0.6*TotalDmg)
    end
    if CanUseSpell(myHero, _E) == READY then
      dmg = dmg + CalcDamage(myHero, unit, 0, 10+30*GetCastLevel(myHero,_E)+0.25*AP)
    end
    if CanUseSpell(myHero, _R) ~= ONCOOLDOWN and GetCastLevel(myHero,_R) > 0 then
      dmg = dmg + CalcDamage(myHero, unit, 0, 30+10*GetCastLevel(myHero,_R)+0.2*AP+0.3*GetBonusDmg(myHero)) * 10
    end
    if dmg > hp then
      DrawText("Killable",20,drawPos.x,drawPos.y,0xffffffff)
      DrawDmgOverHpBar(unit,hp,0,hp,0xffffffff)
    else
      DrawText(math.floor(100 * dmg / hp).."%",20,drawPos.x,drawPos.y,0xffffffff)
      DrawDmgOverHpBar(unit,hp,0,dmg,0xffffffff)
    end
    if not IWalkConfig.Combo then return end
    if IsInDistance(unit, 675) and CanUseSpell(myHero, _Q) == READY and Config.Q then
      CastTargetSpell(unit, _Q)
    elseif IsInDistance(unit, 375) and CanUseSpell(myHero, _W) == READY and Config.W then
      CastTargetSpell(myHero, _W)
    elseif IsInDistance(unit, 700) and CanUseSpell(myHero, _E) == READY and Config.E then
      CastTargetSpell(unit, _E)
    elseif IsInDistance(unit, 550) and CanUseSpell(myHero, _Q) ~= READY and Config.R and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _E) ~= READY and CanUseSpell(myHero, _R) ~= ONCOOLDOWN and GetCastLevel(myHero,_R) > 0 then
      HoldPosition()
      waitTickCount = GetTickCount() + 50
      CastTargetSpell(myHero, _R)
    end
    lastTargetName = GetObjectName(unit)
  end
end)
 
OnProcessSpell(function(unit, spell)
  if unit and unit == myHero and spell then
    if spell.name:lower():find("katarinar") then
      waitTickCount = GetTickCount() + 2500
    end
  end
end)

  • 0

#2
Darkness

Darkness

    GoSDB's manager

  • Banned
  • PipPipPip
  • 1,137 posts

why you dont make it urself o-o?


  • 0

#3
jafs

jafs

    Newbie

  • Members
  • 7 posts
  • LocationPhilippines

I dont know how lol x.x
im newb..


  • 0

#4
Zypppy

Zypppy

    Ex Global Support

  • Contributor
  • 1,817 posts

Most of my scripts  have  dmg calculation for current target that you will be focusing  
 


  • 0

#5
jafs

jafs

    Newbie

  • Members
  • 7 posts
  • LocationPhilippines

Cool cool ill check yours thanks m8!


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users