Jump to content

Horse Level Bug


Cataclismo

Recommended Posts

  • Premium

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

  • 3 months later...

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.