Jump to content

Recommended Posts

Hi dev,

i make simple pet level system .  pet level is owner level

now ! search in char.cpp

if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))

 and change to

		if ((IsPC() || IsPet()) == true)

		{
			addPacket.dwLevel = GetLevel();
		}
		else
		{
			addPacket.dwLevel = 0;
		}

then, search in petsystem.cpp

m_pkChar->SetPet();

and add after line

m_pkChar->SetLevel(m_pkOwner->GetLevel());

You can work the way with rank points etc also wonderful ^^.

  • Love 2
Link to comment
https://metin2.dev/topic/8305-pet-level-like-his-owner-level/
Share on other sites

  • Former Staff

Hi dev,

i make simple pet level system .  pet level is owner level

now ! search in char.cpp

if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))

 and change to

		if ((IsPC() || IsPet()) == true)

		{
			addPacket.dwLevel = GetLevel();
		}
		else
		{
			addPacket.dwLevel = 0;
		}

then, search in petsystem.cpp

m_pkChar->SetPet();

and add after line

m_pkChar->SetLevel(m_pkOwner->GetLevel());

You can work the way with rank points etc also wonderful ^^.

lol you can just add a column  in player's table for the pet level and another one for experience and load them from database to game and use it

Hi dev,

i make simple pet level system .  pet level is owner level

now ! search in char.cpp

if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))

 and change to

		if ((IsPC() || IsPet()) == true)

		{
			addPacket.dwLevel = GetLevel();
		}
		else
		{
			addPacket.dwLevel = 0;
		}

then, search in petsystem.cpp

m_pkChar->SetPet();

and add after line

m_pkChar->SetLevel(m_pkOwner->GetLevel());

You can work the way with rank points etc also wonderful ^^.

lol you can just add a column  in player's table for the pet level and another one for experience and load them from database to game and use it

I know but is simple example

Hi dev,

i make simple pet level system .  pet level is owner level

now ! search in char.cpp

if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))

 and change to

		if ((IsPC() || IsPet()) == true)

		{
			addPacket.dwLevel = GetLevel();
		}
		else
		{
			addPacket.dwLevel = 0;
		}

then, search in petsystem.cpp

m_pkChar->SetPet();

and add after line

m_pkChar->SetLevel(m_pkOwner->GetLevel());

You can work the way with rank points etc also wonderful ^^.

lol you can just add a column  in player's table for the pet level and another one for experience and load them from database to game and use it

stupid.. better to use the given getter and setter than extending a database table.

Edited by Ayaka

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.