Initial MSVC 2008 projects workspace
This commit is contained in:
41
l2ooghelper/packet_handlers/ph_RecipeShopManageList.cpp
Normal file
41
l2ooghelper/packet_handlers/ph_RecipeShopManageList.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
#include "stdafx.h"
|
||||
#include "Logger.h"
|
||||
#include "L2Client.h"
|
||||
|
||||
void L2Client::ph_RecipeShopManageList( class L2Client *pcls, L2GamePacket *p )
|
||||
{
|
||||
L2_VERSION ver = pcls->account.getL2Version();
|
||||
|
||||
p->getPacketType();
|
||||
int cnt;
|
||||
int i;
|
||||
//
|
||||
TradeItemsList *list1 = new TradeItemsList();
|
||||
TradeItemsList *list2 = new TradeItemsList();
|
||||
// section 1
|
||||
p->readUInt(); // objectID
|
||||
list1->curMoney = p->readInt();
|
||||
list1->packageSale = list2->packageSale = 0; // craft cannot be package
|
||||
list1->isCommonCraft = list2->isCommonCraft = p->readUInt();
|
||||
// section 2
|
||||
cnt = p->readInt();
|
||||
for( i=0; i<cnt; i++ )
|
||||
{
|
||||
TradeItem it;
|
||||
it.itemID = p->readUInt(); // recipe ID here
|
||||
p->readInt(); // pass seq.number
|
||||
list1->addItem( it );
|
||||
}
|
||||
// section 3
|
||||
cnt = p->readInt();
|
||||
for( i=0; i<cnt; i++ )
|
||||
{
|
||||
TradeItem it;
|
||||
it.itemID = p->readInt();
|
||||
p->readInt(); // pass 0x00
|
||||
if( ver < L2_VERSION_T23 ) it.price = p->readInt();
|
||||
else it.price = p->readInt64();
|
||||
list2->addItem( it );
|
||||
}
|
||||
pcls->handle_RecipeShopManageList( list1, list2 );
|
||||
}
|
||||
Reference in New Issue
Block a user