Implemented:
E + Q + R combo.
Not implemented:
W
It does not deactivate the ulti.
There is some code that is not in use.
require("Inspired")
require("IAC")
myIAC = IAC()
myIAC:SetOrb(true)
Config = scriptConfig("Swain", "Swain:")
Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
ManualUlt = 0
OnLoop(function(myHero)
---functions
local Rpress = KeyIsDown(0x52); --R Key
--Getconstants
local mylevel = GetLevel(myHero);
local Obj_Type = GetObjectType(myHero);
local Obj_BaseName = GetObjectBaseName(myHero);
local Obj_Name = GetObjectName(myHero);
local deadflag = IsDead(myHero);
local amivisible = IsVisible(myHero);
local maxmana = GetMaxMana(myHero);
local currmana = GetCurrentMana(myHero);
local maxhp = GetMaxHP(myHero);
local currhp = GetCurrentHP(myHero);
local potionslot = GetItemSlot(myHero,3090);
local potionslot2 = GetItemSlot(myHero,3157);
--local potionslot3 = GetItemSlot(myHero,3157);
local usingUlt = GotBuff(myHero,"SwainMetamorphism");
--write constants
--DrawText(string.format("Obj_Type = %s", Obj_Type),12,0,30,0xff00ff00);
--DrawText(string.format("Obj_BaseName = %s", Obj_BaseName),12,0,40,0xff00ff00);
--DrawText(string.format("Obj_Name = %s", Obj_Name),12,0,50,0xff00ff00);
--DrawText(string.format("ManualUlt = %s", ManualUlt),12,0,60,0xff00ff00);
DrawText(string.format("usingUlt = %s", usingUlt),12,0,70,0xff00ff00);
--DrawText(string.format("mylevel = %s", mylevel),12,0,80,0xff00ff00);
--potions
--if currhp<=300 then
--CastSpell(myHero, _potionslot)
--CastSpell(myHero, potionslot)
--DrawText(string.format("mylevel = %s", mylevel),12,0,80,0xff00ff00);
--end
--if currhp<=300 then
--CastSpell(myHero, _potionslot2)
--CastSpell(myHero, potionslot2)
--DrawText(string.format("mylevel = %s", mylevel),12,0,80,0xff00ff00);
--end
--if currmana<=300 then
--CastSpell(potionslot3)
--end
if IWalkConfig.Combo then
local target = GetTarget(625)
if ValidTarget(target, 625) then
if CanUseSpell(myHero, _R) == READY and IsInDistance(target, 625) and usingUlt == 0 and Config.R then
CastTargetSpell(myHero, _R)
end
if CanUseSpell(myHero, _E) == READY and Config.E then
CastTargetSpell(target, _E)
end
if CanUseSpell(myHero, _Q) == READY and Config.Q then
CastTargetSpell(target, _Q)
end
end
end
--if not IWalkConfig.Combo then
--if CanUseSpell(myHero, _R) == READY and usingUlt == 1 and Config.R then
--CastTargetSpell(myHero, _R)
--usingUlt = 0
--end
--end
end)
Edited by Isaakk, 07 August 2015 - 04:48 .
Sign In
Create Account

Back to top
Report







