Jump to content
  • 0

Zeny per identified item


Question

Posted

Can somebody please help me editing this npc to charge 1,000 zeny for each identified item and if you dont have enough zeny only identifies the items you have enough zeny to pay for?

it identifies every item even if you dont have enough zeny but when you dont, you get stuck and have to close the window.

case 1:

	if(Zeny < 1000) {

	mes .@n$;
	mes "Sorry,but you don't have enough Zeny!";
	close;

	}

	mes .@n$;
	mes "Okay, let me have a look at your inventory.";
	next;
	getinventorylist;
		while( .@idn < @inventorylist_count ){
		if ( [email protected]<script data-cfhash='f9e31' type="text/javascript">/*  */</script>_identify[.@idn] ){
			delitem2 @inventorylist_id[.@idn],1,0,0,0,0,0,0,0;
			getitem @inventorylist_id[.@idn],1;
			set Zeny,Zeny - 1000;
			}
                .@idn++;
            }
	mes .@n$;
	mes "Everything has already been identified.";
	next;
	goto Ide_Done;
	close;

5 answers to this question

Recommended Posts

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