Jump to content

Guild & Party Core Downer


Matteo

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 8

System Administrator @ Hungarian Government
System Administrator @ Vibestro
Freelancer Developer @ Various projects

Link to comment
Share on other sites

  • 3 weeks 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.