Detached direct packet routing for some older client opcodes

This commit is contained in:
Uleat 2014-10-02 20:18:54 -04:00
parent 03fed0f42d
commit 272180ff0f
16 changed files with 713 additions and 145 deletions

View File

@ -1,5 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50) EQEMu Changelog (Started on Sept 24, 2003 15:50)
------------------------------------------------------- -------------------------------------------------------
== 10/02/2014 ==
Uleat: First round of Ti/6.2 translators added - needed for re-enumeration
== 10/01/2014 == == 10/01/2014 ==
Kayen: Exported to PERL $client->SendColoredText(color, msg) Kayen: Exported to PERL $client->SendColoredText(color, msg)
demonstar55: Exported SendColoredText to lua demonstar55: Exported SendColoredText to lua

View File

@ -1460,6 +1460,7 @@ struct DeleteItem_Struct {
/*0000*/ uint32 from_slot; /*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot; /*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack; /*0008*/ uint32 number_in_stack;
/*0012*/
}; };
struct MoveItem_Struct struct MoveItem_Struct
@ -1467,16 +1468,18 @@ struct MoveItem_Struct
/*0000*/ uint32 from_slot; /*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot; /*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack; /*0008*/ uint32 number_in_stack;
/*0012*/
}; };
// both MoveItem_Struct/DeleteItem_Struct server structures will be changing to a structure-based slot format..this will // both MoveItem_Struct/DeleteItem_Struct server structures will be changing to a structure-based slot format..this will
// be used for handling SoF/SoD/etc... time stamps sent using the MoveItem_Struct format. (nothing will be done with this // be used for handling SoF/SoD/etc... time stamps sent using the MoveItem_Struct format. (nothing will be done with this
// info at the moment..but, it forwards it on to the server for handling/future use) // info at the moment..but, it is forwarded on to the server for handling/future use)
struct ClientTimeStamp_Struct struct ClientTimeStamp_Struct
{ {
/*0000*/ uint32 from_slot; /*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot; /*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack; /*0008*/ uint32 number_in_stack;
/*0012*/
}; };
// //
@ -3400,7 +3403,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };

View File

@ -18,15 +18,15 @@ namespace Client62
static OpcodeManager *opcodes = nullptr; static OpcodeManager *opcodes = nullptr;
static Strategy struct_strategy; static Strategy struct_strategy;
char* SerializeItem(const ItemInst *inst, int16 slot_id, uint32 *length, uint8 depth); char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint8 depth);
// server to client inventory location converters // server to client inventory location converters
static inline uint32 ServerToClient62Slot(uint32 ServerSlot); static inline int16 ServerToClient62Slot(uint32 ServerSlot);
static inline uint32 ServerToClient62CorpseSlot(uint32 ServerCorpse); static inline int16 ServerToClient62CorpseSlot(uint32 ServerCorpse);
// client to server inventory location converters // client to server inventory location converters
static inline uint32 Client62ToServerSlot(uint32 Client62Slot); static inline uint32 Client62ToServerSlot(int16 Client62Slot);
static inline uint32 Client62ToServerCorpseSlot(uint32 Client62Corpse); static inline uint32 Client62ToServerCorpseSlot(int16 Client62Corpse);
void Register(EQStreamIdentifier &into) void Register(EQStreamIdentifier &into)
{ {
@ -131,6 +131,31 @@ namespace Client62
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_AdventureMerchantSell)
{
ENCODE_LENGTH_EXACT(Adventure_Sell_Struct);
SETUP_DIRECT_ENCODE(Adventure_Sell_Struct, structs::Adventure_Sell_Struct);
eq->unknown000 = 1;
OUT(npcid);
eq->slot = ServerToClient62Slot(emu->slot);
OUT(charges);
OUT(sell_price);
FINISH_ENCODE();
}
ENCODE(OP_ApplyPoison)
{
ENCODE_LENGTH_EXACT(ApplyPoison_Struct);
SETUP_DIRECT_ENCODE(ApplyPoison_Struct, structs::ApplyPoison_Struct);
eq->inventorySlot = ServerToClient62Slot(emu->inventorySlot);
OUT(success);
FINISH_ENCODE();
}
ENCODE(OP_BazaarSearch) ENCODE(OP_BazaarSearch)
{ {
EQApplicationPacket *in = *p; EQApplicationPacket *in = *p;
@ -234,6 +259,20 @@ namespace Client62
dest->FastQueuePacket(&in, ack_req); dest->FastQueuePacket(&in, ack_req);
} }
ENCODE(OP_DeleteCharge) { ENCODE_FORWARD(OP_MoveItem); }
ENCODE(OP_DeleteItem)
{
ENCODE_LENGTH_EXACT(DeleteItem_Struct);
SETUP_DIRECT_ENCODE(DeleteItem_Struct, structs::DeleteItem_Struct);
eq->from_slot = ServerToClient62Slot(emu->from_slot);
eq->to_slot = ServerToClient62Slot(emu->to_slot);
OUT(number_in_stack);
FINISH_ENCODE();
}
ENCODE(OP_DeleteSpawn) ENCODE(OP_DeleteSpawn)
{ {
SETUP_DIRECT_ENCODE(DeleteSpawn_Struct, structs::DeleteSpawn_Struct); SETUP_DIRECT_ENCODE(DeleteSpawn_Struct, structs::DeleteSpawn_Struct);
@ -400,6 +439,31 @@ namespace Client62
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_LootItem)
{
ENCODE_LENGTH_EXACT(LootingItem_Struct);
SETUP_DIRECT_ENCODE(LootingItem_Struct, structs::LootingItem_Struct);
OUT(lootee);
OUT(looter);
eq->slot_id = emu->slot_id;
OUT(auto_loot);
FINISH_ENCODE();
}
ENCODE(OP_MoveItem)
{
ENCODE_LENGTH_EXACT(MoveItem_Struct);
SETUP_DIRECT_ENCODE(MoveItem_Struct, structs::MoveItem_Struct);
eq->from_slot = ServerToClient62Slot(emu->from_slot);
eq->to_slot = ServerToClient62Slot(emu->to_slot);
OUT(number_in_stack);
FINISH_ENCODE();
}
ENCODE(OP_NewSpawn) { ENCODE_FORWARD(OP_ZoneSpawns); } ENCODE(OP_NewSpawn) { ENCODE_FORWARD(OP_ZoneSpawns); }
ENCODE(OP_OnLevelMessage) ENCODE(OP_OnLevelMessage)
@ -616,6 +680,7 @@ namespace Client62
ENCODE(OP_ReadBook) ENCODE(OP_ReadBook)
{ {
// no apparent slot translation needed -U
EQApplicationPacket *in = *p; EQApplicationPacket *in = *p;
*p = nullptr; *p = nullptr;
@ -732,6 +797,19 @@ namespace Client62
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_ShopPlayerSell)
{
ENCODE_LENGTH_EXACT(Merchant_Purchase_Struct);
SETUP_DIRECT_ENCODE(Merchant_Purchase_Struct, structs::Merchant_Purchase_Struct);
OUT(npcid);
eq->itemslot = ServerToClient62Slot(emu->itemslot);
OUT(quantity);
OUT(price);
FINISH_ENCODE();
}
ENCODE(OP_Track) ENCODE(OP_Track)
{ {
EQApplicationPacket *in = *p; EQApplicationPacket *in = *p;
@ -764,6 +842,19 @@ namespace Client62
dest->FastQueuePacket(&in, ack_req); dest->FastQueuePacket(&in, ack_req);
} }
ENCODE(OP_TributeItem)
{
ENCODE_LENGTH_EXACT(TributeItem_Struct);
SETUP_DIRECT_ENCODE(TributeItem_Struct, structs::TributeItem_Struct);
eq->slot = ServerToClient62Slot(emu->slot);
OUT(quantity);
OUT(tribute_master_id);
OUT(tribute_points);
FINISH_ENCODE();
}
ENCODE(OP_WearChange) ENCODE(OP_WearChange)
{ {
ENCODE_LENGTH_EXACT(WearChange_Struct); ENCODE_LENGTH_EXACT(WearChange_Struct);
@ -875,6 +966,59 @@ namespace Client62
} }
// DECODE methods // DECODE methods
DECODE(OP_AdventureMerchantSell)
{
DECODE_LENGTH_EXACT(structs::Adventure_Sell_Struct);
SETUP_DIRECT_DECODE(Adventure_Sell_Struct, structs::Adventure_Sell_Struct);
IN(npcid);
emu->slot = Client62ToServerSlot(eq->slot);
IN(charges);
IN(sell_price);
FINISH_DIRECT_DECODE();
}
DECODE(OP_ApplyPoison)
{
DECODE_LENGTH_EXACT(structs::ApplyPoison_Struct);
SETUP_DIRECT_DECODE(ApplyPoison_Struct, structs::ApplyPoison_Struct);
emu->inventorySlot = Client62ToServerSlot(eq->inventorySlot);
IN(success);
FINISH_DIRECT_DECODE();
}
#if 0
// needs to be tested (and OpCode found)
DECODE(OP_AugmentInfo) { DECODE_FORWARD(OP_ReadBook); }
#endif
DECODE(OP_AugmentItem)
{
DECODE_LENGTH_EXACT(structs::AugmentItem_Struct);
SETUP_DIRECT_DECODE(AugmentItem_Struct, structs::AugmentItem_Struct);
emu->container_slot = Client62ToServerSlot(eq->container_slot);
emu->augment_slot = eq->augment_slot;
FINISH_DIRECT_DECODE();
}
DECODE(OP_CastSpell)
{
DECODE_LENGTH_EXACT(structs::CastSpell_Struct);
SETUP_DIRECT_DECODE(CastSpell_Struct, structs::CastSpell_Struct);
IN(slot);
IN(spell_id);
emu->inventoryslot = Client62ToServerSlot(eq->inventoryslot);
IN(target_id);
FINISH_DIRECT_DECODE();
}
DECODE(OP_CharacterCreate) DECODE(OP_CharacterCreate)
{ {
DECODE_LENGTH_EXACT(structs::CharCreate_Struct); DECODE_LENGTH_EXACT(structs::CharCreate_Struct);
@ -903,6 +1047,30 @@ namespace Client62
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_Consume)
{
DECODE_LENGTH_EXACT(structs::Consume_Struct);
SETUP_DIRECT_DECODE(Consume_Struct, structs::Consume_Struct);
emu->slot = Client62ToServerSlot(eq->slot);
IN(auto_consumed);
IN(type);
FINISH_DIRECT_DECODE();
}
DECODE(OP_DeleteItem)
{
DECODE_LENGTH_EXACT(structs::DeleteItem_Struct);
SETUP_DIRECT_DECODE(DeleteItem_Struct, structs::DeleteItem_Struct);
emu->from_slot = Client62ToServerSlot(eq->from_slot);
emu->to_slot = Client62ToServerSlot(eq->to_slot);
IN(number_in_stack);
FINISH_DIRECT_DECODE();
}
DECODE(OP_FaceChange) DECODE(OP_FaceChange)
{ {
DECODE_LENGTH_EXACT(structs::FaceChange_Struct); DECODE_LENGTH_EXACT(structs::FaceChange_Struct);
@ -935,8 +1103,36 @@ namespace Client62
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_LootItem)
{
DECODE_LENGTH_EXACT(structs::LootingItem_Struct);
SETUP_DIRECT_DECODE(LootingItem_Struct, structs::LootingItem_Struct);
IN(lootee);
IN(looter);
emu->slot_id = eq->slot_id;
IN(auto_loot);
FINISH_DIRECT_DECODE();
}
DECODE(OP_MoveItem)
{
DECODE_LENGTH_EXACT(structs::MoveItem_Struct);
SETUP_DIRECT_DECODE(MoveItem_Struct, structs::MoveItem_Struct);
_log(NET__ERROR, "Moved item from %u to %u", eq->from_slot, eq->to_slot);
emu->from_slot = Client62ToServerSlot(eq->from_slot);
emu->to_slot = Client62ToServerSlot(eq->to_slot);
IN(number_in_stack);
FINISH_DIRECT_DECODE();
}
DECODE(OP_ReadBook) DECODE(OP_ReadBook)
{ {
// no apparent slot translation needed -U
DECODE_LENGTH_ATLEAST(structs::BookRequest_Struct); DECODE_LENGTH_ATLEAST(structs::BookRequest_Struct);
SETUP_DIRECT_DECODE(BookRequest_Struct, structs::BookRequest_Struct); SETUP_DIRECT_DECODE(BookRequest_Struct, structs::BookRequest_Struct);
@ -964,6 +1160,43 @@ namespace Client62
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_ShopPlayerSell)
{
DECODE_LENGTH_EXACT(structs::Merchant_Purchase_Struct);
SETUP_DIRECT_DECODE(Merchant_Purchase_Struct, structs::Merchant_Purchase_Struct);
IN(npcid);
emu->itemslot = Client62ToServerSlot(eq->itemslot);
IN(quantity);
IN(price);
FINISH_DIRECT_DECODE();
}
DECODE(OP_TradeSkillCombine)
{
DECODE_LENGTH_EXACT(structs::NewCombine_Struct);
SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct);
emu->container_slot = Client62ToServerSlot(eq->container_slot);
IN(guildtribute_slot);
FINISH_DIRECT_DECODE();
}
DECODE(OP_TributeItem)
{
DECODE_LENGTH_EXACT(structs::TributeItem_Struct);
SETUP_DIRECT_DECODE(TributeItem_Struct, structs::TributeItem_Struct);
emu->slot = Client62ToServerSlot(eq->slot);
IN(quantity);
IN(tribute_master_id);
IN(tribute_points);
FINISH_DIRECT_DECODE();
}
DECODE(OP_WearChange) DECODE(OP_WearChange)
{ {
DECODE_LENGTH_EXACT(structs::WearChange_Struct); DECODE_LENGTH_EXACT(structs::WearChange_Struct);
@ -992,13 +1225,14 @@ namespace Client62
} }
// file scope helper methods // file scope helper methods
char *SerializeItem(const ItemInst *inst, int16 slot_id, uint32 *length, uint8 depth) char *SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint8 depth)
{ {
char *serialization = nullptr; char *serialization = nullptr;
char *instance = nullptr; char *instance = nullptr;
const char *protection = (const char *)"\\\\\\\\\\"; const char *protection = (const char *)"\\\\\\\\\\";
char *sub_items[10] = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr }; char *sub_items[10] = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
bool stackable = inst->IsStackable(); bool stackable = inst->IsStackable();
int16 slot_id = ServerToClient62Slot(slot_id_in);
uint32 merchant_slot = inst->GetMerchantSlot(); uint32 merchant_slot = inst->GetMerchantSlot();
int16 charges = inst->GetCharges(); int16 charges = inst->GetCharges();
const Item_Struct *item = inst->GetItem(); const Item_Struct *item = inst->GetItem();
@ -1009,7 +1243,8 @@ namespace Client62
"%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|", "%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|",
stackable ? charges : 1, stackable ? charges : 1,
0, 0,
(merchant_slot == 0) ? slot_id : merchant_slot, //(merchant_slot == 0) ? slot_id : merchant_slot, // change when translator activated
(merchant_slot == 0) ? slot_id_in : merchant_slot,
inst->GetPrice(), inst->GetPrice(),
(merchant_slot == 0) ? 1 : inst->GetMerchantCount(), (merchant_slot == 0) ? 1 : inst->GetMerchantCount(),
0, 0,
@ -1075,22 +1310,30 @@ namespace Client62
return serialization; return serialization;
} }
static inline uint32 ServerToClient62Slot(uint32 ServerSlot) static inline int16 ServerToClient62Slot(uint32 ServerSlot)
{ {
//uint32 Client62Slot; //int16 Client62Slot;
if (ServerSlot == INVALID_INDEX)
return INVALID_INDEX;
return ServerSlot; // deprecated
} }
static inline uint32 ServerToClient62CorpseSlot(uint32 ServerCorpse) static inline int16 ServerToClient62CorpseSlot(uint32 ServerCorpse)
{ {
//uint32 Client62Corpse; //int16 Client62Corpse;
} }
static inline uint32 Client62ToServerSlot(uint32 Client62Slot) static inline uint32 Client62ToServerSlot(int16 Client62Slot)
{ {
//uint32 ServerSlot; //uint32 ServerSlot;
if (Client62Slot == INVALID_INDEX)
return INVALID_INDEX;
return Client62Slot; // deprecated
} }
static inline uint32 Client62ToServerCorpseSlot(uint32 Client62Corpse) static inline uint32 Client62ToServerCorpseSlot(int16 Client62Corpse)
{ {
//uint32 ServerCorpse; //uint32 ServerCorpse;
} }

View File

@ -1,8 +1,12 @@
// out-going packets that require an ENCODE translation: // out-going packets that require an ENCODE translation:
E(OP_Action) E(OP_Action)
E(OP_AdventureMerchantSell)
E(OP_ApplyPoison)
E(OP_BazaarSearch) E(OP_BazaarSearch)
E(OP_BecomeTrader) E(OP_BecomeTrader)
E(OP_CharInventory) E(OP_CharInventory)
E(OP_DeleteCharge)
E(OP_DeleteItem)
E(OP_DeleteSpawn) E(OP_DeleteSpawn)
E(OP_GuildMemberLevelUpdate) E(OP_GuildMemberLevelUpdate)
E(OP_GuildMemberList) E(OP_GuildMemberList)
@ -10,6 +14,8 @@ E(OP_Illusion)
E(OP_ItemLinkResponse) E(OP_ItemLinkResponse)
E(OP_ItemPacket) E(OP_ItemPacket)
E(OP_LeadershipExpUpdate) E(OP_LeadershipExpUpdate)
E(OP_LootItem)
E(OP_MoveItem)
E(OP_NewSpawn) E(OP_NewSpawn)
E(OP_OnLevelMessage) E(OP_OnLevelMessage)
E(OP_PetBuffWindow) E(OP_PetBuffWindow)
@ -18,17 +24,31 @@ E(OP_ReadBook)
E(OP_RespondAA) E(OP_RespondAA)
E(OP_SendAATable) E(OP_SendAATable)
E(OP_SendCharInfo) E(OP_SendCharInfo)
E(OP_ShopPlayerSell)
E(OP_Track) E(OP_Track)
E(OP_TributeItem)
E(OP_WearChange) E(OP_WearChange)
E(OP_ZoneEntry) E(OP_ZoneEntry)
E(OP_ZoneServerReady) E(OP_ZoneServerReady)
E(OP_ZoneSpawns) E(OP_ZoneSpawns)
// incoming packets that require a DECODE translation: // incoming packets that require a DECODE translation:
D(OP_AdventureMerchantSell)
D(OP_ApplyPoison)
//D(OP_AugmentInfo) - needs opcode for conf file update
D(OP_AugmentItem)
D(OP_CastSpell)
D(OP_CharacterCreate) D(OP_CharacterCreate)
D(OP_Consume)
D(OP_DeleteItem)
D(OP_FaceChange) D(OP_FaceChange)
D(OP_ItemLinkClick) D(OP_ItemLinkClick)
D(OP_LootItem)
D(OP_MoveItem)
D(OP_ReadBook) D(OP_ReadBook)
D(OP_SetServerFilter) D(OP_SetServerFilter)
D(OP_ShopPlayerSell)
D(OP_TradeSkillCombine)
D(OP_TributeItem)
D(OP_WearChange) D(OP_WearChange)
D(OP_WhoAllRequest) D(OP_WhoAllRequest)
#undef E #undef E

View File

@ -1155,12 +1155,20 @@ struct Consume_Struct
/*0013*/ uint8 unknown13[3]; /*0013*/ uint8 unknown13[3];
}; };
struct DeleteItem_Struct
{
/*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack;
/*0012*/
};
struct MoveItem_Struct struct MoveItem_Struct
{ {
/*0000*/ uint32 from_slot; /*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot; /*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack; /*0008*/ uint32 number_in_stack;
/*0012*/
}; };
// //
@ -1362,12 +1370,6 @@ struct CombatAbility_Struct {
uint32 m_skill; uint32 m_skill;
}; };
struct DeleteItem_Struct {
/*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack;
};
//Instill Doubt //Instill Doubt
struct Instill_Doubt_Struct { struct Instill_Doubt_Struct {
uint8 i_id; uint8 i_id;
@ -1521,6 +1523,14 @@ struct Adventure_Purchase_Struct {
/*008*/ uint32 variable; /*008*/ uint32 variable;
}; };
struct Adventure_Sell_Struct {
/*000*/ uint32 unknown000; //0x01
/*004*/ uint32 npcid;
/*008*/ uint32 slot;
/*012*/ uint32 charges;
/*016*/ uint32 sell_price;
};
struct AdventurePoints_Update_Struct { struct AdventurePoints_Update_Struct {
/*000*/ uint32 ldon_available_points; // Total available points /*000*/ uint32 ldon_available_points; // Total available points
/*004*/ uint8 unkown_apu004[20]; /*004*/ uint8 unkown_apu004[20];
@ -2563,7 +2573,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };
@ -3076,6 +3086,11 @@ struct AnnoyingZoneUnknown_Struct {
uint32 value; //always 4 uint32 value; //always 4
}; };
struct ApplyPoison_Struct {
uint32 inventorySlot;
uint32 success;
};
struct GuildMemberUpdate_Struct { struct GuildMemberUpdate_Struct {
/*00*/ uint32 guild_id; //not sure /*00*/ uint32 guild_id; //not sure
/*04*/ char member_name[64]; /*04*/ char member_name[64];

View File

@ -4671,6 +4671,7 @@ namespace RoF
slot_id = legacy::SLOT_TRADESKILL; // 1000 slot_id = legacy::SLOT_TRADESKILL; // 1000
} }
emu->container_slot = slot_id; emu->container_slot = slot_id;
emu->guildtribute_slot = RoFToServerSlot(eq->guildtribute_slot); // this should only return INVALID_INDEX until implemented -U
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
@ -5498,6 +5499,10 @@ namespace RoF
ServerSlot = TempSlot; ServerSlot = TempSlot;
}*/ }*/
else if (RoFSlot.SlotType == maps::MapGuildTribute) {
ServerSlot = INVALID_INDEX;
}
_log(NET__ERROR, "Convert RoF Slots: Type %i, Unk2 %i, Main %i, Sub %i, Aug %i, Unk1 %i to Server Slot %i", RoFSlot.SlotType, RoFSlot.Unknown02, RoFSlot.MainSlot, RoFSlot.SubSlot, RoFSlot.AugSlot, RoFSlot.Unknown01, ServerSlot); _log(NET__ERROR, "Convert RoF Slots: Type %i, Unk2 %i, Main %i, Sub %i, Aug %i, Unk1 %i to Server Slot %i", RoFSlot.SlotType, RoFSlot.Unknown02, RoFSlot.MainSlot, RoFSlot.SubSlot, RoFSlot.AugSlot, RoFSlot.Unknown01, ServerSlot);
return ServerSlot; return ServerSlot;

View File

@ -1712,16 +1712,16 @@ struct ItemProperties_Struct {
struct DeleteItem_Struct { struct DeleteItem_Struct {
/*0000*/ ItemSlotStruct from_slot; /*0000*/ ItemSlotStruct from_slot;
/*0004*/ ItemSlotStruct to_slot; /*0012*/ ItemSlotStruct to_slot;
/*0008*/ uint32 number_in_stack; /*0024*/ uint32 number_in_stack;
/*0012*/ /*0028*/
}; };
struct MoveItem_Struct { struct MoveItem_Struct {
/*0000*/ ItemSlotStruct from_slot; /*0000*/ ItemSlotStruct from_slot;
/*0004*/ ItemSlotStruct to_slot; /*0012*/ ItemSlotStruct to_slot;
/*0008*/ uint32 number_in_stack; /*0024*/ uint32 number_in_stack;
/*0012*/ /*0028*/
}; };
// //
@ -3527,7 +3527,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ ItemSlotStruct container_slot; /*00*/ ItemSlotStruct container_slot;
/*12*/ ItemSlotStruct unknown_slot; // Slot type is 8? /*12*/ ItemSlotStruct guildtribute_slot; // Slot type is 8? (MapGuildTribute = 8 -U)
/*24*/ /*24*/
}; };

View File

@ -3074,6 +3074,7 @@ namespace SoD
SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct); SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct);
emu->container_slot = SoDToServerSlot(eq->container_slot); emu->container_slot = SoDToServerSlot(eq->container_slot);
IN(guildtribute_slot);
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }

View File

@ -3129,7 +3129,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };

View File

@ -2398,6 +2398,7 @@ namespace SoF
SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct); SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct);
emu->container_slot = SoFToServerSlot(eq->container_slot); emu->container_slot = SoFToServerSlot(eq->container_slot);
IN(guildtribute_slot);
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }

View File

@ -2992,7 +2992,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };

View File

@ -18,15 +18,15 @@ namespace Titanium
static OpcodeManager *opcodes = nullptr; static OpcodeManager *opcodes = nullptr;
static Strategy struct_strategy; static Strategy struct_strategy;
char* SerializeItem(const ItemInst *inst, int16 slot_id, uint32 *length, uint8 depth); char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint8 depth);
// server to client inventory location converters // server to client inventory location converters
static inline uint32 ServerToTitaniumSlot(uint32 ServerSlot); static inline int16 ServerToTitaniumSlot(uint32 ServerSlot);
static inline uint32 ServerToTitaniumCorpseSlot(uint32 ServerCorpse); static inline int16 ServerToTitaniumCorpseSlot(uint32 ServerCorpse);
// client to server inventory location converters // client to server inventory location converters
static inline uint32 TitaniumToServerSlot(uint32 TitaniumSlot); static inline uint32 TitaniumToServerSlot(int16 TitaniumSlot);
static inline uint32 TitaniumToServerCorpseSlot(uint32 TitaniumCorpse); static inline uint32 TitaniumToServerCorpseSlot(int16 TitaniumCorpse);
void Register(EQStreamIdentifier &into) void Register(EQStreamIdentifier &into)
{ {
@ -133,6 +133,31 @@ namespace Titanium
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_AdventureMerchantSell)
{
ENCODE_LENGTH_EXACT(Adventure_Sell_Struct);
SETUP_DIRECT_ENCODE(Adventure_Sell_Struct, structs::Adventure_Sell_Struct);
eq->unknown000 = 1;
OUT(npcid);
eq->slot = ServerToTitaniumSlot(emu->slot);
OUT(charges);
OUT(sell_price);
FINISH_ENCODE();
}
ENCODE(OP_ApplyPoison)
{
ENCODE_LENGTH_EXACT(ApplyPoison_Struct);
SETUP_DIRECT_ENCODE(ApplyPoison_Struct, structs::ApplyPoison_Struct);
eq->inventorySlot = ServerToTitaniumSlot(emu->inventorySlot);
OUT(success);
FINISH_ENCODE();
}
ENCODE(OP_BazaarSearch) ENCODE(OP_BazaarSearch)
{ {
if (((*p)->size == sizeof(BazaarReturnDone_Struct)) || ((*p)->size == sizeof(BazaarWelcome_Struct))) { if (((*p)->size == sizeof(BazaarReturnDone_Struct)) || ((*p)->size == sizeof(BazaarWelcome_Struct))) {
@ -237,6 +262,20 @@ namespace Titanium
dest->FastQueuePacket(&in, ack_req); dest->FastQueuePacket(&in, ack_req);
} }
ENCODE(OP_DeleteCharge) { ENCODE_FORWARD(OP_MoveItem); }
ENCODE(OP_DeleteItem)
{
ENCODE_LENGTH_EXACT(DeleteItem_Struct);
SETUP_DIRECT_ENCODE(DeleteItem_Struct, structs::DeleteItem_Struct);
eq->from_slot = ServerToTitaniumSlot(emu->from_slot);
eq->to_slot = ServerToTitaniumSlot(emu->to_slot);
OUT(number_in_stack);
FINISH_ENCODE();
}
ENCODE(OP_DeleteSpawn) ENCODE(OP_DeleteSpawn)
{ {
SETUP_DIRECT_ENCODE(DeleteSpawn_Struct, structs::DeleteSpawn_Struct); SETUP_DIRECT_ENCODE(DeleteSpawn_Struct, structs::DeleteSpawn_Struct);
@ -608,6 +647,31 @@ namespace Titanium
delete in; delete in;
} }
ENCODE(OP_LootItem)
{
ENCODE_LENGTH_EXACT(LootingItem_Struct);
SETUP_DIRECT_ENCODE(LootingItem_Struct, structs::LootingItem_Struct);
OUT(lootee);
OUT(looter);
eq->slot_id = emu->slot_id;
OUT(auto_loot);
FINISH_ENCODE();
}
ENCODE(OP_MoveItem)
{
ENCODE_LENGTH_EXACT(MoveItem_Struct);
SETUP_DIRECT_ENCODE(MoveItem_Struct, structs::MoveItem_Struct);
eq->from_slot = ServerToTitaniumSlot(emu->from_slot);
eq->to_slot = ServerToTitaniumSlot(emu->to_slot);
OUT(number_in_stack);
FINISH_ENCODE();
}
ENCODE(OP_NewSpawn) { ENCODE_FORWARD(OP_ZoneSpawns); } ENCODE(OP_NewSpawn) { ENCODE_FORWARD(OP_ZoneSpawns); }
ENCODE(OP_OnLevelMessage) ENCODE(OP_OnLevelMessage)
@ -870,6 +934,7 @@ namespace Titanium
ENCODE(OP_ReadBook) ENCODE(OP_ReadBook)
{ {
// no apparent slot translation needed -U
EQApplicationPacket *in = *p; EQApplicationPacket *in = *p;
*p = nullptr; *p = nullptr;
@ -992,6 +1057,19 @@ namespace Titanium
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_ShopPlayerSell)
{
ENCODE_LENGTH_EXACT(Merchant_Purchase_Struct);
SETUP_DIRECT_ENCODE(Merchant_Purchase_Struct, structs::Merchant_Purchase_Struct);
OUT(npcid);
eq->itemslot = ServerToTitaniumSlot(emu->itemslot);
OUT(quantity);
OUT(price);
FINISH_ENCODE();
}
ENCODE(OP_Track) ENCODE(OP_Track)
{ {
EQApplicationPacket *in = *p; EQApplicationPacket *in = *p;
@ -1052,6 +1130,19 @@ namespace Titanium
FINISH_ENCODE(); FINISH_ENCODE();
} }
ENCODE(OP_TributeItem)
{
ENCODE_LENGTH_EXACT(TributeItem_Struct);
SETUP_DIRECT_ENCODE(TributeItem_Struct, structs::TributeItem_Struct);
eq->slot = ServerToTitaniumSlot(emu->slot);
OUT(quantity);
OUT(tribute_master_id);
OUT(tribute_points);
FINISH_ENCODE();
}
ENCODE(OP_VetRewardsAvaliable) ENCODE(OP_VetRewardsAvaliable)
{ {
EQApplicationPacket *inapp = *p; EQApplicationPacket *inapp = *p;
@ -1232,6 +1323,57 @@ namespace Titanium
} }
// DECODE methods // DECODE methods
DECODE(OP_AdventureMerchantSell)
{
DECODE_LENGTH_EXACT(structs::Adventure_Sell_Struct);
SETUP_DIRECT_DECODE(Adventure_Sell_Struct, structs::Adventure_Sell_Struct);
IN(npcid);
emu->slot = TitaniumToServerSlot(eq->slot);
IN(charges);
IN(sell_price);
FINISH_DIRECT_DECODE();
}
DECODE(OP_ApplyPoison)
{
DECODE_LENGTH_EXACT(structs::ApplyPoison_Struct);
SETUP_DIRECT_DECODE(ApplyPoison_Struct, structs::ApplyPoison_Struct);
emu->inventorySlot = TitaniumToServerSlot(eq->inventorySlot);
IN(success);
FINISH_DIRECT_DECODE();
}
// needs to be tested
DECODE(OP_AugmentInfo) { DECODE_FORWARD(OP_ReadBook); }
DECODE(OP_AugmentItem)
{
DECODE_LENGTH_EXACT(structs::AugmentItem_Struct);
SETUP_DIRECT_DECODE(AugmentItem_Struct, structs::AugmentItem_Struct);
emu->container_slot = TitaniumToServerSlot(eq->container_slot);
emu->augment_slot = eq->augment_slot;
FINISH_DIRECT_DECODE();
}
DECODE(OP_CastSpell)
{
DECODE_LENGTH_EXACT(structs::CastSpell_Struct);
SETUP_DIRECT_DECODE(CastSpell_Struct, structs::CastSpell_Struct);
IN(slot);
IN(spell_id);
emu->inventoryslot = TitaniumToServerSlot(eq->inventoryslot);
IN(target_id);
FINISH_DIRECT_DECODE();
}
DECODE(OP_CharacterCreate) DECODE(OP_CharacterCreate)
{ {
DECODE_LENGTH_EXACT(structs::CharCreate_Struct); DECODE_LENGTH_EXACT(structs::CharCreate_Struct);
@ -1260,6 +1402,30 @@ namespace Titanium
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_Consume)
{
DECODE_LENGTH_EXACT(structs::Consume_Struct);
SETUP_DIRECT_DECODE(Consume_Struct, structs::Consume_Struct);
emu->slot = TitaniumToServerSlot(eq->slot);
IN(auto_consumed);
IN(type);
FINISH_DIRECT_DECODE();
}
DECODE(OP_DeleteItem)
{
DECODE_LENGTH_EXACT(structs::DeleteItem_Struct);
SETUP_DIRECT_DECODE(DeleteItem_Struct, structs::DeleteItem_Struct);
emu->from_slot = TitaniumToServerSlot(eq->from_slot);
emu->to_slot =TitaniumToServerSlot(eq->to_slot);
IN(number_in_stack);
FINISH_DIRECT_DECODE();
}
DECODE(OP_FaceChange) DECODE(OP_FaceChange)
{ {
DECODE_LENGTH_EXACT(structs::FaceChange_Struct); DECODE_LENGTH_EXACT(structs::FaceChange_Struct);
@ -1347,8 +1513,36 @@ namespace Titanium
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_LootItem)
{
DECODE_LENGTH_EXACT(structs::LootingItem_Struct);
SETUP_DIRECT_DECODE(LootingItem_Struct, structs::LootingItem_Struct);
IN(lootee);
IN(looter);
emu->slot_id = eq->slot_id;
IN(auto_loot);
FINISH_DIRECT_DECODE();
}
DECODE(OP_MoveItem)
{
DECODE_LENGTH_EXACT(structs::MoveItem_Struct);
SETUP_DIRECT_DECODE(MoveItem_Struct, structs::MoveItem_Struct);
_log(NET__ERROR, "Moved item from %u to %u", eq->from_slot, eq->to_slot);
emu->from_slot = TitaniumToServerSlot(eq->from_slot);
emu->to_slot = TitaniumToServerSlot(eq->to_slot);
IN(number_in_stack);
FINISH_DIRECT_DECODE();
}
DECODE(OP_ReadBook) DECODE(OP_ReadBook)
{ {
// no apparent slot translation needed -U
DECODE_LENGTH_ATLEAST(structs::BookRequest_Struct); DECODE_LENGTH_ATLEAST(structs::BookRequest_Struct);
SETUP_DIRECT_DECODE(BookRequest_Struct, structs::BookRequest_Struct); SETUP_DIRECT_DECODE(BookRequest_Struct, structs::BookRequest_Struct);
@ -1372,6 +1566,19 @@ namespace Titanium
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_ShopPlayerSell)
{
DECODE_LENGTH_EXACT(structs::Merchant_Purchase_Struct);
SETUP_DIRECT_DECODE(Merchant_Purchase_Struct, structs::Merchant_Purchase_Struct);
IN(npcid);
emu->itemslot = TitaniumToServerSlot(eq->itemslot);
IN(quantity);
IN(price);
FINISH_DIRECT_DECODE();
}
DECODE(OP_TraderBuy) DECODE(OP_TraderBuy)
{ {
DECODE_LENGTH_EXACT(structs::TraderBuy_Struct); DECODE_LENGTH_EXACT(structs::TraderBuy_Struct);
@ -1388,6 +1595,30 @@ namespace Titanium
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }
DECODE(OP_TradeSkillCombine)
{
DECODE_LENGTH_EXACT(structs::NewCombine_Struct);
SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct);
emu->container_slot = TitaniumToServerSlot(eq->container_slot);
IN(guildtribute_slot);
FINISH_DIRECT_DECODE();
}
DECODE(OP_TributeItem)
{
DECODE_LENGTH_EXACT(structs::TributeItem_Struct);
SETUP_DIRECT_DECODE(TributeItem_Struct, structs::TributeItem_Struct);
emu->slot = TitaniumToServerSlot(eq->slot);
IN(quantity);
IN(tribute_master_id);
IN(tribute_points);
FINISH_DIRECT_DECODE();
}
DECODE(OP_WearChange) DECODE(OP_WearChange)
{ {
DECODE_LENGTH_EXACT(structs::WearChange_Struct); DECODE_LENGTH_EXACT(structs::WearChange_Struct);
@ -1422,13 +1653,14 @@ namespace Titanium
} }
// file scope helper methods // file scope helper methods
char *SerializeItem(const ItemInst *inst, int16 slot_id, uint32 *length, uint8 depth) char *SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint8 depth)
{ {
char *serialization = nullptr; char *serialization = nullptr;
char *instance = nullptr; char *instance = nullptr;
const char *protection = (const char *)"\\\\\\\\\\"; const char *protection = (const char *)"\\\\\\\\\\";
char *sub_items[10] = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr }; char *sub_items[10] = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
bool stackable = inst->IsStackable(); bool stackable = inst->IsStackable();
int16 slot_id = ServerToTitaniumSlot(slot_id_in);
uint32 merchant_slot = inst->GetMerchantSlot(); uint32 merchant_slot = inst->GetMerchantSlot();
int16 charges = inst->GetCharges(); int16 charges = inst->GetCharges();
const Item_Struct *item = inst->GetItem(); const Item_Struct *item = inst->GetItem();
@ -1439,7 +1671,8 @@ namespace Titanium
"%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|", "%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|%i|",
stackable ? charges : 0, stackable ? charges : 0,
0, 0,
(merchant_slot == 0) ? slot_id : merchant_slot, //(merchant_slot == 0) ? slot_id : merchant_slot, // change when translator activated
(merchant_slot == 0) ? slot_id_in : merchant_slot,
inst->GetPrice(), inst->GetPrice(),
(merchant_slot == 0) ? 1 : inst->GetMerchantCount(), (merchant_slot == 0) ? 1 : inst->GetMerchantCount(),
0, 0,
@ -1503,22 +1736,30 @@ namespace Titanium
return serialization; return serialization;
} }
static inline uint32 ServerToTitaniumSlot(uint32 ServerSlot) static inline int16 ServerToTitaniumSlot(uint32 ServerSlot)
{ {
//uint32 TitaniumSlot; //int16 TitaniumSlot;
if (ServerSlot == INVALID_INDEX)
return INVALID_INDEX;
return ServerSlot; // deprecated
} }
static inline uint32 ServerToTitaniumCorpseSlot(uint32 ServerCorpse) static inline int16 ServerToTitaniumCorpseSlot(uint32 ServerCorpse)
{ {
//uint32 TitaniumCorpse; //int16 TitaniumCorpse;
} }
static inline uint32 TitaniumToServerSlot(uint32 TitaniumSlot) static inline uint32 TitaniumToServerSlot(int16 TitaniumSlot)
{ {
//uint32 ServerSlot; //uint32 ServerSlot;
if (TitaniumSlot == INVALID_INDEX)
return INVALID_INDEX;
return TitaniumSlot; // deprecated
} }
static inline uint32 TitaniumToServerCorpseSlot(uint32 TitaniumCorpse) static inline uint32 TitaniumToServerCorpseSlot(int16 TitaniumCorpse)
{ {
//uint32 ServerCorpse; //uint32 ServerCorpse;
} }

View File

@ -1,8 +1,12 @@
// out-going packets that require an ENCODE translation: // out-going packets that require an ENCODE translation:
E(OP_Action) E(OP_Action)
E(OP_AdventureMerchantSell)
E(OP_ApplyPoison)
E(OP_BazaarSearch) E(OP_BazaarSearch)
E(OP_BecomeTrader) E(OP_BecomeTrader)
E(OP_CharInventory) E(OP_CharInventory)
E(OP_DeleteCharge)
E(OP_DeleteItem)
E(OP_DeleteSpawn) E(OP_DeleteSpawn)
E(OP_DzCompass) E(OP_DzCompass)
E(OP_DzExpeditionEndsWarning) E(OP_DzExpeditionEndsWarning)
@ -20,6 +24,8 @@ E(OP_ItemLinkResponse)
E(OP_ItemPacket) E(OP_ItemPacket)
E(OP_LeadershipExpUpdate) E(OP_LeadershipExpUpdate)
E(OP_LFGuild) E(OP_LFGuild)
E(OP_LootItem)
E(OP_MoveItem)
E(OP_OnLevelMessage) E(OP_OnLevelMessage)
E(OP_PetBuffWindow) E(OP_PetBuffWindow)
E(OP_PlayerProfile) E(OP_PlayerProfile)
@ -28,24 +34,38 @@ E(OP_ReadBook)
E(OP_RespondAA) E(OP_RespondAA)
E(OP_SendCharInfo) E(OP_SendCharInfo)
E(OP_SendAATable) E(OP_SendAATable)
E(OP_ShopPlayerSell)
E(OP_Track) E(OP_Track)
E(OP_Trader) E(OP_Trader)
E(OP_TraderBuy) E(OP_TraderBuy)
E(OP_TributeItem)
E(OP_VetRewardsAvaliable) E(OP_VetRewardsAvaliable)
E(OP_WearChange) E(OP_WearChange)
E(OP_ZoneEntry) E(OP_ZoneEntry)
E(OP_ZoneServerReady) E(OP_ZoneServerReady)
E(OP_ZoneSpawns) E(OP_ZoneSpawns)
// incoming packets that require a DECODE translation: // incoming packets that require a DECODE translation:
D(OP_AdventureMerchantSell)
D(OP_ApplyPoison)
D(OP_AugmentInfo)
D(OP_AugmentItem)
D(OP_CastSpell)
D(OP_CharacterCreate) D(OP_CharacterCreate)
D(OP_Consume)
D(OP_DeleteItem)
D(OP_FaceChange) D(OP_FaceChange)
D(OP_InspectAnswer) D(OP_InspectAnswer)
D(OP_InspectRequest) D(OP_InspectRequest)
D(OP_ItemLinkClick) D(OP_ItemLinkClick)
D(OP_LFGuild) D(OP_LFGuild)
D(OP_LootItem)
D(OP_MoveItem)
D(OP_ReadBook) D(OP_ReadBook)
D(OP_SetServerFilter) D(OP_SetServerFilter)
D(OP_ShopPlayerSell)
D(OP_TraderBuy) D(OP_TraderBuy)
D(OP_TradeSkillCombine)
D(OP_TributeItem)
D(OP_WearChange) D(OP_WearChange)
D(OP_WhoAllRequest) D(OP_WhoAllRequest)
#undef E #undef E

View File

@ -1224,12 +1224,20 @@ struct Consume_Struct
/*0013*/ uint8 unknown13[3]; /*0013*/ uint8 unknown13[3];
}; };
struct DeleteItem_Struct
{
/*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack;
/*0012*/
};
struct MoveItem_Struct struct MoveItem_Struct
{ {
/*0000*/ uint32 from_slot; /*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot; /*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack; /*0008*/ uint32 number_in_stack;
/*0012*/
}; };
// //
@ -1431,12 +1439,6 @@ struct CombatAbility_Struct {
uint32 m_skill; uint32 m_skill;
}; };
struct DeleteItem_Struct {
/*0000*/ uint32 from_slot;
/*0004*/ uint32 to_slot;
/*0008*/ uint32 number_in_stack;
};
//Instill Doubt //Instill Doubt
struct Instill_Doubt_Struct { struct Instill_Doubt_Struct {
uint8 i_id; uint8 i_id;
@ -1590,6 +1592,14 @@ struct Adventure_Purchase_Struct {
/*008*/ uint32 variable; /*008*/ uint32 variable;
}; };
struct Adventure_Sell_Struct {
/*000*/ uint32 unknown000; //0x01
/*004*/ uint32 npcid;
/*008*/ uint32 slot;
/*012*/ uint32 charges;
/*016*/ uint32 sell_price;
};
struct AdventurePoints_Update_Struct { struct AdventurePoints_Update_Struct {
/*000*/ uint32 ldon_available_points; // Total available points /*000*/ uint32 ldon_available_points; // Total available points
/*004*/ uint8 unkown_apu004[20]; /*004*/ uint8 unkown_apu004[20];
@ -2622,7 +2632,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };
@ -3154,6 +3164,11 @@ struct AnnoyingZoneUnknown_Struct {
uint32 value; //always 4 uint32 value; //always 4
}; };
struct ApplyPoison_Struct {
uint32 inventorySlot;
uint32 success;
};
struct GuildMemberUpdate_Struct { struct GuildMemberUpdate_Struct {
/*000*/ uint32 guild_id; //not sure /*000*/ uint32 guild_id; //not sure
/*004*/ char member_name[64]; /*004*/ char member_name[64];

View File

@ -3472,6 +3472,7 @@ namespace Underfoot
SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct); SETUP_DIRECT_DECODE(NewCombine_Struct, structs::NewCombine_Struct);
emu->container_slot = UnderfootToServerSlot(eq->container_slot); emu->container_slot = UnderfootToServerSlot(eq->container_slot);
IN(guildtribute_slot);
FINISH_DIRECT_DECODE(); FINISH_DIRECT_DECODE();
} }

View File

@ -3168,7 +3168,7 @@ struct Split_Struct
*/ */
struct NewCombine_Struct { struct NewCombine_Struct {
/*00*/ int16 container_slot; /*00*/ int16 container_slot;
/*02*/ char unknown02[2]; /*02*/ int16 guildtribute_slot;
/*04*/ /*04*/
}; };