• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

What is PCBANG in 4S source code?

Initiate Mage
Joined
Apr 12, 2020
Messages
2
Reaction score
0
Hello guys, I was just messing a bit with 4S source code to get to know the game better and I am stuck at understanding one part. I saw PCBANG being mentioned in a lot of source code files, for example in this part of "TServer/TMapSvr/TMapSvr.cpp" file, I am not sure what is PCBANG? I tried looking at other files, but couldn't find out when is player in Pcbang and what is meant by it?

Code:
... 7729 line of TServer/TMapSvr/TMapSvr.cpp
case PROB_UPGRADE:        
{            
       wAddProb += bBaseProb * m_wEventValue[EVENT_ITEMUPGRADE] / 100;
       WORD wAdd = pPlayer->HaveItemProbBuff(SDT_STATUS_ITEMUPGRADE);            
       if(wAdd)            
       {
                wAdd Prob += bBaseProb * wAdd / 100;
                pPlayer->EraseItemProbBuff(SDT_STATUS_ITEMUPGRADE);
            }
            if(pPlayer->m_bInPcBang & PCBANG_REAL)
                wAddProb += bBaseProb;
        }
        break;
...

I was looking at the version on this GitHub page:

Thanks in advance!
 
Back
Top