Chucl

Member
hello im trying to add a new ones and i would like to name them, where are the number 6201,6202.. etc defined?


C#:
                if ( Alive && InsuranceEnabled )
                {
                    list.Add( new CallbackEntry( 6201, new ContextCallback( ToggleItemInsurance ) ) );

                    if ( AutoRenewInsurance )
                        list.Add( new CallbackEntry( 6202, new ContextCallback( CancelRenewInventoryInsurance ) ) );
                    else
                        list.Add( new CallbackEntry( 6200, new ContextCallback( AutoRenewInventoryInsurance ) ) );
                }
 
It's a cliloc but you have to add 3000000 to your number. For example: 3006201 is 1708620243569.png

You can find more in packet definition. Context menu popups are in 0xBF packet sub-command 14 PenUltima Online ( POL )

Subcommand 0x14: Display Popup/context menu (2D and KR)
BYTE[1] unknown (0x00)
BYTE[1] subsubcommand (0x01 for 2D, 0x02 for KR)
BYTE[4] Serial
BYTE[1] Number of entries in the popup/context

2D-client:
loop Entries
BYTE[2] Unique ID (returned by client)
BYTE[2] Cliloc ID (ID is Cliloc - 3000000)
BYTE[2] Flags 0x00=enabled, 0x01=disabled, 0x02=arrow, 0x20 = color
If (Flags = 0x20)
BYTE[2] color/hue; // rgb 1555 color (ex, 0 = transparent, 0x8000 = solid black, 0x1F = blue, 0x3E0 = green, 0x7C00 = red)
Endif
endloop(entries)

KR-client:
loop Entries
BYTE[4] Text ID Number?
BYTE[2] Index of entry (entry tag)?
BYTE[2] Flags 0x00=enabled, 0x01=disabled, 0x04 = highlighted
endloop(entries)
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back