BackPlayer 55 Posted January 1, 2016 Share Posted January 1, 2016 Spoiler http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3179066-release-c-anti-exp-ring.html There is a bug when you have enable anti exp ring, you can add exp on your guild without lost exp 2 2 1 2 Link to comment Share on other sites More sharing options...
DarkAng3l 25 Posted January 1, 2016 Share Posted January 1, 2016 You don't say Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted January 1, 2016 Premium Share Posted January 1, 2016 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; 3 Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted January 1, 2016 Author Share Posted January 1, 2016 just i am noob thanks you! Link to comment Share on other sites More sharing options...
ds_aim 241 Posted January 1, 2016 Share Posted January 1, 2016 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 More sharing options...
Premium Galet 510 Posted January 1, 2016 Premium Share Posted January 1, 2016 The "code" is a riddle for me... First in have to type only code and write and it'll work, sometimes no, sometimes I should put the code and then edit... I don't know, weird Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted January 1, 2016 Author Share Posted January 1, 2016 the 2 up fixes are the same? which the difference? Link to comment Share on other sites More sharing options...
ds_aim 241 Posted January 1, 2016 Share Posted January 1, 2016 3 minutes ago, BackPlayer said: the 2 up fixes are the same? which the difference? What do you say to teste yourself? It's toooo hard for you to test ? Test galet fix and test block exp code. Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted January 1, 2016 Author Share Posted January 1, 2016 it's not hard but compile need enough time anyway if you don't want to answer on my stupid question(for me isn't ) don't answer Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted January 1, 2016 Author Share Posted January 1, 2016 (edited) 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 September 1, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ds_aim 241 Posted January 1, 2016 Share Posted January 1, 2016 (edited) Add LPCHARACTER ch; declaration. https://metin2.download/picture/jm7AVHdzOZCsk4rn626ah2b2IUL7jcet/.png Like this. Edited September 1, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Cifer 0 Posted March 17 Share Posted March 17 (edited) 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 March 17 by Cifer Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now