Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ GP script v0.1 kokosik1221]]--
- if myHero.charName ~= "Gangplank" then return end
- function Menu()
- Menuconf = AutoCarry.PluginMenu
- Menuconf:addParam("IGN", "Use Ignite", SCRIPT_PARAM_ONOFF, true)
- Menuconf:addParam("KSULT", "Use Ult to steal kills", SCRIPT_PARAM_ONOFF, true)
- Menuconf:addParam("USEE", "Use E in Combo", SCRIPT_PARAM_ONOFF, true)
- Menuconf:addParam("HEAL", "Auto W", SCRIPT_PARAM_ONOFF, true)
- Menuconf:addParam("MINHPTOW", "Min % HP To Heal", SCRIPT_PARAM_SLICE, 60, 0, 100, 2)
- Menuconf:addParam("MINMPTOW", "Min % MP To Heal", SCRIPT_PARAM_SLICE, 70, 0, 100, 2)
- end
- function PluginOnLoad()
- Menu()
- IgniteKey = nil;
- if myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") then
- IgniteKey = SUMMONER_1
- elseif myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") then
- IgniteKey = SUMMONER_2
- else
- IgniteKey = nil
- end
- ultDmg = 0
- end
- function PluginOnTick()
- Target = AutoCarry.GetAttackTarget(true)
- if tick == nil or GetTickCount()-tick >= 40 then
- tick = GetTickCount()
- calcUlt()
- end
- Qrdy = (myHero:CanUseSpell(_Q) == READY)
- Wrdy = (myHero:CanUseSpell(_W) == READY)
- Erdy = (myHero:CanUseSpell(_E) == READY)
- Rrdy = (myHero:CanUseSpell(_R) == READY)
- --KSULT--
- if Menuconf.KSULT then
- players = heroManager.iCount
- for i = 1, players, 1 do
- target = heroManager:getHero(i)
- if target ~= nil and target.team ~= player.team and target.visible and not target.dead then
- if Rrdy and ultDmg > target.health then
- CastSpell(_R, target.x, target.z)
- end
- end
- end
- end
- --IGNITE--
- if Menuconf.IGN and Target ~= nil and IgniteKey ~= nil then
- if Target.health < getDmg("IGNITE", myHero, Target) then
- CastSpell(IgniteKey, Target)
- end
- end
- --COMBO--
- if AutoCarry.MainMenu.AutoCarry and Target ~= nil then
- if Qrdy and ValidTarget(Target, 675) then
- CastSpell(_Q, Target.x, Target.z)
- end
- if Menuconf.USEE then
- CastSpell(_E)
- end
- end
- --HEAL--
- if Menuconf.HEAL then
- if ((myHero.mana/myHero.maxMana)*100) > Menuconf.MINMPTOW and ((myHero.health/myHero.maxHealth)*100) < Menuconf.MINHPTOW then
- CastSpell(_W)
- end
- end
- end
- function calcUlt()
- if player:GetSpellData(_R).level == 1 then ultDmg = 200 end
- if player:GetSpellData(_R).level == 2 then ultDmg = 290 end
- if player:GetSpellData(_R).level == 3 then ultDmg = 400 end
- end
Advertisement
Add Comment
Please, Sign In to add comment