Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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