Сообщений: 39
Тем: 1
Зарегистрирован: Apr 2016
Репутация:
0
Awiion Написал:Judging by the fact that battle mode also does not display.
download IDA, Find the package, look how many x bytes reads...
Then do the fix, but the offset is not right, and it is not known how much,
After equip,
writeEquipedItems player.getEqipment());
Works
in between
writeB(new byte[] { (byte) 209, 81, 0, 0, 119, 0, 0, 0, 0, 0, 0, 0, 0 }); // new
writeB(new byte[40]);
writeC(1); // WriteC(Auth.AuthConfig.EnableInventory); ??
the enumeration of the bytes, or not enough...
And anyway, after equip is how I remember the max rank on the server
short <- 0
short <- 55
short <- 0
short <- 55
And judging by the dump package, 4 game version 1.34 client...
You are using an old version of the client...
Of course there will be different structures
thanks for the explanation, I would try to fix it
Сообщений: 39
Тем: 1
Зарегистрирован: Apr 2016
Репутация:
0
Awiion Написал:Judging by the fact that battle mode also does not display.
download IDA, Find the package, look how many x bytes reads...
Then do the fix, but the offset is not right, and it is not known how much,
After equip,
writeEquipedItems player.getEqipment());
Works
in between
writeB(new byte[] { (byte) 209, 81, 0, 0, 119, 0, 0, 0, 0, 0, 0, 0, 0 }); // new
writeB(new byte[40]);
writeC(1); // WriteC(Auth.AuthConfig.EnableInventory); ??
the enumeration of the bytes, or not enough...
And anyway, after equip is how I remember the max rank on the server
short <- 0
short <- 55
short <- 0
short <- 55
And judging by the dump package, 4 game version 1.34 client...
You are using an old version of the client...
Of course there will be different structures
Awiion
How To fix
Код: protected internal override void write()
{
base.writeH(0xa0e);
base.writeD(1);
base.writeH((short) this._channel.getAnnounceSize());
base.writeS(this._channel.getAnnounce(), this._channel.getAnnounceSize());
base.writeD(0);
}
Сообщений: 322
Тем: 6
Зарегистрирован: Nov 2015
Репутация:
505
crayonnet Написал:Awiion
How To fix SM_SERVER_MESSAGE_ANNOUNCE
PHP код: <?php
internal class SM_SERVER_MESSAGE_ANNOUNCE : SendBaseGamePacket
{
private Channel _channel;
public SM_SERVER_MESSAGE_ANNOUNCE(int channelId)
{
base.makeme();
this._channel = ChannelInfoHolder.getChannel(channelId);
}
protected internal override void write()
{
base.writeH(0xa0e);
base.writeD(1);
base.writeH((short) this._channel.getAnnounceSize());
base.writeS(this._channel.getAnnounce(), this._channel.getAnnounceSize());
base.writeD(0);
}
Код: public override void WriteImpl()
{
Write<int>(channel.Announce != null);
Write<short>(channel.Announce.Length);
WriteUnicode(channel.Announce);
}
Сообщений: 39
Тем: 1
Зарегистрирован: Apr 2016
Репутация:
0
Thanks Very much
Сообщений: 39
Тем: 1
Зарегистрирован: Apr 2016
Репутация:
0
Awiion Написал:Код: public override void WriteImpl()
{
Write<int>(channel.Announce != null);
Write<short>(channel.Announce.Length);
WriteUnicode(channel.Announce);
}
Awiion
in server java code that does not work
please help
PHP код: <?php
}
@Override
public void writeImpl() {
writeBool(channel.getAnnounce() != null);
writeH(channel.getAnnounce().length());
writeS(channel.getAnnounce());
}
}
Цитата:writeD(0);
writeH(channel.getAnnounce().length());
writeS(channel.getAnnounce());
|