Jump to content

#provlema dungeon party


Recommended Posts

Hello provlema do fix dungeon 

//if (m_pkDungeon && IsPC())

//SetDungeon(NULL);

 

Any provlema   (NULL)  😕  

 

if restore team = NULL  again game.core

 

how to fix dungeon without (NULL)  ?????

 

 

 

Not good fix    please send me another fix thanks

 

 

 

 

 

 

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

30 minutes ago, Speachless said:

You should use d.new_jump() and d_new_jump_party()

 

1 hour ago, Endymion said:

Which function are you using to open dungeon?

 

3 hours ago, ManiacRobert said:

Debug the crashcore and post here

 

solver

 

if (m_pkDungeon && IsPC() && !pkParty) {SetDungeon(NULL);} or if (m_pkDungeon && IsPC()) {SetDungeon(NULL);}

 

and thanks for help

Link to comment
Share on other sites

  • Premium
void CHARACTER::SetParty(LPPARTY pkParty)
{
	if (pkParty == m_pkParty)
		return;

	if (pkParty && m_pkParty)
		sys_err("%s is trying to reassigning party (current %p, new party %p)", GetName(), get_pointer(m_pkParty), get_pointer(pkParty));

	sys_log(1, "PARTY set to %p", get_pointer(pkParty));

	if (m_pkDungeon && IsPC())
		SetDungeon(NULL);
	
	m_pkParty = pkParty;

	if (IsPC())
	{
		if (m_pkParty)
			SET_BIT(m_bAddChrState, ADD_CHARACTER_STATE_PARTY);
		else
			REMOVE_BIT(m_bAddChrState, ADD_CHARACTER_STATE_PARTY);

		UpdatePacket();
	}
}

 

This is how everyone should have it.

Edited by Speachless
Link to comment
Share on other sites

2 minutes ago, Speachless said:

void CHARACTER::SetParty(LPPARTY pkParty)
{
	if (pkParty == m_pkParty)
		return;

	if (pkParty && m_pkParty)
		sys_err("%s is trying to reassigning party (current %p, new party %p)", GetName(), get_pointer(m_pkParty), get_pointer(pkParty));

	sys_log(1, "PARTY set to %p", get_pointer(pkParty));

	if (m_pkDungeon && IsPC())
		SetDungeon(NULL);
	
	m_pkParty = pkParty;

	if (IsPC())
	{
		if (m_pkParty)
			SET_BIT(m_bAddChrState, ADD_CHARACTER_STATE_PARTY);
		else
			REMOVE_BIT(m_bAddChrState, ADD_CHARACTER_STATE_PARTY);

		UpdatePacket();
	}
}

 

This is how everyone should have it.

 

Thanks again :)

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.