You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Wednesday, October 15th 2014, 9:45pm

lua: assign skill to action bar?

Is there a way to assign a skill to an action-bar slot from a lua/macro?
>>>> >>>> >>>>
>>>>
>>>> Please, bring back (bound if there is no other option) dias to AH! :thumbsup:
>>>> If you do this we will all love you forever. ;)
>>>>
>>>> >>>> >>>>

2

Thursday, October 16th 2014, 5:38am

Yes, there is a way ^^

The following would place the skill "Attack" on the first action bar slot

Source code

1
/run DragSkillButton(1,1) PickupAction(1)


You can extend this to clear the cursor afterwards like this:

Source code

1
/run DragSkillButton(1,1) PickupAction(1) if CursorHasItem() then DeleteCursorItem() end


WARNING: if you would replace PickupAction in the example with another function so that there's a real item on the cursor the item will get deleted without warning! So be aware with functions like PickupBagItem, PickupBankItem or PickupEquipItem!

3

Thursday, October 16th 2014, 8:04am

without having to build additional action bars, you could use this to "swap action bars" when you chnge your secondary class. Might toy around with it o.o

bleedingblak

I'm here to troll you

Posts: 1,232

Location: www.youtube.com/user/ihavetourettesxx

Mood: Crying

  • Send private message

4

Thursday, October 16th 2014, 10:07am

That's genius.


~Fly into the distance, disappear for awhile~

5

Thursday, October 16th 2014, 10:27am


without having to build additional action bars, you could use this to "swap action bars" when you chnge your secondary class. Might toy around with it o.o

that's how vActionbar works ^^ The hardest part is figuring out how to do items :/

6

Thursday, October 16th 2014, 7:03pm

The following would place the skill "Attack" on the first action bar slot

Source code

1
/run DragSkillButton(1,1) PickupAction(1)
Brilliant! Thank you!

WARNING: if you would replace PickupAction in the example with another function so that there's a real item on the cursor the item will get deleted without warning! So be aware with functions like PickupBagItem, PickupBankItem or PickupEquipItem!
Thanks for the warning. I'll keep it simple (no gear swapping in the same macro etc.) - with just PickupAction it should be safe. :)

you could use this to "swap action bars" when you chnge your secondary class
Yep, this was one idea, another was to have one action-bar setup for PvP and another for PvE.
>>>> >>>> >>>>
>>>>
>>>> Please, bring back (bound if there is no other option) dias to AH! :thumbsup:
>>>> If you do this we will all love you forever. ;)
>>>>
>>>> >>>> >>>>