*Poze / Video:
Sursa Server
char.cpp
Cauta
Code:
void CHARACTER::SendEquipment(LPCHARACTER ch)
Code:
TPacketViewEquip p;
p.header = HEADER_GC_VIEW_EQUIP;
p.vid = GetVID();
int pos[21] = { WEAR_BODY, WEAR_HEAD, WEAR_FOOTS, WEAR_WRIST, WEAR_WEAPON, WEAR_NECK, WEAR_EAR, WEAR_UNIQUE1,
WEAR_UNIQUE2, WEAR_ARROW, WEAR_SHIELD, WEAR_COSTUME_BODY, WEAR_COSTUME_HAIR, WEAR_RING1, WEAR_RING2, WEAR_BELT, WEAR_COSTUME_SASH, WEAR_COSTUME_WEAPON, WEAR_COSTUME_MOUNT, WEAR_PET, WEAR_EXP};
for (int i = 0; i < 21; i++)
WEAR_UNIQUE2, WEAR_ARROW, WEAR_SHIELD, WEAR_COSTUME_BODY, WEAR_COSTUME_HAIR, WEAR_RING1, WEAR_RING2, WEAR_BELT, WEAR_COSTUME_SASH, WEAR_COSTUME_WEAPON, WEAR_COSTUME_MOUNT, WEAR_PET, WEAR_EXP
Se numara de la 0 wear_body, 1 wear_head, 2 wear_foots
Voi inlocuiti acel 21 cu numarul de wear pe care il aveti
packet.h
Cauta
Code:
typedef struct pakcet_view_equip
Code:
typedef struct pakcet_view_equip
{
BYTE header;
DWORD vid;
struct
{
DWORD vnum;
ItemCountType count;
long alSockets[ITEM_SOCKET_MAX_NUM];
TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_MAX_NUM];
}
equips[21];
} TPacketViewEquip;
Binary:
UserInterface/Packet.h
Cauta:
Code:
typedef struct pakcet_view_equip
Code:
typedef struct pakcet_view_equip
{
BYTE header;
DWORD dwVID;
TEquipmentItemSet equips[21];
} TPacketGCViewEquip;
In : PythonNetworkStreamPhaseGame.cpp
Cauta:
Code:
bool CPythonNetworkStream::RecvViewEquipPacket()
Code:
for (int i = 0; i < 21; ++i)
Doar ca exemplu
Code:
{"index":0, "x":41, "y":36, "width":32, "height":64}, #WEAR_BODY
{"index":1, "x":41, "y":3, "width":32, "height":32}, #WEAR_HEAD
{"index":2, "x":44, "y":150, "width":32, "height":32}, #WEAR_FOOTS
{"index":3, "x":81, "y":75, "width":32, "height":32}, #WEAR_WRIST
{"index":4, "x":5, "y":4, "width":32, "height":96}, #WEAR_WEAPON
{"index":5, "x":116, "y":75, "width":32, "height":32}, #WEAR_NECK
{"index":6, "x":116, "y":43, "width":32, "height":32}, #WEAR_EAR
{"index":7, "x":116, "y":151, "width":32, "height":32}, #WEAR_UNIQUE1
{"index":8, "x":116, "y":112, "width":32, "height":32}, #WEAR_UNIQUE2
{"index":9, "x":114, "y":2, "width":32, "height":32}, #WEAR_ARROW
{"index":10, "x":81, "y":42, "width":32, "height":32}, #WEAR_SHIELD
{"index":13, "x":4, "y":150, "width":32, "height":32}, #WEAR_RING1
{"index":14, "x":80, "y":150, "width":32, "height":32},#WEAR_RING2
{"index":15, "x":44, "y":104, "width":32, "height":32},#WEAR_BELT
{"index":19, "x":4, "y":100, "width":32, "height":32},#WEAR_PET
{"index":20, "x":81, "y":102, "width":32, "height":32},#WEAR_EXP