forked from MagicBane/Server
Petition window work.
This commit is contained in:
@@ -45,8 +45,11 @@ public class PetitionReceivedMsgHandler extends AbstractClientMsgHandler {
|
|||||||
|
|
||||||
// Close the petition window
|
// Close the petition window
|
||||||
|
|
||||||
petitionReceivedMsg.petition = 1;
|
petitionReceivedMsg.petition = 4;
|
||||||
Dispatch dispatch = Dispatch.borrow(playerCharacter, msg);
|
petitionReceivedMsg.unknownByte01 = 0;
|
||||||
|
petitionReceivedMsg.unknown04 = 0;
|
||||||
|
|
||||||
|
Dispatch dispatch = Dispatch.borrow(playerCharacter, petitionReceivedMsg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public class PetitionReceivedMsg extends ClientNetMsg {
|
|||||||
@Override
|
@Override
|
||||||
protected void _serialize(ByteBufferWriter writer) {
|
protected void _serialize(ByteBufferWriter writer) {
|
||||||
writer.putInt(this.petition);
|
writer.putInt(this.petition);
|
||||||
|
|
||||||
if (this.petition == PETITION_NEW) {
|
if (this.petition == PETITION_NEW) {
|
||||||
writer.putInt(this.unknown01);
|
writer.putInt(this.unknown01);
|
||||||
writer.putInt(this.unknown02);
|
writer.putInt(this.unknown02);
|
||||||
@@ -67,7 +68,7 @@ public class PetitionReceivedMsg extends ClientNetMsg {
|
|||||||
writer.putString(this.language);
|
writer.putString(this.language);
|
||||||
writer.putInt(this.unknown07);
|
writer.putInt(this.unknown07);
|
||||||
writer.putUnicodeString(message);
|
writer.putUnicodeString(message);
|
||||||
} else if (this.petition == PETITION_CANCEL) {
|
} else {
|
||||||
writer.putInt(this.unknown01);
|
writer.putInt(this.unknown01);
|
||||||
writer.putInt(this.unknown02);
|
writer.putInt(this.unknown02);
|
||||||
writer.put(this.unknownByte01);
|
writer.put(this.unknownByte01);
|
||||||
|
|||||||
Reference in New Issue
Block a user