JHONDOMINIC Posted November 18, 2020 Share Posted November 18, 2020 I try to make something but i have a problem in 1st step. after identify by Magnifier Ex. I use Magnifier for identify Hat of the Sun God(5022) after identify it's possible to save identify item_id by Magnifier to variable? Thank you sir. Quote Link to comment Share on other sites More sharing options...
0 fusqueta Posted November 19, 2020 Share Posted November 19, 2020 I did not understood your problem, can you explain more datailed? Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted November 19, 2020 Share Posted November 19, 2020 skill.cpp in function skill_identify void skill_identify(struct map_session_data *sd, int idx) { int flag=1; nullpo_retv(sd); sd->state.workinprogress = WIP_DISABLE_NONE; if(idx >= 0 && idx < MAX_INVENTORY) { if(sd->inventory.u.items_inventory[idx].nameid > 0 && sd->inventory.u.items_inventory[idx].identify == 0 ){ flag=0; sd->inventory.u.items_inventory[idx].identify = 1; pc_setreg(sd, add_str("@identifiedid"), sd->inventory.u.items_inventory[idx].nameid); /// Add this } } clif_item_identified(sd,idx,flag); } Havent tested the code but you should be able to use @identifiedid to get the ID Quote Link to comment Share on other sites More sharing options...
I try to make something but i have a problem in 1st step.
after identify by Magnifier
Ex. I use Magnifier for identify Hat of the Sun God(5022)
after identify it's possible to save identify item_id by Magnifier to variable?
Thank you sir.
Link to comment
Share on other sites