WhiteEagle 6 Posted June 28, 2019 (edited) Gives here in hercules anything what is similar with "countinarray" from rathena? *countinarray <array name>{[<start index>]},<array name>{[<start index>]}; I Need this for this part here: setarray .@gqname$[0],"Kill Mantis","Kill Bees","Kill Soils","Kill Porings"; .@null$ = "NULL"; while(countinarray(.@gqname$[0], .@null$) != 2) .@gqname$[rand(getarraysize(.@gqname$))] = .@null$; switch(select(replacestr(implode(.@gqname$, ":"), .@null$, ""))) { case 1: mes("mantis"); close; case 2: mes("bees"); close; case 3: mes("soils"); close; case 4: mes("porings."); close; } Edited June 28, 2019 by WhiteEagle Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted June 29, 2019 array_count Quote Share this post Link to post Share on other sites
0 WhiteEagle 6 Posted June 29, 2019 (edited) Thanks Dastgir. Why is not this basically present in hercules? Just a question. PS: I get now the error message: parse_simpleexpr: unmatched ')' in this line here and the part with "(" while(array_count"(".@gqname$,2)) Edited June 29, 2019 by WhiteEagle Quote Share this post Link to post Share on other sites
Gives here in hercules anything what is similar with "countinarray" from rathena?
I Need this for this part here:
Share this post
Link to post
Share on other sites