Author Topic: The bot doesnt summon homun even if there is or not dead  (Read 25 times)

havefun

  • Newbie
  • *
  • Posts: 7
    • View Profile
The bot doesnt summon homun even if there is or not dead
« on: July 26, 2020, 05:59:22 PM »
Hi.

Do you guys make your homun work in openkore? Like summon it and it appears no error?

Please reply here thanks :)

PeakHour

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: The bot doesnt summon homun even if there is or not dead
« Reply #1 on: July 28, 2020, 08:39:56 PM »
Hi.

Do you guys make your homun work in openkore? Like summon it and it appears no error?

Please reply here thanks :)

It is malfunctioned since last June's updates. The server kept sending 04 state in 09F7 packet.

My solution is to modify the ..\src\Network\Receive.pm

source code:
Code: [Select]
sub homunculus_property {
my ($self, $args) = @_;

my $slave = $char->{homunculus} or return;

foreach (@{$args->{KEYS}}) {
$slave->{$_} = $args->{$_};
}
$slave->{name} = bytesToString($args->{name});

slave_calcproperty_handler($slave, $args);
homunculus_state_handler($slave, $args);

to:
Code: [Select]
sub homunculus_property {
my ($self, $args) = @_;

my $slave = $char->{homunculus} or return;

foreach (@{$args->{KEYS}}) {
$slave->{$_} = $args->{$_};
}
$slave->{name} = bytesToString($args->{name});

slave_calcproperty_handler($slave, $args);
homunculus_state_handler($slave, $args);

#Edit By Robert Chen, 2020-7-27
if ($args->{state}==4 && $args->{hp}>0) {
$slave->{state} = 0;
$args->{state} = 0;
}