OscarScorp Posted September 13, 2021 Posted September 13, 2021 Good day everyone, I'm looking for the option to remove the Magnifier Requirement for dropped equipment, meaning weapons and armors will drop already revealed. I remember seeing this option somewhere but can't find it anymore. Maybe it was a dream? Quote
0 WhiteEagle Posted September 13, 2021 Posted September 13, 2021 I don't have test it, but it should work. Go in itemdb.cpp and search for /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: case IT_ARMOR: case IT_PETARMOR: case IT_SHADOWGEAR: case IT_CHARM: return 0; default: return 1; } } and change it to: /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); { return 1; } } or if you want only for weapons and armor: /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: return 1; case IT_ARMOR: return 1; case IT_PETARMOR: case IT_SHADOWGEAR: case IT_CHARM: return 0; default: return 1; } } 1 Quote
0 OscarScorp Posted September 14, 2021 Author Posted September 14, 2021 7 hours ago, WhiteEagle said: I don't have test it, but it should work. Go in itemdb.cpp and search for /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: case IT_ARMOR: case IT_PETARMOR: case IT_SHADOWGEAR: case IT_CHARM: return 0; default: return 1; } } and change it to: /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); { return 1; } } or if you want only for weapons and armor: /** Specifies if item-type should drop unidentified. * @param nameid ID of item */ char itemdb_isidentified(t_itemid nameid) { int type=itemdb_type(nameid); switch (type) { case IT_WEAPON: return 1; case IT_ARMOR: return 1; case IT_PETARMOR: case IT_SHADOWGEAR: case IT_CHARM: return 0; default: return 1; } } Works. Thank you so much! Quote
Question
OscarScorp
Good day everyone,
I'm looking for the option to remove the Magnifier Requirement for dropped equipment, meaning weapons and armors will drop already revealed.
I remember seeing this option somewhere but can't find it anymore. Maybe it was a dream?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.