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

Very Simple Swain


  • Please log in to reply
No replies to this topic

#1
Isaakk

Isaakk

    Newbie

  • Members
  • 1 posts

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 .

  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users