Openkore: Unknown switch: 0B08,0B09,0B1B,0AE2 , Inventory doesn't work

Created on 17 Dec 2019  路  14Comments  路  Source: OpenKore/openkore

------------------ Openkore Issues Template ------------------





  • Openkore version git:
    lastest
  • Server:
    cRO
  • Bug Report / Feature Request:
    Server newly updated , and some Unknown switches showed ,
    Packet Tokenizer: Unknown switch: 0B08,0B09,0B1B 0AE2
    And , inventory shows empty , cmd "i" and "is" don't work , fail to use storage, fail to swich equipment .
    New column of inventory is functional , in this column item can be protected to avoid selled to npc.
    image

  • Summary:
bug help wanted cRO

All 14 comments

0B08, 0B09, 0B0A (item_list) was implemented to all servers.

try the latest openkore version and add in servers.txt:
itemListType 1

see: #2876 and #2887

0AE2 is just a server asking for open a UI window

0AE2 added in #3001

Tried latest version, 0AE2 is ok ,
but,
itemListType 1 added
Unknown switch: 0B08 remains.
don't know what I do wrong...

TODO:
update recvpackets (this is why we got Unknown switch)
update item unpack struct to cRO

after update recvpackets
in srcNetworkReceiveServerType0.pm
items_nonstackable => {
type8 => {
len => 57,
types => 'a2 v C V2 C a8 l v2 C a25 C',
keys => [qw(ID nameID type type_equip equipped upgrade cards expire bindOnEquipType sprite_id num_options options identified)],
},
},

items_stackable => {
type7 => {
len => 24,
types => 'a2 v C v V a8 l C',
keys => [qw(ID nameID type amount type_equip cards expire identified)],
},
},

it should work

@hubertyang88
did u see this line

if (grep { $masterServer->{serverType} eq $_ } qw(iRO_Renewal)) {

put cRO inside the qw, so u don't need to edit the items type

It works @c4c1n6kr3m1
I actually tried this before , but I don't have updated recvpackets back then .
Thanks to @alisonrag , give me new recvpackets.
Can anyone make a proper update and merge it?

} elsif ($args->{switch} eq '0B0A') { # item_list
    if (grep { $masterServer->{serverType} eq $_ } qw(cRO)) {
        return $items->{type7};
    } 
    elsif (grep { $masterServer->{serverType} eq $_ } qw(iRO_Renewal)) {
        return $items->{type7};
    } 
    else {
        return $items->{type8};
    }

 elsif ($args->{switch} eq '0B09') { # item_list
    if (grep { $masterServer->{serverType} eq $_ } qw(iRO_Renewal)) {
        return $items->{type6};
    } 
    elsif (grep { $masterServer->{serverType} eq $_ } qw(cRO)) {
        return $items->{type6};
    } 
    else {
        return $items->{type7};
    }

it better @hubertyang88

} elsif ($args->{switch} eq '0B0A') { # item_list
    if (grep { $masterServer->{serverType} eq $_ } qw(cRO iRO_Renewal)) {
        return $items->{type7};
    } else {
        return $items->{type8};
    }

 elsif ($args->{switch} eq '0B09') { # item_list
    if (grep { $masterServer->{serverType} eq $_ } qw(cRO iRO_Renewal)) {
        return $items->{type6};
    } else {
        return $items->{type7};
    }

sir @hubertyang88
how do u login to this server? i always get something "wide character" error when type chinese username?

inventory shows empty after use tele or change maps
new Unknown switch found .
Unknown switch: 0B1B , 08E2
console.txt
0B1B is long packet.

Anyone has new recvpackets ?

inventory shows empty after use tele or change maps
new Unknown switch found .
Unknown switch: 0B1B , 08E2
console.txt
0B1B is long packet.

Anyone has new recvpackets ?

both are not implemented in openkore
08E2 = navigation system, server asking for client show navigation to a determined location
0B1B = seems like hotkeys

empty inventory problem after change maps
in this file , change iro to cro.... it works partly
in srcfunctions.pl
#Dont clear item on Map change [sctnightcore]
if ($masterServer->{serverType} ne 'cRO') {
$char->inventory->onMapChange();
# Clear the cart but do not close it.
$char->cart->clear;
}

BUT , openkore will duplicate items ... wait for further fix

see #3003

Was this page helpful?
0 / 5 - 0 ratings

Related issues

restartowi picture restartowi  路  5Comments

TomEnder picture TomEnder  路  3Comments

ncplay91 picture ncplay91  路  4Comments

Queroz picture Queroz  路  4Comments

kumulo123 picture kumulo123  路  5Comments