here. ?
prontera,154,179,4 script summoner 100,{
if( countitem(512) > 500){
monster "prontera", 0, 0, "Poring", 1005, 1, strnpcinfo(0) + "::OnMobKilled";
monster "prontera", 0, 0, "Poring", 1115, 1, strnpcinfo(0) + "::OnMobKilled";
end;
}else{
mes "sorry you need 500 apple to summon";
}
OnMobKilled:
getitem 501, 1; // 1 red potion
end;
}