warp .Map$,0,0;
set .Hunter[getarraysize( .Hunter )], getcharid(3);
set #HuntRoomDelay, gettimetick(2); // please don't set the deny variable into the future, if admin adjust the setting to decrease the value, player will experience long deny
set #FarmHunt,0;
end;
change to
if ( countitem( 512 ) >= 10 ) {
delitem 512,10;
warp .Map$,0,0;
set .Hunter[getarraysize( .Hunter )], getcharid(3);
set #HuntRoomDelay, gettimetick(2); // please don't set the deny variable into the future, if admin adjust the setting to decrease the value, player will experience long deny
set #FarmHunt,0;
end;
}
else {
mes "You need 10 Apple.";
close;
}