Initial MSVC 2008 projects workspace

This commit is contained in:
alexey.min
2012-02-01 05:25:08 +00:00
commit 03de3bdc95
1446 changed files with 476853 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#include "stdafx.h"
#include "Logger.h"
#include "L2Client.h"
/** Trade receiver recieves:
Server: Len 7 [SendTradeRequest]
07 00
70 // pcode
CE 09 00 10 // object ID of person who wants to trade to you **/
void L2Client::ph_SendTradeRequest( class L2Client *pcls, L2GamePacket *p )
{
p->getPacketType();
unsigned int objectID = p->readUInt();
// get requester name
WorldObjectTreeNode wotNode;
if( !pcls->world_tree.GetInfoByObjectID( objectID, &wotNode ) )
{
log_error( LOG_ERROR, "SendTradeRequest: trade requester [%u] not found in knownlist!\n", objectID );
return;
}
// create question string
TCHAR szQuestion[256] = {0};
wsprintf( szQuestion, TEXT("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %s <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?"),
pcls->world_chars.chars_array[wotNode.getArrayIdx()]->charName );
// create MessageBoxTimeout dialog (15 seconds)
MessageBoxTimeout *mb = new MessageBoxTimeout( pcls->hWnd, WMMY_UI_MESSAGEBOXTIMEOUTREPLY,
MessageBoxTimeout::TYPE_TRADEREQUEST, szQuestion, 15 );
mb->run( pcls->usr.charName );
}