Jump to content
  • 0

#provlema dungeon party


monsterd2w4

Question

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 post

6 answers to this question

Recommended Posts

  • 0
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 post
  • 0
  • VIP
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 post
  • 0
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.