Jump to content

Recommended Posts

Hi guys,


It's maybe released somewhere else, but i ran into this with 300-400 player on my server and one of them injected a little python script which invites mobs or npcs into guild and party or forces guild skills on mobs or npcs. If that happens the core will crash since there is no checks for that.

 

input_main.cpp

 

Find in case GUILD_SUBHEADER_CG_ADD_MEMBER::

if (!ch->IsPC())

Replace:

if (!ch->IsPC() || !newmember->IsPC())

 

 

Find in CInputMain::PartyUseSkill:

if (pch)
	ch->GetParty()->SummonToLeader(pch->GetPlayerID());

Replace:

if (pch)
{
	if (pch->IsPC())
		ch->GetParty()->SummonToLeader(pch->GetPlayerID());
}

 

 

Add at the beginning of the CInputMain::PartyInvite function:

if (!ch)
	return;

In the same function find:

if (!pInvitee || !ch->GetDesc() || !pInvitee->GetDesc())

Replace:

if (!pInvitee || !ch->GetDesc() || !pInvitee->GetDesc() || !pInvitee->IsPC() || !ch->IsPC())

 

 

Add at the beginning of the CInputMain::PartyInviteAnswer function:

if (!ch)
	return;

In the same function find:

if (!pInviter)

Replace:

if (!pInviter || !pInviter->IsPC())

 

Have a nice day!

 

  • Love 9

🖥️ SysAdmin — Government (HU)
🛠️ Freelance Metin2 Dev • DevOps
🐧 FreeBSD / Linux | 🛡️ Security & WAF | 🚀 Performance | 🔥 Firewalls | ⚙ Automation
Open to work - Contact me on Discord @matteo_r

Link to comment
https://metin2.dev/topic/23000-guild-party-core-downer/
Share on other sites

  • 3 weeks later...

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.