Experienced Elementalist
- Joined
- Nov 8, 2023
- Messages
- 246
- Reaction score
- 37
So , here's a little share from my Help thread about Shamman resu on other school .
--
What it does is , it lets you use Resu skill only for your guildmates , but not on other school mates .
Under GLChar.cpp
Edit to this :
Make sure that "m_dwGuild" is declared just like the "m_wSchool"
On this example , if you're on Tyranny and Club War Map , you wont be able to resurrect other guilds ( Suitable for servers with GVG )
but if you're in School Wars map and capture the flag , you can resu your school mates .
You can edit it based on your preffered functions .
This might also fix the issue of EP9 Bubu source where Shamman's resu doesnt work on click .
-
Big thanks for RSilent for the function .
Also tatsuya023 for giving me a hint .
--
What it does is , it lets you use Resu skill only for your guildmates , but not on other school mates .
Under GLChar.cpp
C++:
Find : case EMSPECA_REBIRTH:
case EMSPECA_REBIRTH:
{
if ( bREBIRTH ) break;
if ( sTARID.emCrow==CROW_PC )
{
PGLCHAR pPC = m_pGLGaeaServer->GetChar(sTARID.dwID);
if ( pPC )
{
/* Add Anti Resu not same school in War Map -RSiLENT */
//if ( m_pLandMan->m_bPVPTyrannyMap || m_pLandMan->m_bPVPSchoolWarsMap || m_pLandMan->m_bPVPCaptureTheFlagMap )
//{
if ( pPC->m_wSchool != m_wSchool ) break;
//}
WORD wRECOVE = pPC->DoRevive2Skill(skill_id,wSKILL_LVL, (WORD)nSpec );
if ( 0<wRECOVE)
Edit to this :
C++:
case EMSPECA_REBIRTH:
{
if ( bREBIRTH ) break;
if ( sTARID.emCrow==CROW_PC )
{
PGLCHAR pPC = m_pGLGaeaServer->GetChar(sTARID.dwID);
if ( pPC )
{
/* Add Anti Resu not same school in War Map -RSiLENT */
/*if ( m_pLandMan->m_bPVPTyrannyMap || m_pLandMan->m_bPVPSchoolWarsMap || m_pLandMan->m_bPVPCaptureTheFlagMap )
{
if ( pPC->m_wSchool != m_wSchool ) break;
}*/
/* Anti resu not same guild and school - Jxyyy */
if ( m_pLandMan->m_bPVPTyrannyMap || m_pLandMan->m_bGuidBattleMap )
{
if ( pPC->m_dwGuild != m_dwGuild ) break;
}
if ( m_pLandMan->m_bPVPSchoolWarsMap || m_pLandMan->m_bPVPCaptureTheFlagMap )
{
if ( pPC->m_wSchool != m_wSchool ) break;
}
/* Anti resu not same guild and school - Jxyyy End */
WORD wRECOVE = pPC->DoRevive2Skill(skill_id,wSKILL_LVL, (WORD)nSpec );
if ( 0<wRECOVE)
Make sure that "m_dwGuild" is declared just like the "m_wSchool"
On this example , if you're on Tyranny and Club War Map , you wont be able to resurrect other guilds ( Suitable for servers with GVG )
but if you're in School Wars map and capture the flag , you can resu your school mates .
You can edit it based on your preffered functions .
This might also fix the issue of EP9 Bubu source where Shamman's resu doesnt work on click .
-
Big thanks for RSilent for the function .
Also tatsuya023 for giving me a hint .