Jump to content
  • 0
WhiteEagle

Countinarray

Question

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 by WhiteEagle

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Thanks Dastgir.
Why is not this basically present in hercules?
Just a question. :D 

 

PS:
I get now the error message: 

    parse_simpleexpr: unmatched ')'

in this line here and the part with "("

 while(array_count"(".@gqname$,2))

 

Edited by WhiteEagle

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.