Jump to content
  • 0

H>How to identify which mob has this problems?


Question

7 answers to this question

Recommended Posts

  • 0
Posted

I'm guessing you deleted a bunch of items from your database and now any monsters that had those items are showing up as dropping unknown items, correct? As far as I know, and much to my own dismay (since I too am in the process of ridding my server of all trans items), is to perform the arduous task of opening up your mob_db and using your text editor's search function to manually search for any instance of any item's ID number, then subsequently removing that item from a monster's drops. I wish there was a faster way to do it, but if there is, I'm not aware of it.

 

As a side note, if you can't seem to find any further help in the matter I suggest you download "TextPad" if you haven't already, it's an excellent freeware coding/text tool that has a word search bar built in so you don't have to constantly CTRL+F to look for text in a document.

 

Best of luck mate.

  • 0
Posted (edited)

I am also removing the trans item from my database. I am using Notepad++ for this, I am not sure if there is any other than can be used.

Thanks, I wished there was a diff of some sort to show which mob or line it was giving errors for, making it easily trackable.

Saw this,

 

/*==========================================
 * Loads an item from the db. If not found, it will return the dummy item.
 * @param nameid
 * @return *item_data or *dummy_item if item not found
 *------------------------------------------*/
struct item_data* itemdb_search(unsigned short nameid) {
	struct item_data* id = NULL;
	if (nameid == dummy_item->nameid)
		id = dummy_item;
	else if (!(id = (struct item_data*)uidb_get(itemdb, nameid))) {
		ShowWarning("itemdb_search: Item ID %hu does not exists in the item_db. Using dummy data.\n", nameid);
		id = dummy_item;
	}
	return id;
}

Maybe we can do  something about it? I'm not sure if that is the correct line in the source. Hopefully there's something we can add to make it more readable.

Edited by PandaRapesHamster
  • 0
Posted
ShowWarning( "Monster \"%s\"(id: %d) is dropping an unknown item \"%s\"(Drop %d)\n", db->name, mob_id, str[k], ( i / 2 ) + 1 );

It is already showing by default the mob id. Maybe it is coming from a different call, when the server is loading itemdb files.

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