Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Help Me ! (SM_CUPON C#)
#1
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace PBServer.Network.Game.Packets.ServerPackets
{
public class SM_CUPON : SendBaseGamePacket
{

private string hex = "";

public SM_CUPON()
{
base.makeme();
}

public static byte[] ConvertHexStringToByteArray(string hexString)
{
if (hexString.Length % 2 != 0)
{
}
byte[] numArray = new byte[hexString.Length / 2];
for (int i = 0; i < (int)numArray.Length; i++)
{
string str = hexString.Substring(i * 2, 2);
numArray[i] = byte.Parse(str, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
}
return numArray;
}

protected internal override void write()
{
base.writeD(525);
base.writeB(SM_CUPON.ConvertHexStringToByteArray(this.hex));

}
}

Добавлено через 11 минут
Should I Use the Code To Decipher The HEX as Well ? I Am New In Programming
Ответ
#2
yGGhz,
This package remove item,
Still have the package added object.

Click
Ответ
#3
Where Can I Add The Hex Of The Coupons ??
In (SM_ROOM_SLOT_INFO) ?
Ответ
#4
yGGhz,

Код:
[SRC="csharp"]
                Write<byte>(slot.State);
                Write<byte>(slot.Rank);
                Write<int>(slot.Clan.Id);
                Write<int>(slot.Clan.Role);
                Write<byte>(slot.Clan.Rank);
                Write<byte>(slot.Clan.Logo_1);
                Write<byte>(slot.Clan.Logo_2);
                Write<byte>(slot.Clan.Logo_3);
                Write<byte>(slot.Clan.Logo_4);
                Write<byte>(slot.Premium);
                Write<byte>(slot.TournamentRank);
                Write<int>(slot.Coupons);
                WriteString(slot.Clan.Name, Clan.Name.Length);
                Write<int>(0);
                Write<byte>(slot.Clan.Color);[/SRC]
Разработка Emu: PiercingBlow 90%, APB Reloaded 100%.
Самый действенный инструмент для самообучения - грабли.
Ответ
#5
Thank you
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)