How do you calculate the remaining monsters? Checking all values of arrays.
prontera,155,175,4 script TestScript69,{
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;}
Question
M4karov
How do you calculate the remaining monsters? Checking all values of arrays.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.