Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Weapon activate packet
#1
hi everybody. this is point blank weapon activate packet. but not work. if someone know what is wrong with these packets please help me.

CM_INVENTORY_EQUIP_NOTUSED
Цитата:namespace PBServer.network.Game.packets.clientpackets
{
using PBServer;
using PBServer.network;
using PBServer.network.Game.packets.serverpackets;
using PBServer.network.serverpackets;
using PBServer.src.model.accounts;
using System;
using PBServer.src.managers;

public class opcode_534_REQ : ReceiveBaseGamePacket
{
private int obj_id;

public opcode_534_REQ(GameClient Client, byte[] data)
{
base.makeme(Client, data);
CLogger.getInstance().info_blue(BitConverter.ToString(data));
}

protected internal override void read()
{
base.readH();
this.obj_id = base.readH();
CLogger.getInstance().info("item obj_id: " + this.obj_id);
}

protected internal override void run()
{
if (base.getClient() != null)
{
AccountManager.getInstance().UpdateItemNotUsed(this.obj_id);
base.getClient().sendPacket(new SM_INVENTORY_EQUIP_NOTUSED(this.obj_id)); //535
base.getClient().sendPacket(new SM_INVENTORY_ADD_ITEM(this.obj_id)); //3588
}
}
}
}

SM_INVENTORY_EQUIP_NOTUSED
Цитата:namespace PBServer.network.Game.packets.serverpackets
{
using PBServer;
using System;

public class SM_INVENTORY_EQUIP_NOTUSED : SendBaseGamePacket
{
private long id;

public SM_INVENTORY_EQUIP_NOTUSED(long id)
{
base.makeme();
this.id = id;
}

protected internal override void write()
{
CLogger.getInstance().info("Received: SM_INVENTORY_EQUIP_NOTUSED(535) | " + this.id);
base.writeH(535);

base.writeD(1); // count
base.writeQ(id); //object id - perriot mask
base.writeD(1104003014); //item id - pierrot mask
base.writeD(0); //unk
base.writeC((byte)2); //consumable type
base.writeD(Convert.ToInt32(DateTime.Now.ToString("yyMMddHHmm"))); //quantity - 7 day

}

}
}

SM_INVENTORY_ADD_ITEM
Цитата:namespace PBServer.network.serverpackets
{
using PBServer;
using System;

public class SM_INVENTORY_ADD_ITEM : SendBaseGamePacket
{
private long id;

public SM_INVENTORY_ADD_ITEM(long id)
{
base.makeme();
this.id = id;
}

protected internal override void write()
{
CLogger.getInstance().info("Received: SM_INVENTORY_ADD_ITEM(3588) | " + this.id);
base.writeH(3588);

this.writeC(1); //unk
this.writeC(1); //Chara Items
this.writeC(0); //weapons
this.writeC(0); //coupon
this.writeQ(id); //object id - perriot mask
this.writeD(1104003014); //item id - pierrot mask
this.writeD(0); //unk
this.writeC((byte)2); //consumable type
this.writeD(604800); //quantity - 7 day

}
}
}
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Парсинг Weapon.pef в xml и обратно denvm 0 1,574 08-08-2022, 04:41 PM
Последний пост: denvm
  Packet Encrypt ManuelDev 1 3,109 09-04-2019, 06:46 PM
Последний пост: ManuelDev
  how to descrypt packet pb client version current bmzproject 6 2,074 03-04-2019, 04:17 AM
Последний пост: bmzproject
  How to fix Packet Ping Opcode 97 Udp 3 BallDev 0 1,403 11-28-2018, 08:42 PM
Последний пост: BallDev
  UDP3 Send-back packet ManuelDev 3 1,905 06-29-2018, 12:18 PM
Последний пост: ManuelDev
  Need Packet Structure Lastest Client garsia 0 1,156 06-07-2018, 01:43 AM
Последний пост: garsia
  Help me UDP3 Before send packet to player bmzproject 0 1,174 05-14-2018, 02:26 PM
Последний пост: bmzproject
  Weapon,map,item Boris2105 1 1,545 01-11-2018, 12:36 AM
Последний пост: PROGRAMMATOR
  Point Blank unknown packet AlikoD 10 3,226 03-21-2017, 09:30 PM
Последний пост: ManuelDev
  Where do i find this progress bar packet bola 4 1,384 01-12-2017, 09:01 PM
Последний пост: bola

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


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