--[[ Ryze CS Helper 1.0 by That0n3Guy AllClass and spellDmg are both required (but if you don't have those yet something is wrong ;) ) ]] if myHero.charName == "Ryze" then --You can change these by going to Google and searching for an ASCII chart --Then replace the number with one from the list that represents another letter local enableFarmHK = 90 --Z local conserveManaHK = 85 --U local scriptActive = false local aaRange = 550 local qRange = 650 local minMana = 0.5 --This will stop us from CSing below 50% of Ryze's total mana if the "Conserve Mana" option is enabled function OnLoad() PrintChat(" >> Ryze CS Helper") RyzeCSConfig = scriptConfig("Ryze CS Helper", "RyzeCSConfig") RyzeCSConfig:addParam("farmCS", "Farm", SCRIPT_PARAM_ONKEYTOGGLE, false, enableFarmHK) RyzeCSConfig:addParam("saveMana", "Conserve Mana", SCRIPT_PARAM_ONKEYTOGGLE, true, conserveManaHK) RyzeCSConfig:permaShow("farmCS") RyzeCSConfig:permaShow("saveMana") end function OnTick() local QInfo = myHero:GetSpellData(_Q) local QCost = 60 local qDamage = (math.floor(QInfo.level - 1) * 25 + 60 + (player.ap * 0.4) + (player.maxMana * 0.065)) if RyzeCSConfig.farmCS then for k = 1, objManager.maxObjects do local minionObjectI = objManager:GetObject(k) if minionObjectI ~= nil and string.find(minionObjectI.name,"Minion_") == 1 and minionObjectI.team ~= player.team and minionObjectI.dead == false then if minionObjectI.dead == false and player:GetDistance(minionObjectI) < aaRange and minionObjectI.health <= getDmg("AD", minionObjectI, player) then myHero:Attack(minionObjectI) elseif minionObjectI.dead == false and player:GetDistance(minionObjectI) < qRange and minionObjectI.health <= player:CalcDamage(minionObjectI, qDamage) and myHero:CanUseSpell(_Q) == READY and myHero.mana >= QCost then if(RyzeCSConfig.saveMana) then if((myHero.mana - QCost) > (myHero.maxMana * minMana)) then CastSpell(_Q, minionObjectI) end else CastSpell(_Q, minionObjectI) end end end end end end function OnDraw() SC__OnDraw() end function OnWndMsg(msg,key) SC__OnWndMsg(msg, key) end end