Lion (LUA for Aion)

04/16/2013 22:00 nickm#1
A project I started, kind of lost interest. Non-invasive, as in no DLLs are being injected. Relies heavily on in-game key mapping. Although it still works while the game is minimized.

[Only registered and activated users can see links. Click Here To Register...]

Lion.exe is what you see above, config.lua is offsets(no need to recompile) and your character name
Press Load Config and choose your script file

cleric_bot.lua is a simple script I wrote to control my cleric.
Code:
Code:
key_x = 0x58
key_insert = 0x2D
key_tab = 0x9
key_num1 = 0x31
key_num2 = 0x32
key_num3 = 0x33
key_num4 = 0x34
key_num5 = 0x35

function main()
    Update()

    if player.mp < 400 then
        if player.state == 1 then 
            if player.target.hp == 0 then
                SendKey(key_x)
                do return end 
            end
        end
        SendKey(key_insert)
        do return end
    end

    if player.mp > 1500 then
        if player.state == 3 then
            SendKey(key_insert)
            Wait(300)
        end
    end

    if player.state == 0 then
        if player.target.name == player.name then
            SendKey(key_tab)
        end
        if player.target.hp == 0 then
            SendKey(key_tab)
        else
            SendKey(key_x)
        end
    end

    if player.state == 1 then

        if player.hp < 600 then
            SendKey(key_num2)
            do return end
        end

        if player.target.hp == 0 then 
            SendKey(key_x)
            SendKey(key_tab) 
            do return end
        end

        SendKey(key_num3)
        Wait(200)
        SendKey(key_num4)
        Wait(200)
        SendKey(key_num4)
        Wait(200)
        SendKey(key_num5)
        Wait(200)
        SendKey(key_num5)

    end
end
Functions exposed to the scripts are:
Update() - updates player info (hp, mp etc)
Wait() - basically a Sleep()
player - object contains, name, hp, mp, target information


your script must have a "main" function.
it will be called based on the interval specified in config.lua


If my interest sparks up again I may inject DLL, take control of movement/looting etc. But for now this is very primitive!
Maybe when I get some time away from the military I can expand on this. It has the potential to very powerful.
04/17/2013 19:49 sama11#2
is it possible to make a party heal bot from it ?
08/15/2017 22:27 jaegerf#3
Can it be used to remove world chat?
08/17/2017 05:43 kreithner#4
You can not do a video tutorial on how to use it please