Jump to content
  • 0

[Map-Serv Crash]: Can someone help me please?


Question

Posted

The emulator started to crash and crash the map-server. I used GDB and got the following information...

FkHrThG.png

The status.cpp and skill.cpp files for analysis are appended to the topic. If anyone can help me I will be very grateful please. This is very urgent!

skill.cpp

status.cpp

3 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, monkeydluffy said:

The emulator started to crash and crash the map-server. I used GDB and got the following information...

FkHrThG.png

The status.cpp and skill.cpp files for analysis are appended to the topic. If anyone can help me I will be very grateful please. This is very urgent!

skill.cpp

status.cpp

well if its just your src why dont you just replace those 2 files with whats in the github?

 

  • 0
Posted (edited)

status.cpp: 7456

my review:

struct status_data *status_get_status_data(struct block_list *bl)
{
	nullpo_retr(&dummy_status, bl);

	switch (bl->type) {
		case BL_PC: 	return &((TBL_PC*)bl)->battle_status;
		case BL_MOB:	return &((TBL_MOB*)bl)->status;
		case BL_PET:	return &((TBL_PET*)bl)->status;
		case BL_HOM:	return &((TBL_HOM*)bl)->battle_status;
		case BL_MER:	return &((TBL_MER*)bl)->battle_status;
		case BL_ELEM:	return &((TBL_ELEM*)bl)->battle_status;
		case BL_NPC:	return ((mobdb_checkid(((TBL_NPC*)bl)->class_) == 0) ? &((TBL_NPC*)bl)->status : &dummy_status);
		default:
			return &dummy_status;
	}
}

github:

int status_get_class(struct block_list *bl)
{
	nullpo_ret(bl);
	switch( bl->type ) {
		case BL_PC:	return ((TBL_PC*)bl)->status.class_;
		case BL_MOB:	return ((TBL_MOB*)bl)->vd->class_; // Class used on all code should be the view class of the mob.
		case BL_PET:	return ((TBL_PET*)bl)->pet.class_;
		case BL_HOM:	return ((TBL_HOM*)bl)->homunculus.class_;
		case BL_MER:	return ((TBL_MER*)bl)->mercenary.class_;
		case BL_NPC:	return ((TBL_NPC*)bl)->class_;
		case BL_ELEM:	return ((TBL_ELEM*)bl)->elemental.class_;
	}
	return 0;
}

 

That part of the skill I already got. Now I need to know how to make this change above and where it makes the most changes.

 

Edited by monkeydluffy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...