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 (see edit history)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing

    No registered users viewing this page.

  • Activity

    1. 7

      mobs/stone drop by level ?

    2. 31

      Metin2 Download Center - Backup Status

    3. 2

      Christmas 2020

    4. 0

      Weird Cryptopp Problem

    5. 0

      Hello i have error with skill!

    6. 1

      Gurgarath Sus

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