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

Akali xD - At least I tried


  • Please log in to reply
8 replies to this topic

#1
Axe

Axe

    Newbie

  • Members
  • 5 posts

Copy and paste following and save it as "testscript1.lua"

This script is somewhat decent, I just wanted to contribute :^)

local Akali = nil
local AkaliPos = nil

function AfterObjectLoopEvent(myHer0)
    Akali = myHer0
    AkaliPos = GetOrigin(Akali)
    local noob = GetCurrentTarget()

    DrawText("Akali by Axe has been successfuly loaded!",24,10,0,0xffff00ff);

    if KeyIsDown(0x20) then
        if ValidTarget(noob, 800) then

            if CanUseSpell(Akali, _R) == READY and IsDistance(noob, 700) then
                CastTargetSpell(noob, _R)
            end
                
            if CanUseSpell(Akali, _Q) == READY and IsDistance(noob, 600) then
                CastTargetSpell(noob, _Q)
            end

            if CanUseSpell(Akali, _E) == READY and IsDistance(noob, 300) then
                CastTargetSpell(noob, _E)
            end    
        end
    end    
end

function ValidTarget(noob, range)
    range = range or math.huge
    if GetOrigin(noob) == nil or IsDead(noob) or GetTeam(noob) == GetTeam(Akali) or not IsDistance(noob, range) then return false end
    return true
end


function IsDistance(p1,r)
    return GetDistance(GetOrigin(p1)) < r*r
end


function GetDistance(p1,p2)
    p2 = p2 or AkaliPos
    local dx = p1.x - p2.x
    local dz = (p1.z or p1.y) - (p2.z or p2.y)
    return dx*dx + dz*dz
end

Credits to Inspired (he inspered me) and Deftsu


  • 1

#2
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

lol that ''noob'' target Kappa , Great job !! :D


  • 0

#3
CptZeyx

CptZeyx

    Henry

  • Banned
  • PipPipPip
  • 784 posts
  • LocationBetween here and there

HAHAHHAHAHHA NOOB TARGET :D :D :D nice job Kappa , well, you should this -> KappaHD instead of Kappa :) noob target located, harass!!!!!!


  • 0

#4
Mcafee

Mcafee

    Advanced Member

  • Donator
  • 30 posts

Nice!


  • 0

#5
Chungus

Chungus

    Advanced Member

  • Members
  • 128 posts
  • LocationLithuania

if it do r q e its so useless , no offense Kappa


  • 0

#6
Ultron

Ultron

    Advanced Member

  • Members
  • 61 posts
  • LocationRomania!

I thought E doesn't proc Q mark anymore, am I not right?

 

I don't mean any offense, but you'll have to try harder and add more conditions instead of just spamming spells :P


  • 0

#7
Axe

Axe

    Newbie

  • Members
  • 5 posts

I thought E doesn't proc Q mark anymore, am I not right?

 

I don't mean any offense, but you'll have to try harder and add more conditions instead of just spamming spells :P

 

Well, it still auto attacks in combo. It works fine but of course it needs improvements, hence the title "At least I tried". I will work on improving it as I learn more about lua as this was first time I encountered this programming language.


  • 0

#8
Axe

Axe

    Newbie

  • Members
  • 5 posts

if it do r q e its so useless , no offense Kappa

M8 I got 86% win ratio with Akali in diamond with more than 50 games.

It still works, I tried adding more features, but I got bugsplats, so I had to delete half of the code Kappa


  • 0

#9
Chungus

Chungus

    Advanced Member

  • Members
  • 128 posts
  • LocationLithuania

M8 I got 86% win ratio with Akali in diamond with more than 50 games.

It still works, I tried adding more features, but I got bugsplats, so I had to delete half of the code Kappa

rly? oh soz then , i didnt played her since like 100 year ago Kappa lul so unlucky bout the features, well i wish you luck in the future i will be glad so see  more of your scripts ;3 you could start coding an orianna script for meh :P 


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users