Jump to content
  • 0
JHONDOMINIC

It's possible to save item_id after indentify by Magnifier

Question

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

2 answers to this question

Recommended Posts

  • 0

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 🙂

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

×   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...

Important Information

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