Jump to content
  • 0

Identify Npc


MrNobody

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

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.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1188
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

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.  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1188
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

Try this, include quest to get cheaper price

at this part

// Prices
set @price, 50; // Price to identify one item, BEFORE finishing quest
set @price2, 0; // Price to identify one item, AFTER quest

identification.txt

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

3 minutes ago, hendra814 said:

Try this, include quest to get cheaper price

at this part

// Prices
set @price, 50; // Price to identify one item, BEFORE finishing quest
set @price2, 0; // Price to identify one item, AFTER quest

identification.txt 8.19 kB · 0 downloads

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/11/23
  • Last Seen:  

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 

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