Page 1 of 1

?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 5:44 am
by MinMax
I didn´t play for a long time and now i have a littlebit knowledge deficit.
How do i use the event skills fore example "Throw azure demon pumpkin seed" on the extended skill bar ??
Have i to declare it on the skill database and how do i check the availability of the skill ?

Thx for the nice help

MinMax

Re: ?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 6:23 am
by rock5
I think what you are describing is the ExtraActionBar. I use it in my 'invaders' script, and others. The main command is

Code: Select all

UseExtraAction(num)
Where num is the number of the action. I don't think I ever used it but it looks like the code to get the cooldown of the skill is

Code: Select all

local duration, remaining = GetExtraActionCooldown(num)
They are in-game commands so of course, from the bot, you would use RoMScript to execute them.

Re: ?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 7:01 am
by MinMax
Unfortunately we have in the event 3 skills which you have to activate firstly. (three colors of seeds to throw)

/skill/494189/werft-einen-azurblauen-daemonenkuerbissamen]Werft einen azurblauen Dämonenkürbissamen
/skill/494411/werft-einen-lindgruenen-daemonenkuerbissamen]Werft einen lindgrünen Dämonenkürbissamen
/skill/494190/werft-einen-scharlachroten-daemonenkuerbissamen]Werft einen scharlachroten Dämonenkürbissamen

You can have 0 to 3 skillbuttons and the order of them on the bar isn´t always the same. So i cant work with "num". Before i use a skill i have to check the availability and find the right skill.

I will take a look to your invaders, maybe i find a solution.

Re: ?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 7:42 am
by rock5
I'm not aware of any other way to identify them except for the icon. You can get their icon using

Code: Select all

icon = GetExtraActionInfo(num)
If you know the icon name you could create a search function that looks like this

Code: Select all

function findbutton(iconname)
    local index = 1
    local icon = RoMScript("GetExtraActionInfo(1)")
    while icon do
        if icon == iconname then
            return index
        end
        index = index + 1
        icon = RoMScript("GetExtraActionInfo("..index..")")
    end
end
Once you have the index you can 'Use' it and check it's cooldown.

Re: ?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 10:54 am
by MinMax
Thx, that´s good. I think, i can work with this.

Re: ?? to use the extended event skill bar

Posted: Sun Nov 04, 2012 2:03 pm
by rock5
Um... here you go. Started tinkering and came up with a userfunction for you that gets the name and id from memory for the buttons. The command is

Code: Select all

UseExtraActionButton(_indexNameOrId)
It accepts the number of the button, the name or the id.