Jump to content
  • 0
Sign in to follow this  
deviruzy

Is it possible to identify items in the first place?

Question

 Good day.

 Although one touch npc is very convenient, I was wondering if it's possible to identify items from the beginning like back in the eAthena times. I remember slightly that if you touch certain part of src, all the items you get from mobs comes out as identified. Is this possible even in Hercules?

 Would you be kind and teach me if it's possible please?

 

 Thank you.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

change:

itemdb.c

int itemdb_isidentified(int nameid) {	int type=itemdb_type(nameid);	switch (type) {		case IT_WEAPON:		case IT_ARMOR:		case IT_PETARMOR:			return 0;		default:			return 1;	}}

into

 

this:

int itemdb_isidentified(int nameid) {	return 1;}

 

recompile and enjoy!

Share this post


Link to post
Share on other sites
  • 0

try this

 

 

itemdb.c

/*==========================================
* Specifies if item-type should drop unidentified.
*------------------------------------------*/
int itemdb_isidentified(int nameid) {
int type=itemdb_type(nameid);

+ return 1;
switch (type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
return 0;
default:
return 1;
}
}
/* same as itemdb_isidentified but without a lookup */
int itemdb_isidentified2(struct item_data *data) {
+ return 1;
switch (data->type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
return 0;
default:
return 1;
}
}

 

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

;-; No, I am afraid I am getting errors when I rebuild it with Visual Studio 2010 in either way.

 

First I tried :

 

int itemdb_isidentified(int nameid) {

 return 1;
 int type=itemdb_type(nameid);
 switch (type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
 return 0;
default:
 return 1;
 }
}
/* same as itemdb_isidentified but without a lookup */
int itemdb_isidentified2(struct item_data *data) {

return 1;
 switch (data->type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
 return 0;
default:
 return 1;
 }
}

 

 

 

 

 

 

and then this:

 

 

int itemdb_isidentified(int nameid) {
// int type=itemdb_type(nameid);
// switch (type) {
// case IT_WEAPON:
// case IT_ARMOR:
// case IT_PETARMOR:
//  return 0;
// default:
 return 1;
 }
}
/* same as itemdb_isidentified but without a lookup */
int itemdb_isidentified2(struct item_data *data) {
 switch (data->type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
 return 0;
default:
 return 1;
 }
}

 

 

 

 

and even this

 

 

int itemdb_isidentified(int nameid) {
// int type=itemdb_type(nameid);
// switch (type) {
// case IT_WEAPON:
// case IT_ARMOR:
// case IT_PETARMOR:
//  return 0;
// default:
 return 1;
 }
}
/* same as itemdb_isidentified but without a lookup */
int itemdb_isidentified2(struct item_data *data) {
// switch (data->type) {
// case IT_WEAPON:
// case IT_ARMOR:
// case IT_PETARMOR:
//  return 0;
// default:
 return 1;
 }
}

Edited by deviruzy

Share this post


Link to post
Share on other sites
  • 0

lol dude, u didn't saw that u were with a plus } not commented out? just use the code I posted, I use it and it works.

Share this post


Link to post
Share on other sites
  • 0

'-'!! Oh! hahahahaha yeah, I have to admit that was silly of me not to notice that additional }. Sorry about that. This is what I'm currently using.

 

 

int itemdb_isidentified(int nameid) {
 return 1;
// int type=itemdb_type(nameid);
// switch (type) {
// case IT_WEAPON:
// case IT_ARMOR:
// case IT_PETARMOR:
//  return 0;
// default:
// }
}
/* same as itemdb_isidentified but without a lookup */
int itemdb_isidentified2(struct item_data *data) {
 return 1;
 switch (data->type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
 return 0;
default:
 return 1;
 }
}

 

 

Somehow my Hercules didn't identify items by just modifying isidentified. I also had to modify isidentified2. I can't express enough how glad and thankful I am about this. Thank you evilpuncker, Thank you Angelmelody.

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.