Jump to content

Pet Level Like His Owner Level


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
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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.