Jump to content
  • 0

Simple Item Identifier Npc


charon

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   0
  • Joined:  06/14/12
  • Last Seen:  

Can Any One Give Me Simple Item Identifier Npc Script

Edited by charon
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@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;
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   0
  • Joined:  06/14/12
  • Last Seen:  

Thanks Guys :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

@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. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

@Euphy

Thanks alot. I will try yours. But where can i set the price? LOL! Sorry...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

set .@Price, 100;	   // Zeny per identify

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

Oh f**k i didnt saw that. hahahaha. sorry im a bit sleepy. Thanks again :)

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