Jump to content

Recommended Posts

  • Premium

Since there is a function, it is easy to create a fix :

You can remplace the function in char.cpp by this one :

if (block_exp && amount > 0)
    {
        return;
    }

Or / And you can put this in guild.cpp "CGuild::OfferExp"

 

if (ch->block_exp == true)
            ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't give exp to your guild if your experience is blocked."));
            return false; 

 

 

  • Love 3
Link to comment
Share on other sites

Open char.cpp

In  case POINT_EXP:

after  : if (gPlayerMaxLevel <= GetLevel())

add

 [ code ]

            if (ch->GetQuestFlag("BLOCK_EXP")) {
                return;
            }
 [\code ]

And set quest flag BLOCK_eXP

 

Or you can create a new type with check's exp

 

 

 

And where the fuck it's code button ? 

Link to comment
Share on other sites

57 minutes ago, ds_aim said:

Open char.cpp

In  case POINT_EXP:

after  : if (gPlayerMaxLevel <= GetLevel())

add

 [ code ]

            if (ch->GetQuestFlag("BLOCK_EXP")) {
                return;
            }
 [\code ]

And set quest flag BLOCK_eXP

 

Or you can create a new type with check's exp

 

 

 

And where the fuck it's code button ? 

i have this error (may is easy to fix but i am noob)

https://metin2.download/picture/VmiP6vZ7JG0IJnVX53yAdYtmu1962hu2/.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 8 years later...
On 1/1/2016 at 12:23 PM, Galet said:
if (ch->block_exp == true)
            ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't give exp to your guild if your experience is blocked."));
            return false; 

Thanks Galet! Helpful as always 🙂
A small correction though: Be sure to put curly braces around the statements after the if-clause.
Otherwise, offering EXP will always fail.

Edited by Cifer
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.