I tested this one and it works.
prontera,150,150,4 script Secret Agent 85,{
set .@required, 501; // item Required
set .@amount, 10; // item amount
if(countitem(.@required) <= .@amount) { mes "I'm sorry, you are missing the "+ .@required +" for payment"; close; }
if(countitem(.@required) >= .@amount) { mes "Good, then let's move one. shall we?";
next;
warp "prontera",150,150;
delitem .@required, .@amount;
}
}
Cool! Thanks i will try this later...