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;
Question
eboni001
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.
Link to comment
Share on other sites
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.