Help Where Get PC point

Results 1 to 11 of 11
  1. #1
    Proficient Member KaiyMso is offline
    MemberRank
    Sep 2010 Join Date
    Sandakan SabahLocation
    174Posts

    ! Help Where Get PC point

    Hi, Where can add pc point to Player
    ss.jpg


  2. #2
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: Help Where Get PC point

    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.

  3. #3
    Proficient Member KaiyMso is offline
    MemberRank
    Sep 2010 Join Date
    Sandakan SabahLocation
    174Posts

    Re: Help Where Get PC point

    Quote Originally Posted by pokchop1 View Post
    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.
    U means Source code for [Client]LUNA? name for it?

  4. #4
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: Help Where Get PC point

    Quote Originally Posted by KaiyMso View Post
    U means Source code for [Client]LUNA? name 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.

  5. #5
    Proficient Member KaiyMso is offline
    MemberRank
    Sep 2010 Join Date
    Sandakan SabahLocation
    174Posts

    Re: Help Where Get PC point

    Quote Originally Posted by pokchop1 View Post
    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.
    ok sir thanks for help.

  6. #6
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: Help Where Get PC point

    Quote Originally Posted by KaiyMso View Post
    ok sir thanks for help.
    I'll get you up to date on anything if I find something.

  7. #7
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: Help Where Get PC point

    Look at the files called PCRoomManager.cpp and PCRoomManager.h, their code looks like a good match for the points.

  8. #8
    Proficient Member KaiyMso is offline
    MemberRank
    Sep 2010 Join Date
    Sandakan SabahLocation
    174Posts

    Re: Help Where Get PC point

    ok will find

  9. #9
    Enthusiast shadowkage is offline
    MemberRank
    Jan 2013 Join Date
    44Posts

    Re: Help Where Get PC point

    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.

  10. #10
    Proficient Member KaiyMso is offline
    MemberRank
    Sep 2010 Join Date
    Sandakan SabahLocation
    174Posts

    Re: Help Where Get PC point

    Quote Originally Posted by shadowkage View Post
    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
    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);
    }

  11. #11
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: Help Where Get PC point

    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
    Code:
    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.
    PCRoomManager.h
    Code:
    Point of HERO PC room
    
    100118 ONS PC room set 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:
    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
    Last edited by pokchop1; 28-05-13 at 11:38 AM.



Advertisement