[SOLVED] LG-7 Autopots still working during the duel

🚫
Exiled
Joined
Mar 21, 2013
Messages
224
Reaction score
18
Location
Philippines
The duel recovery dose is set to 0 but still player can use auto potion

I know this is something to fix in the source, has anyone fixed it already?
 
Last edited:
HRESULT GLCharacter::ReqAutoPotion(SAUTO_POTION* pAutoPotion)
{
if ( m_sCONFTING.IsCONFRONTING() ) return S_FALSE;
thanks! but I think this code will not allow the player to enable the autopotion during the duel. But what if it was enabled already before the duel?
 
Upvote 0
or try this
void GLChar::AutoPotionReaction(int nIndex)
{
if ( m_sCONFTING.IsCONFRONTING() ) return;
thank you! that works! but I did something like this in GLChar.cpp

C++:
for (int i = 0; i < nMAXPOTION_SLOT; i++)
        {
            if (m_sACTIONQUICK[i].VALID())
            // disable autopots when recovery dose is set to 0
            if (m_sCONFTING.IsFIGHTING())   
            {
                if (m_sCONFTING.IsRECOVE()) AutoPotionReaction(i);
            }
            else
            {   
                AutoPotionReaction(i);
            }   
        }
 
Upvote 0
thank you! that works! but I did something like this in GLChar.cpp

C++:
for (int i = 0; i < nMAXPOTION_SLOT; i++)
        {
            if (m_sACTIONQUICK[i].VALID())
            // disable autopots when recovery dose is set to 0
            if (m_sCONFTING.IsFIGHTING())  
            {
                if (m_sCONFTING.IsRECOVE()) AutoPotionReaction(i);
            }
            else
            {  
                AutoPotionReaction(i);
            }  
        }
Hi can you share code for autopotion?
 
Upvote 0
Back