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!

Little Share - Shamman Resu for GVG on Tyranny and other War Maps

Experienced Elementalist
Joined
Nov 8, 2023
Messages
245
Reaction score
36
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

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 .
 
Newbie Spellweaver
Joined
Nov 10, 2023
Messages
48
Reaction score
7
Hello!
My friend has a question and wants your help.
I want Shamman Resu to be able to revive everyone in my academy, even those who are not in the same guild, not in the same group... on all maps.
Currently, I can only revive people in my party.
What to do to fix this problem?
Thank you!
I was a new person!
 
Junior Spellweaver
Joined
Oct 29, 2008
Messages
171
Reaction score
17
Hello!
My friend has a question and wants your help.
I want Shamman Resu to be able to revive everyone in my academy, even those who are not in the same guild, not in the same group... on all maps.
Currently, I can only revive people in my party.
What to do to fix this problem?
Thank you!
I was a new person!
just make it go back to its default.
 
Newbie Spellweaver
Joined
Oct 16, 2021
Messages
16
Reaction score
1
Please help me. I am unable to right-click on the dead character lying on the floor.


 
Newbie Spellweaver
Joined
Apr 19, 2018
Messages
60
Reaction score
15
Much better if this if you mean Guild vs Guild perfectly with comment.
if (m_pLandMan->m_bPVPTyrannyMap || m_pLandMan->m_bPVPSchoolWarsMap || m_pLandMan->m_bPVPCaptureTheFlagMap) {
if (pPC->m_dwGuild != m_dwGuild) break; // Break if different guilds
if (pPC->m_wSchool == m_wSchool && pPC->m_dwGuild != m_dwGuild) break; // Break if same school but different guilds
}
 
Newbie Spellweaver
Joined
Oct 16, 2021
Messages
16
Reaction score
1
Much better if this if you mean Guild vs Guild perfectly with comment.
if (m_pLandMan->m_bPVPTyrannyMap || m_pLandMan->m_bPVPSchoolWarsMap || m_pLandMan->m_bPVPCaptureTheFlagMap) {
if (pPC->m_dwGuild != m_dwGuild) break; // Break if different guilds
if (pPC->m_wSchool == m_wSchool && pPC->m_dwGuild != m_dwGuild) break; // Break if same school but different guilds
}
Tks so much, but my problem is "unable to right-click on the dead character"
 
Back
Top