Is it possible to identify items in the first place?

deviruzy

New member
Messages
67
Points
0
 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.

 
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;
}
}
 
Last edited by a moderator:
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!

 
;-; 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;
 }
}
 
Last edited by a moderator:
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.

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

 
Back
Top