Jump to content

Recommended Posts

Posted (edited)

The information is more relevant for Interlude, but will work for the chronicles above as well. According to this example, you can bind any function (from calling the window for inserting a LAN, to your unique bypass, or some function like "target loss protection") to any hotkey or key combination.

First of all, go to xdat, Interface \ Shortcuts \ GamingStateShortcut and select a key / key combination, for example like this:
 

<ShortcutItem Key="IK_Space" SubKey1="IK_Alt">SelfTarget</ShortcutItem>

Now for target self you need to hold down the viola and click the space bar.
The key codes are sometimes obvious (IK_F1, IK_B, IK_Enter), and sometimes not very, just in case:

Spoiler

IK_None = 0
IK_LeftMouse = 1
IK_RightMouse = 2
IK_Cancel = 3
IK_MiddleMouse = 4
IK_Unknown05 = 5
IK_Unknown06 = 6
IK_Unknown07 = 7
IK_Backspace = 8
IK_Tab = 9
IK_Unknown0A = 10
IK_Unknown0B = 11
IK_Unknown0C = 12
IK_Enter = 13
IK_Unknown0E = 14
IK_Unknown0F = 15
IK_Shift = 16
IK_Ctrl = 17
IK_Alt = 18
IK_Pause = 19
IK_CapsLock = 20
IK_Unknown15 = 21
IK_Unknown16 = 22
IK_Unknown17 = 23
IK_Unknown18 = 24
IK_Unknown19 = 25
IK_Unknown1A = 26
IK_Escape = 27
IK_Unknown1C = 28
IK_Unknown1D = 29
IK_Unknown1E = 30
IK_Unknown1F = 31
IK_Space = 32
IK_PageUp = 33
IK_PageDown = 34
IK_End = 35
IK_Home = 36
IK_Left = 37
IK_Up = 38
IK_Right = 39
IK_Down = 40
IK_Select = 41
IK_Print = 42
IK_Execute = 43
IK_PrintScrn = 44
IK_Insert = 45
IK_Delete = 46
IK_Help = 47
IK_0 = 48
IK_1 = 49
IK_2 = 50
IK_3 = 51
IK_4 = 52
IK_5 = 53
IK_6 = 54
IK_7 = 55
IK_8 = 56
IK_9 = 57
IK_Unknown3A = 58
IK_Unknown3B = 59
IK_Unknown3C = 60
IK_Unknown3D = 61
IK_Unknown3E = 62
IK_Unknown3F = 63
IK_Unknown40 = 64
IK_A = 65
IK_B = 66
IK_C = 67
IK_D = 68
IK_E = 69
IK_F = 70
IK_G = 71
IK_H = 72
IK_I = 73
IK_J = 74
IK_K = 75
IK_L = 76
IK_M = 77
IK_N = 78
IK_O = 79
IK_P = 80
IK_Q = 81
IK_R = 82
IK_S = 83
IK_T = 84
IK_U = 85
IK_V = 86
IK_W = 87
IK_X = 88
IK_Y = 89
IK_Z = 90
IK_Unknown5B = 91
IK_Unknown5C = 92
IK_Unknown5D = 93
IK_Unknown5E = 94
IK_Unknown5F = 95
IK_NumPad0 = 96
IK_NumPad1 = 97
IK_NumPad2 = 98
IK_NumPad3 = 99
IK_NumPad4 = 100
IK_NumPad5 = 101
IK_NumPad6 = 102
IK_NumPad7 = 103
IK_NumPad8 = 104
IK_NumPad9 = 105
IK_GreyStar = 106
IK_GreyPlus = 107
IK_Separator = 108
IK_GreyMinus = 109
IK_NumPadPeriod = 110
IK_GreySlash = 111
IK_F1 = 112
IK_F2 = 113
IK_F3 = 114
IK_F4 = 115
IK_F5 = 116
IK_F6 = 117
IK_F7 = 118
IK_F8 = 119
IK_F9 = 120
IK_F10 = 121
IK_F11 = 122
IK_F12 = 123
IK_F13 = 124
IK_F14 = 125
IK_F15 = 126
IK_F16 = 127
IK_F17 = 128
IK_F18 = 129
IK_F19 = 130
IK_F20 = 131
IK_F21 = 132
IK_F22 = 133
IK_F23 = 134
IK_F24 = 135
IK_Unknown88 = 136
IK_Unknown89 = 137
IK_Unknown8A = 138
IK_Unknown8B = 139
IK_Unknown8C = 140
IK_Unknown8D = 141
IK_Unknown8E = 142
IK_Unknown8F = 143
IK_NumLock = 144
IK_ScrollLock = 145
IK_TRACKIR_PITCHUP = 146
IK_TRACKIR_PITCHDOWN = 147
IK_TRACKIR_YAWRIGHT = 148
IK_TRACKIR_YAWLEFT = 149
IK_TRACKIR_ROLLRIGHT = 150
IK_TRACKIR_ROLLLEFT = 151
IK_TRACKIR_MOVEUP = 152
IK_TRACKIR_MOVEDOWN = 153
IK_TRACKIR_MOVELEFT = 154
IK_TRACKIR_MOVERIGHT = 155
IK_TRACKIR_MOVEFORWARD = 156
IK_TRACKIR_MOVEBACKWARD = 157
IK_Unknown9E = 158
IK_Unknown9F = 159
IK_LShift = 160
IK_RShift = 161
IK_LControl = 162
IK_RControl = 163
IK_UnknownA4 = 164
IK_UnknownA5 = 165
IK_UnknownA6 = 166
IK_UnknownA7 = 167
IK_UnknownA8 = 168
IK_UnknownA9 = 169
IK_UnknownAA = 170
IK_UnknownAB = 171
IK_UnknownAC = 172
IK_UnknownAD = 173
IK_UnknownAE = 174
IK_UnknownAF = 175
IK_UnknownB0 = 176
IK_UnknownB1 = 177
IK_UnknownB2 = 178
IK_UnknownB3 = 179
IK_UnknownB4 = 180
IK_UnknownB5 = 181
IK_UnknownB6 = 182
IK_UnknownB7 = 183
IK_UnknownB8 = 184
IK_Unicode = 185
IK_Semicolon = 186
IK_Equals = 187
IK_Comma = 188
IK_Minus = 189
IK_Period = 190
IK_Slash = 191
IK_Tilde = 192
IK_Mouse4 = 193
IK_Mouse5 = 194
IK_Mouse6 = 195
IK_Mouse7 = 196
IK_Mouse8 = 197
IK_UnknownC6 = 198
IK_UnknownC7 = 199
IK_Joy1 = 200
IK_Joy2 = 201
IK_Joy3 = 202
IK_Joy4 = 203
IK_Joy5 = 204
IK_Joy6 = 205
IK_Joy7 = 206
IK_Joy8 = 207
IK_Joy9 = 208
IK_Joy10 = 209
IK_Joy11 = 210
IK_Joy12 = 211
IK_Joy13 = 212
IK_Joy14 = 213
IK_Joy15 = 214
IK_Joy16 = 215
IK_UnknownD8 = 216
IK_UnknownD9 = 217
IK_UnknownDA = 218
IK_LeftBracket = 219
IK_Backslash = 220
IK_RightBracket = 221
IK_SingleQuote = 222
IK_UnknownDF = 223
IK_UnknownE0 = 224
IK_UnknownE1 = 225
IK_UnknownE2 = 226
IK_UnknownE3 = 227
IK_MouseX = 228
IK_MouseY = 229
IK_MouseZ = 230
IK_MouseW = 231
IK_JoyU = 232
IK_JoyV = 233
IK_JoySlider1 = 234
IK_JoySlider2 = 235
IK_MouseWheelUp = 236
IK_MouseWheelDown = 237
IK_Unknown10E = 238
UK_Unknown10F = 239
IK_JoyX = 240
IK_JoyY = 241
IK_JoyZ = 242
IK_JoyR = 243
IK_UnknownF4 = 244
IK_UnknownF5 = 245
IK_Attn = 246
IK_CrSel = 247
IK_ExSel = 248
IK_ErEof = 249
IK_Play = 250
IK_Zoom = 251
IK_NoName = 252


Next, you need to describe the "SelfTarget" command itself. The easiest option is to go into the Interface \ Classes \ Shortcut scripts and find function HandleShortcutCommand (String a_Param) there and add:
 

 case "SelfTarget":
            RequestSelfTarget();
            break;


But, of course, you can insert a command into any class, but then you will have to create in it:

function OnEvent( int a_EventID, String a_Param )
{
    switch( a_EventID )
    {
    case EV_ShortcutCommand:
        HandleShortcutCommand( a_Param );
        break;
    }
}

as well as the Handler itself :

function HandleShortcutCommand( String a_Param )
{
    local String Command;
   
    if( ParseString( a_Param, "Command", Command ) )
    {
        switch( Command )
        {
        case "SelfTarget":
            RequestSelfTarget();
            break;
        }
    }
}


That's all, with the help of these examples, you can call any function, in any class, to any key combination you need. Please note that if you call two different functions with one key, from different classes, but with the same name, they will be called simultaneously. It is convenient to use, for example, to simultaneously enable auto-buff and skill-spam panels from different classes. 

Edited by Celestine
  • Celestine changed the title to Self-target function on hot key "Space" (Interface)
Posted
27 minutes ago, lolpwnz89 said:

but i must in code write nickname or can use party window 1,2,3,4 etc? how it work on Interlude?

 

No, you don't need to enter character nicknames in the code.    You need the index of the group member, in default it looks like this:

 rectWnd = m_wndTop.GetRect();
    if (X > rectWnd.nX + 13 && X < rectWnd.nX + rectWnd.nWidth -10)
    {
        if (GetPlayerInfo(userinfo))
        {
            idx = (Y-rectWnd.nY) / NPARTYSTATUS_HEIGHT;
            RequestAssist(m_arrID[idx], userinfo.Loc);
        }
    }


As you can see, the position of the mouse and the index of the window by which the assist is taken are calculated. Accordingly, you can always set an assist by the party leader (as an example), or by a group member with an index of 1-8 (also, for example, you can add a form for entering the index of a group member for which the assist will be made). 

Posted
Just now, lolpwnz89 said:

this code is in interfece.xdat? or .u?

It's * u, the functions themselves are there, * xdat is just markup, this file does not contain functions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Update: Advanced Rate Limiting Rate limiting is now applied to: Login attempts Account registration Password recovery Email confirmation resends WhatsApp verification Checkout access The system maintains independent counters by IP address and user identity, helping prevent traditional brute-force attacks as well as distributed credential-stuffing attempts using multiple proxies. Brute-Force and Credential-Stuffing Protection Protection is not limited to the visitor's IP address. The system also tracks attempts associated with the account, username, or email address, reducing the effectiveness of attacks performed through rotating IP addresses, proxies, or VPN services. Global HTTP Security Headers Security headers are applied across the entire website: X-Frame-Options X-Content-Type-Options Referrer-Policy HTTP Strict Transport Security These headers help protect the website against clickjacking, MIME-type confusion, insecure referrer exposure, and HTTP downgrade attempts. Secure Error Handling Internal exceptions are recorded in protected security logs while visitors receive sanitized error messages. This prevents the accidental exposure of: Internal file paths Database information SQL errors Server configuration Application stack traces Private Storage Exposure Monitoring The system automatically checks whether the private storage directory is publicly accessible in production. If exposure is detected, a security warning is recorded for the administrator without interrupting the website. This directory may contain licensing information, rate-limit records, and security logs and must never be publicly accessible. OAuth Request Protection Google and Facebook authentication flows use cryptographically random state values stored in the user's session. Returned state values are validated using constant-time comparison, helping prevent OAuth request forgery and unauthorized account-linking attacks. Telegram Authentication Validation Telegram login information is protected through: HMAC signature validation Constant-time hash comparison Authentication timestamp verification Expired-login rejection Secure Verification Tokens Email, password recovery, and WhatsApp verification systems include: Cryptographically secure random tokens Hashed WhatsApp verification codes Automatic expiration Limited verification attempts Resend cooldowns One-time token invalidation Account Activation Protection When email or WhatsApp verification is required, the game account remains restricted until all required verification steps are completed. Unverified users cannot bypass the confirmation process through standard or social login. Secure Upload Processing Administrative image uploads include: Real MIME-type inspection Image-content validation File-size limits Extension allowlists Server-generated random filenames Rejection of invalid or disguised files Original user-provided filenames are never used as the final stored filename. Path Traversal Protection Theme and template identifiers are restricted to validated slugs and must exist in the internal list of allowed themes. This prevents directory traversal and unauthorized local-file access through manipulated template names. Atomic Ticket Transfer Protection Ticket transfers use transactional and durable delivery processing. The balance is conditionally debited, the delivery is recorded before communication with the game database, and failed deliveries remain pending for safe reprocessing. This helps prevent: Free-item delivery Inconsistent balances Duplicate delivery Partial transaction failures Lost transfer records Concurrent Balance Protection Administrative balance adjustments use database transactions and row-level locking. This prevents simultaneous balance operations from overwriting each other or creating inconsistent account balances. Secure Redirect Handling Redirect values are sanitized against header injection, and external redirects are restricted to HTTPS destinations. Password Security Improvements The website uses modern password hashing for player-panel accounts and bcrypt with a configurable cost for supported game-server account systems. Compatibility is included for game-server implementations requiring the $2a$ bcrypt prefix. Duplicate Payment Prevention Built-in protections include: Idempotency control Transaction reference validation Payment status verification Unique external payment references Database transactions and rollback Durable payment history Completed-order verification These protections prevent: Double credits Repeated processing Duplicate payment callbacks Incomplete financial operations Signed Payment Callback Protection Payment callbacks are protected through: HMAC-SHA256 authentication Constant-time signature comparison Signed callback timestamps Callback freshness validation Shared callback secrets This helps prevent forged payment notifications, callback manipulation, and replay attacks. SQL Injection Protection The database layer uses: PDO Prepared statements Parameter binding Controlled internal allowlists for dynamic identifiers User-controlled values are not directly concatenated into SQL queries. XSS Protection Output and form data are protected through: HTML escaping Attribute escaping Input filtering HttpOnly session cookies MIME-sniffing protection Frame embedding restrictions These measures reduce the risk of Cross-Site Scripting, malicious HTML injection, session theft, and clickjacking. CSRF Protection Sensitive forms and administrative operations use session-based CSRF tokens. Requests without a valid token are rejected, helping prevent unauthorized actions performed through malicious external websites. Secure Session Protection The session system includes: HttpOnly cookies Secure cookie support SameSite restrictions Session ID regeneration Authentication state validation Session timeout controls These protections reduce the risks of session fixation, session theft, and unauthorized account reuse. reCAPTCHA Protection Google reCAPTCHA may be enabled on sensitive public forms to reduce: Automated account registrations Spam submissions Bot login attempts Automated password recovery abuse Confirmation Resend Limits Email and WhatsApp confirmation resends are protected through: Cooldown periods Rate limiting Expiring verification codes Attempt counters This prevents verification-message flooding and excessive external API usage. Licensing and Anti-Cloning Protection The website includes centralized licensing controls with: License-key validation Domain binding Signed license responses Cached license validation Temporary offline grace period Circuit-breaker protection Unauthorized-domain rejection These measures help prevent unauthorized installation, cloning, and redistribution of the system.
    • Tool that allows you to download the Lineage 2 game client directly from the official publisher CDNs. It fetches the CDN's file list and downloads every patch file, decompresses it (LZMA / Zip) and writes the finished client to disk — and can resume or repair an existing installation instead of starting over. It runs several client downloads at once through a batch queue, so you can prepare multiple regions or versions in a single session.   Supported: NCSoft CDNs (TW / KR / JP / NA) and  4game CDNs(RU / EU)   Download: https://drive.google.com/file/d/11SDcNASqO2GKOBT79LFu7mqvSRSJZvBS
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..