How do you calculate the remaining monsters? Checking all values of arrays.
prontera,155,175,4 script TestScript 69,{
setarray .@mob_id, 1002, 1004, 1005;
setarray .@mob_qt, 1, 3, 8;
setarray .@mob_req, 7, 8, 10;
for(; .@i < getarraysize(.@mob_id); .@i++){
if(.@mob_qt[.@i] >= .@mob_req[.@i]) {
dispbottom "You hunted down all the monsters on that map.";
}
else {
dispbottom "You still have to hunt down the following monsters:";
dispbottom "MonsterID: "+.@mob_id[.@i]+" Amount: "+.@mob_qt[.@i]+" Required quantity: "+.@mob_req[.@i];
}
}
end;
}