Jump to content
  • 0

Simple Item Identifier Npc


Question

9 answers to this question

Recommended Posts

  • 1
Posted

@patr3k: This is the script I use (it's included in my All-In-One NPC):

<header> {
set .@Price, 100;	// Zeny per identify
getinventorylist;
for(set .@i,0; .@i<@inventorylist_count; set .@i,.@i+1) {
	if (@inventorylist_identify[.@i]) continue;
	if (Zeny < .@Price) {
		dispbottom "It costs "+.@Price+" to identify an item."; break; }
	set Zeny, Zeny-.@Price;
	delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
	getitem @inventorylist_id[.@i],1;
	setarray .@Total[0], .@Total[0]+1, .@Total[1]+.@Price; }
if (!.@Total[0]) {
	message strcharinfo(0),"No items identified."; end; }
specialeffect2 154;
message strcharinfo(0),"Identified "+.@Total[0]+" items"+((.@Total[1])?" for "+.@Total[1]+" Zeny":"")+".";
end;
}

  • 0
Posted

i use this script on my server but when players get bulk of crimson unidentified weapons all of them dont have elements but when they use merchant skill and magnifiers the elements is there

 

what should be the fix magnifier npc?

Posted

@Rikimaru

About the Identifier your using, hmmm.. i tried using yours but there's a bug. Even if i dont have item/s to identify. It still charged me 100. Is possible to trap that bug? For example, if you don't have items/s to identify, npc will say... sorry you dont have item/s to identify. Something like that. :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...