Jump to content

Recommended Posts

Posted

Hi so I know there is a lot of interface.xdat with the keybinds already for adding 1-9 and Q-P.

I know the general idea is to create the values below but I can't understand how to add a value to a different bar.

 

Say I add a new action with 1. When ever 1 is pressed I want it to use the first slot in bar 2.

I can't see where I assign a bar number to a action. Probably missing something obvious.

 

Is the shortcut bar number sequential UseShortcutItem Num=0 => UseShortcutItem Num=11

So If I went UseShortcutItem Num=12 that would be first slot on bar 2?

 

Thanks

 

fqgqmubo.aau.png

Posted (edited)

UseShortcutItemBlaBlaBla, this is just the value of the string that is passed to the function (class Shortcut). No more.

Example:

 

function getCommand(string param)
{
    switch(param)
    {
        case "UseShortcutItemBlaBlaBla":
        makeSomething();
        break;
        case "My_girl_is_beautiful":
        makeSomethingOther();
        break;
    }
}
Edited by L2Neophron
Posted (edited)

Thanks for your reply Neophron.

I wasn't clear on what I would like to achieve.

So I am trying to get the below (image). I understand that this can be done by modifying the interface.xdat

 

qlbljfka.ks3.png

 

By default I have the F1,F2,F3 how can I set it so I when I press 1,2,3 to go to the second bar?

From what I can see the values aren't marked as bar numbers (bar1, bar2 etc) so how does the value you set know to go to Bar2 or Bar4 or bar10. 

 

For Example if I add a value:

 

Key_1 = 1

Key_1 = None

Key_3 = None

Action = SetShortcutItem Num=0

 

So when 1 is pressed I want it to go to Bar2 slot 1. How does this value know that its for bar 2 and not another bar.

 

odyyw3bl.451.png

 

I hope the above is clear now, thanks. :)

Edited by ogman
Posted (edited)

Even if I were your countryman, it was not easy for me to understand what you are writing and what you want :)

Try to explain easier. Like, "I want to click here that it was wow".

 

Edited by L2Neophron
Posted

To do this, you need to rewrite the code for the Shortcut class (Interface.u) with all the appropriate commands. Then assign them keys in Interface.xdat.
 

 

function getCommand(string param)
{
    switch(param)
    {
        case "LaLaLa_A":
        ExecuteCommand ("/useshortcut "4" 1");
        break;
        case "LaLaLa_S":
        ExecuteCommand ("/useshortcut "4" 2");
        break;
    }
}

Etc.

Interface.xdat > Action >

Key_1 - A
Key_1 - None
Key_1 - None
Action - LaLala_A

Key_1 - A
Key_1 - Shift
Key_1 - None
Action - LaLala_A

Key_1 - A
Key_1 - Shift
Key_1 - None
Action - LaLala_A

Etc.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...