Jump to content
  • 0

available options cannot be selected. HELP please


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Hi everyone. Im trying to make a script however im having a trouble with the script that i make.
 
I want to make all the options be available. I mean as you can see only the first option is the only one that can be selected. it cannot be skipped. I want all the available options be selected by only entering the correct id number. as long as the id is available whatever id comes first i want the second or the other id can be selected as well.
 
I hope you get what i mean.
 
here is the script. please fix it for me. thanks a lot..

prontera,150,150,5	script	Usagi	89,{

set .@n$, "[Miss Usagi]";

checkstatus:

query_sql("SELECT char_id,account_id,name,class,base_level,job_level FROM `char` ",@charid,@accntid$,@name$,@class$,@blevel$,@jlevel$);


mes .@n$;
mes "This are the Players that is already reached the max level. Please choose the player that you want to check the information.";
mes "===================================";	
			for (.@i = 0; .@i < getarraysize(@blevel$); .@i += 1) {       
				if ("99" == @blevel$[.@i]) {	
					mes ""+@charid[.@i]+" || "+@name$[.@i]+"";
						}
					}

next;						
	input ( .@level );
			
			for (.@i = 0; .@i < getarraysize(@charid); .@i += 1) {
			if ( .@level != @charid[.@i] ) {
			mes .@n$;
			mes "The Character ID that you enter is not available. Please enter the correct Character ID.";
			next;
			switch(select("Re-enter Character ID")) { goto checkstatus;	}
				}
				
mes .@n$;
mes "Account ID: "+@accntid$[.@i]+"";
mes "Character ID: "+@charid[.@i]+"";
mes "Name : "+@name$[.@i]+"";
mes "Class Type: "+@class$[.@i]+"";
mes "Base Level: "+@blevel$[.@i]+"";
mes "Job Level: "+@jlevel$[.@i]+"";
close;
		}
}

and also if in case that there is no available player that reached lvl 99. I want this text be appeared.

 

 

"There's no Player/s reached level 99 yet."

 

Please help me. Thanks again.

 


hello ??


does anyone knows how to fix this??

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.   Paste as plain text instead

  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.

×
×
  • Create New...