Jump to content

Question

Posted

Hi all, may I request a Identify npc for my server use. Im not good on scripting too new to this.

Identify NPC function:-
- Identify item with cost per item.
- easy to edit the cost.
- simple dialog.

Thank you.

6 answers to this question

Recommended Posts

  • 1
Posted
Just now, MrNobody said:

Cool it works fine. But can you explain the npc function for me? @hendra

you can use identify the item with Deckard Cain without quest first with price 50z for each item.

but if you complete quest first with NPC Kashya, you will get free cost how many item you bring in your inventory.

  • 0
Posted
42 minutes ago, MrNobody said:

Hi all, may I request a Identify npc for my server use. Im not good on scripting too new to this.

Identify NPC function:-
- Identify item with cost per item.
- easy to edit the cost.
- simple dialog.

Thank you.

Quote
prontera,164,170,3	script	Identifier	831,{
set .@n$,"^0000FF[ Identifier ]^000000";
mes .@n$;
mes "Hello "+strcharinfo(0)+",for 100";
mes "Zenny I'm going to identify";
mes "all items in your inventory.";
next;
mes .@n$;
mes "Do you want me to Identify your Items?";
next;
switch(select("Yes:No")) {
case 1:
if(Zeny < 100) {
mes .@n$;
mes "Sorry,but you don't have enough Zeny!";
close;
}
mes .@n$;
mes "Okay identifying!";
set Zeny,Zeny - 100;
getinventorylist;
for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {
if ( @inventorylist_identify[.@i] == 1 ) continue;

delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[.@i],1;
}
case 2:
close;
}
}

 

  • 0
Posted
24 minutes ago, GM Winter said:

 

@GM Winter Thanks for your fast respond. But this wasn't the identify npc that I'm looking for.
Because this npc only pays one time for the identify service and It also bugged even u dont have any item need to identify that npc still deduct your zeny btw. What I need is cost charges per item not per  service.  

  • 0
Posted
On 5/11/2023 at 4:05 PM, hendra814 said:

you can use identify the item with Deckard Cain without quest first with price 50z for each item.

but if you complete quest first with NPC Kashya, you will get free cost how many item you bring in your inventory.

Ahh.... Thank you for the explain in details... xD 

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