Jump to content

Recommended Posts

Posted

src/map/itemdb.cpp#L582-L596

/** Specifies if item-type should drop unidentified.
* @param nameid ID of item
*/
char itemdb_isidentified(unsigned short nameid) {
	int type=itemdb_type(nameid);
	switch (type) {
		case IT_WEAPON:
		case IT_ARMOR:
		case IT_PETARMOR:
		case IT_SHADOWGEAR:
			return 0;          // <--------- REMOVE or Change to 1
		default:
			return 1;
	}
}

 

  • Upvote 6
Posted
11 hours ago, Emistry said:

src/map/itemdb.cpp#L582-L596


/** Specifies if item-type should drop unidentified.
* @param nameid ID of item
*/
char itemdb_isidentified(unsigned short nameid) {
	int type=itemdb_type(nameid);
	switch (type) {
		case IT_WEAPON:
		case IT_ARMOR:
		case IT_PETARMOR:
		case IT_SHADOWGEAR:
			return 0;          // <--------- REMOVE or Change to 1
		default:
			return 1;
	}
}

 

Resolvido.Obrigado.Thanks.

  • 3 weeks later...
Posted
4 hours ago, lopes said:

Poderia me explicar como fazer?

Olá!A solução está logo acima.

Vá no seu emulador em src/map/itemdb.cpp e procure por.E aonde está return 0; altere para return 1;

	int type=itemdb_type(nameid);
	switch (type) {
		case IT_WEAPON:
		case IT_ARMOR:
		case IT_PETARMOR:
		case IT_SHADOWGEAR:
			return 0;          // <--------- REMOVE or Change to 1
		default:
			return 1;
	}
}
Posted
3 hours ago, westkian said:

Olá!A solução está logo acima.

Vá no seu emulador em src/map/itemdb.cpp e procure por.E aonde está return 0; altere para return 1;


	int type=itemdb_type(nameid);
	switch (type) {
		case IT_WEAPON:
		case IT_ARMOR:
		case IT_PETARMOR:
		case IT_SHADOWGEAR:
			return 0;          // <--------- REMOVE or Change to 1
		default:
			return 1;
	}
}

Não tem como editar na grf?

Posted

eu fiz alguma coisa ontem, editando grf e consegui deixar assim, mas como foram muita adições eu não sei qual foi a modificação que deixou dessa forma, por isso vim perguntar.

Join the conversation

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

Guest
Reply to this topic...

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