Openkore: Wrong item appears in inventory.

Created on 15 Oct 2019  路  14Comments  路  Source: OpenKore/openkore

Using the newest openkore from the master branch.

unknown

Most helpful comment

Aww that's sad. I find botting even more interesting that the game itself

All 14 comments

@sctnightcore @ChrstphrR

i had the same issue, so as my friend
and it is when you receive some item from an npc

Bot dead in iRO in 6 weeks..
Enjoy while it last..

Bot dead in iRO in 6 weeks..
Enjoy while it last..

Wait what do you mean by that? lol

Bot dead in iRO in 6 weeks..
Enjoy while it last..

Wait what do you mean by that? lol

iRO will close and reopen with new features and new Shield (anti-hack)

iRO will close and reopen with new features and new Shield (anti-hack)

Ah I see. And that'll be the doom of iRO bots?

@tpysz5n we can't make sure of that, but recently there is way less servers that openkore works... bRO don't work, iRO is buggy, cRO i think it doesn't work, tRO it doesn't work

as someone said, openkore might be slowly dying

Aww that's sad. I find botting even more interesting that the game itself

simple hacks, clear storage before autostorage.
In src/command.pm
sub cmdAutoStorage {
message T("Initiating auto-storage.\n");
$char->storage->clear();

When bot going for autostorage it will clear old storage log. Maybe someone can put a better code.

Thank you.

to clear inventory, there are 2 parts in src/network/receive/servertype0.pm

message(swrite(
        "---------Map  Info----------", [],
        "MAP Name: @<<<<<<<<<<<<<<<<<<",
        [$args->{map}],
        "MAP IP: @<<<<<<<<<<<<<<<<<<",
        [$map_ip],
        "MAP Port: @<<<<<<<<<<<<<<<<<<",
        [$map_port],
        "-------------------------------", []),
        "connection");

    message T("Closing connection to Map Server\n"), "connection";
    $char->inventory->clear();
    $net->serverDisconnect unless ($net->version == 1);

and

# Replies 0166 (Guild Member Titles List) and 0154 (Guild Members List)
        $messageSender->sendGuildRequestInfo(1);
        message(T("You are now in the game\n"), "connection");
        $char->inventory->clear();
        Plugins::callHook('in_game');
        $timeout{'ai'}{'time'} = time;
        our $quest_generation++; 

Tested for a week and no more issue for buggy inventory

to clear inventory, there are 2 parts in src/network/receive/servertype0.pm

message(swrite(
      "---------Map  Info----------", [],
      "MAP Name: @<<<<<<<<<<<<<<<<<<",
      [$args->{map}],
      "MAP IP: @<<<<<<<<<<<<<<<<<<",
      [$map_ip],
      "MAP Port: @<<<<<<<<<<<<<<<<<<",
      [$map_port],
      "-------------------------------", []),
      "connection");

  message T("Closing connection to Map Server\n"), "connection";
  $char->inventory->clear();
  $net->serverDisconnect unless ($net->version == 1);

and

# Replies 0166 (Guild Member Titles List) and 0154 (Guild Members List)
      $messageSender->sendGuildRequestInfo(1);
      message(T("You are now in the game\n"), "connection");
      $char->inventory->clear();
      Plugins::callHook('in_game');
      $timeout{'ai'}{'time'} = time;
      our $quest_generation++; 

Tested for a week and no more issue for buggy inventory

I'm testing. Thank you for helping

to clear inventory, there are 2 parts in src/network/receive/servertype0.pm

message(swrite(
      "---------Map  Info----------", [],
      "MAP Name: @<<<<<<<<<<<<<<<<<<",
      [$args->{map}],
      "MAP IP: @<<<<<<<<<<<<<<<<<<",
      [$map_ip],
      "MAP Port: @<<<<<<<<<<<<<<<<<<",
      [$map_port],
      "-------------------------------", []),
      "connection");

  message T("Closing connection to Map Server\n"), "connection";
  $char->inventory->clear();
  $net->serverDisconnect unless ($net->version == 1);

and

# Replies 0166 (Guild Member Titles List) and 0154 (Guild Members List)
      $messageSender->sendGuildRequestInfo(1);
      message(T("You are now in the game\n"), "connection");
      $char->inventory->clear();
      Plugins::callHook('in_game');
      $timeout{'ai'}{'time'} = time;
      our $quest_generation++; 

Tested for a week and no more issue for buggy inventory

after test it
Inventory is Ok.
Storage still have some bug but it's better when bot restorage.

I've tested it too and it totally works (didn't notice the storage bug @bookbk mentioned).
Shout out to @jimbit76 for the brilliant hack!

continue in #2983 2983

Was this page helpful?
0 / 5 - 0 ratings

Related issues

restartowi picture restartowi  路  5Comments

farrainbow picture farrainbow  路  4Comments

Keeynt picture Keeynt  路  4Comments

TomEnder picture TomEnder  路  3Comments

fotuoh picture fotuoh  路  3Comments