Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using PBServer;
- using PBServer.src.model;
- using PBServer.src.model.accounts;
- using System;
- namespace PBServer.network.serverpackets
- {
- public class SM_CHAT_NORMAL : SendBaseGamePacket
- {
- protected Chat _chat;
- private Account player;
- public SM_CHAT_NORMAL(Chat chat, Account player)
- {
- this._chat = chat;
- this.player = player;
- base.makeme();
- }
- protected internal override void write()
- {
- if (player._rank == 53 || player._rank == 54)
- {
- base.writeH(0xc15);
- base.writeB(new byte[] { 0x1d, 0, 0x15, 12, 0x93 });
- base.writeS(this._chat.playername, 0x22);
- base.writeC(3);
- base.writeH((short)this._chat.chat.Length);
- base.writeS(this._chat.chat, this._chat.chat.Length);
- }
- else
- {
- player.name_color = 3;
- base.writeH(0xc15);
- base.writeB(new byte[] { 0x1d, 0, 0x15, 12, 0x93 });
- base.writeS(this._chat.playername, 0x22);
- base.writeC(0);
- base.writeH((short)this._chat.chat.Length);
- base.writeS(this._chat.chat, this._chat.chat.Length);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement