prontera,150,150,4 script Resetter 69,{
if(PC_DIE_COUNTER > 0 && countitem(501) >= 10){
delitem 501,10;
PC_DIE_COUNTER = 0;
mes "Your PC_DIE_COUNTER has been reset to 0.";
close;
}
mes "No die counter or not enough Red Potion.";
close;
}
It's just a rough script but you should be able to make it work the way you want it, it has everything you need