Hi, Where can add pc point to Player
Attachment 130990
Printable View
Hi, Where can add pc point to Player
Attachment 130990
I believe you have to make a new database entry for it, might take some time :P but if you look through your source code, you'll find what its called and what parameters are for it.
Yup! and honestly, I don't know the name of it, but I'm sure its there because that button only appears because you use the sources client :) so find the area in the source that creates that button, and what it does, maybe the database, maybe a bin file. I would start looking in the Interface folder though.
Look at the files called PCRoomManager.cpp and PCRoomManager.h, their code looks like a good match for the points.
ok will find
I think mapserver is receiving msg from client and then send EXEC command to database. maybe if we searching for EXEC pc point in mapserver source, we'll know what it send to database and we can create table and procedure for pc point.
See this
Quote:
void RLoadPCRoomPoint(LPMIDDLEQUERY pData, LPDBMESSAGE pMessage)
{
if( !pMessage->dwResult )
return;
DWORD dwPlayerIdx = pMessage->dwID;
DWORD dwPCRoomPoint = DWORD( atoi( (char*)pData->Data[0] ) );
BOOL bCanProvideItem = (atoi( (char*)pData->Data[1] ) > 0 ? TRUE : FALSE);
WORD dwMemberCount = WORD(atoi((char*)pData->Data[2]));
BOOL bProvidedBuff = (atoi( (char*)pData->Data[3] ) > 0 ? TRUE : FALSE);
BYTE byDay = BYTE( atoi( (char*)pData->Data[4] ) );
DWORD userIndex = _ttoi(LPCTSTR(pData->Data[5]));
PCROOMMGR->AddPlayer(
dwPlayerIdx,
userIndex,
dwPCRoomPoint,
dwMemberCount,
bCanProvideItem,
bProvidedBuff,
byDay);
}
Heres a rough English translation of the headers of both PCRoomManager.cpp and PCRoomManager.h, this will help you understand which parts of code correspond to. They go from beginning to end of each file.
PCRoomManager.cpp
PCRoomManager.hCode:Lack of points
Connected to the PC room hangyeongwoo
PC Room Item payment button settings
PC Room Item payment button disabled
PC Mall Open room
100106 ONS PC room or message output.
100105 ONS PC buff gives the room a message output
100219 ONS PC buff people room chat window the same message if modified to prevent duplicate output.
100312 ONS PC can handle separate room, party buffs.
If the PC is turned off, the room party buff.
Manage Friend 100118 ONS PC room information in the dialog add related functions
100118 ONS PC room, access to member information is removed.
100118 ONS PC room, access to member information is set.
100118 ONS PC brings the room access member information.
I also believe that the database names are these, as they follow the data columns like the sql ones, so inside the cases of each database name, are the values used in the database table structure.Code:Point of HERO PC room
100118 ONS PC room set information.
Code:MP_PCROOM_CONNECT_INFO
MP_PCROOM_PROVIDE_ITEM_ACK
MP_PCROOM_OPEN_MALL_ACK
MP_PCROOM_OPEN_MALL_NACK
MP_PCROOM_CHANGE_POINT
MP_PCROOM_PROVIDE_DAILYBUFF
MP_PCROOM_PROVIDE_PARTYBUFF
MP_PCROOM_INFO_ACK