Jump to content

Recommended Posts

Hello Devs!

 

I would to allow shamans skills between two empires. (Buff Skills)

 

I search in char_skill.cpp to "pkVictim = this" and commented out (becouse this line change how you give buff yourself, not other)  with the if (X) every match, and changed the 
 

ComputeSkill(dwVnum, this);
to
ComputeSkill(dwVnum, pkVictim);

but still cant use buff skills to character whos stay other empire.

 

Does anyone know the solution?

Edited by Separate
Link to comment
https://metin2.dev/topic/23450-buff-other-empire/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 5 years later...

Shogun was on the right track. However it is all client side, no need to modify anything server side or in the DB.

Extract locale.eix or rrlocale.eix, search for skilldesc.txt look for 

Quote

ONLY_FOR_ALLIANCE

flags and remove them from the desired skills. Shaman buffs IDs are (Dragon) 94-95-96 and (Heal) 109-110-111.
Remove the | separator as well.


If you want to be able to buff in the no attack circles, you also need to modify the Client exe.
Look for UserInterface/PythonPlayerSkill.cpp
 

}
else
{
    if (pkInstTarget->IsInSafe())
    {
        PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotUseSkill", Py_BuildValue("(is)", GetMainCharacterIndex(), "CANNOT_ATTACK_ENEMY_IN_SAFE_AREA"));
        return false;
    }

Extend the if statement with an pSkillData->IsAttackSkill() call.

}
else
{
    if (pkInstTarget->IsInSafe() && pSkillData->IsAttackSkill())
    {
        PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotUseSkill", Py_BuildValue("(is)", GetMainCharacterIndex(), "CANNOT_ATTACK_ENEMY_IN_SAFE_AREA"));
        return false;
    }


You should be able to buff anyone to your desire afterwards.

Edited by Trukken
Link to comment
https://metin2.dev/topic/23450-buff-other-empire/#findComment-171991
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.