Jump to content

Abilitis bug


Go to solution Solved by canco,

Recommended Posts

Hello dev community

I found a little bug and i don`t know from where it can be

So before i relog i have this:

https://metin2.download/picture/H2K78waiCvS7W8tREqeccpkx7SD0ZDt5/.jpg

After relog i got this:

https://metin2.download/picture/HThlilMSCdZmW3reGsuFawc16R0qAur0/.jpg

The points are still there but they dissapear

It`s really anoying

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Solution

input_login.cpp

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

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();
}

 

  • Love 1
Link to comment
Share on other sites

Acum 9 ore, xP3NG3Rx a spus:

Which mode you are building the server?

Edit: 40k

Acum 11 ore, canco a spus:

input_login.cpp

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


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();
}

 

The points are not dissapearing just from horse,all of them dissapear except the language points

Link to comment
Share on other sites

Acum 6 minute, xP3NG3Rx a spus:

x1f62d.png.pagespeed.ic.Hlf30hkFMH.png

Oh i`m sorry if i didn`t got what you said but i think that i solved it with 

I`m really tying to learn something man :( Do not laugh man

Acum 10 ore, canco a spus:

input_login.cpp

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


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();
}

 

Thanks aloot

 

Edit:

Do you know something about this?

https://metin2.download/picture/vyclHgnj98x543a0jZP9z3bs41cCbxK7/.gif first bug  (i need to  use twice the item to work)

https://metin2.download/picture/L0xaWhkkK0561K4rgTM8RvF9R35ewMD4/.gif Second bug

Do you know how i can resolve that?

My quest it`s this

quest new_mount begin
	state start begin
		when 71124.use or 71125.use or 71126.use or 71127.use or 71128.use begin
			local tabel_pc = {
			[71124] = "leu_alb",
			[71125] = "mistret",
			[71126] = "lup",
			[71127] = "tigru",
			[71128] = "tigru_foc",
			}
			local tabel_mount = {
			[71124] = 20114,
			[71125] = 20115,
			[71126] = 20116,
			[71127] = 20117,
			[71128] = 20118,
			}
			if pc.is_polymorphed() then
				syschat("Nu poti calarii cat esti transformat.")
				return
			end
			if pc.is_riding() then
				syschat("Nu poti invoca un mount cat timp calaresti!")
				return
			end

			if pc.getqf(tabel_pc[item.get_vnum()]) == 1 then
				horse.unsummon()
				pc.setqf(tabel_pc[item.get_vnum()], 0)
				return
			end

			pc.setqf(tabel_pc[item.get_vnum()], 1)
			horse.unsummon()
			horse.set_appearance(tabel_mount[item.get_vnum()])
			horse.summon()
		end
	end
end

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.