Junior Spellweaver
- Joined
- Apr 12, 2020
- Messages
- 148
- Reaction score
- 52
to disable auto pot when cuthp/antipot enable, u can add this code :
find switch (pITEM->sDrugOp.emDrug)replace with thisCode:{ if (fPercent_HP < (float)m_pAutoPotion.m_nHPSet) { if (m_pLandMan->m_bPVPTyrannyMap) return; if ( m_bProhibitPotion ) return; if (m_fAutoPotDelay_[0] >= GLGaeaServer::GetInstance().GetAutoPotionDelay()) { m_sHP.INCREASE(pITEM->sDrugOp.wCureVolume, pITEM->sDrugOp.bRatio); m_fAutoPotDelay_[0] = 0.0f; bUse = TRUE; } } } break;
to disable in pvp maps replace with this in your button control id
Code:if (CHECK_MOUSEIN_LBUPLIKE(dwMsg)) { if (CInnerInterface::GetInstance().IsVisibleGroup(AUTOSYSTEM_WINDOW)) CInnerInterface::GetInstance().HideGroup(AUTOSYSTEM_WINDOW); { PLANDMANCLIENT pLandManClient = GLGaeaClient::GetInstance().GetActiveMap(); if ( pLandManClient->m_bPVPTyrannyMap || pLandManClient->m_bClubBattle || pLandManClient->m_bClubDeathMatch || pLandManClient->m_bPVPCaptureTheFlagMap || pLandManClient->m_bPVPSchoolWarsMap ) { CInnerInterface::GetInstance().PrintConsoleText ( "you cannot use 'AutoSystem' durring PVPEvents!") ; } else CInnerInterface::GetInstance().ShowGroupFocus(AUTOSYSTEM_WINDOW); } }
to enable qweasd slot just trace the QWEASD word. relate to ITEM_CURE
Thank you so much brother, you deserve a lot of likes.

