Jump to content

Recommended Posts

Hi i would like share with u guys how to add new mounts to attack and do dmg

On game u will need find the

pvp.cpp and find

        switch( pkChr->GetMountVnum() )

        {

            case 0:

Then above case 0: u should add the mount id u want like this exemple

        switch( pkChr->GetMountVnum() )

        {

            case 0:

            case 19000:

            case 19001:

            case 19002:

            case 19003:

Now client side u will need open the file

InstanceBase.cpp

and find

UINT CInstanceBase::SHORSE::GetLevel()

{

    if (m_pkActor)

    {

        DWORD mount = m_pkActor->GetRace();

        switch (mount)

        {

Then u will add all case and end with a return 3 like this

UINT CInstanceBase::SHORSE::GetLevel()

{

    if (m_pkActor)

    {

        DWORD mount = m_pkActor->GetRace();

        switch (mount)

        {
            case 19001:

            case 19002:

            case 19003:

                return 3;
  • Metin2 Dev 2
  • Good 1
  • Love 18
Link to comment
https://metin2.dev/topic/2045-add-new-mounts-to-attack-and-damage/
Share on other sites

  • 6 months later...

Hi ....

i've a problem with skill mount's...hit but don't damage ...please can you help me?

Same problem as you, try to do a new help request maybe someone with find the problem, i've not searched at the moment.

 

 

  • 3 weeks later...
  • 3 months later...
  • 3 years later...
UINT CInstanceBase::SHORSE::GetLevel()
{
	if (m_pkActor)
	{
		DWORD mount = m_pkActor->GetRace();
		
		TMapMountLevelByVNum::iterator it = g_mapMountLevelByVNum.find(mount);
		if (it == g_mapMountLevelByVNum.end())
			return 0;

		return it->second;
	}
	return 0;
}

How should i have to edit?

  • 8 months later...
  • Premium

Src&Binary\Srcs_CLIENT_OFFICIAL\Srcs\Client\UserInterface\InstanceBase.cpp   This is crucial. Thank you!@yagokurt

--------------------------------------------------------------------------------------------------------------------

In the two files of game source, I found the case 20114 related to mount: copy the monster number corresponding to the new mount,

It didn't work, but I followed @yagokurt, got client in vs2013, and my mounts can attack!Thanks again!

source\game\char_battle  
source\game\char_skill    

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.