Jump to content

Dropar itens identificados.


westkian

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   1
  • Joined:  07/31/14
  • Last Seen:  

Como devo fazer para que os itens sejam dropados já identificados?Tem um post de 2012 ensinado,mais não consegui.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   1
  • Joined:  07/31/14
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/30/19
  • Last Seen:  

On 9/16/2019 at 5:24 AM, westkian said:

Resolvido.Obrigado.Thanks.

Poderia me explicar como fazer?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   1
  • Joined:  07/31/14
  • Last Seen:  

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;
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/30/19
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   1
  • Joined:  07/31/14
  • Last Seen:  

2 hours ago, lopes said:

Não tem como editar na grf?

Não.A edição e na source.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  09/30/19
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...