Jump to content

Horse Level Bug


Recommended Posts

  • VIP

Hi,

A few days ago I observed that horse level is missing from client. You are able to see the level only when you advance your horse or when you take with a command (for GMs). I don't know if somebody else have this bug, but I will post the little fix I found because you never know.

 

In input_login.cpp, inside the function

void CInputLogin::Entergame(LPDESC d, const char * data)

look for

if (ch->GetHorseLevel() > 0)
{
	DWORD pid = ch->GetPlayerID();

	if (pid != 0 && CHorseNameManager::instance().GetHorseName(pid) == NULL)
		db_clientdesc->DBPacket(HEADER_GD_REQ_HORSE_NAME, 0, &pid, sizeof(DWORD));
}

And replace that check with this one

if (ch->GetHorseLevel() > 0)
{
	DWORD pid = ch->GetPlayerID();

	if (pid != 0 && CHorseNameManager::instance().GetHorseName(pid) == NULL)
		db_clientdesc->DBPacket(HEADER_GD_REQ_HORSE_NAME, 0, &pid, sizeof(DWORD));

	ch->SetHorseLevel(ch->GetHorseLevel());
	ch->SkillLevelPacket();
}

That's it. Enjoy.

  • Love 8
Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

×
×
  • 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.