almarket23
New member
- Messages
- 90
- Points
- 0
- Github
- nexus
- Emulator
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.
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.