caspa Posted March 1, 2013 Posted March 1, 2013 (edited) i'm getting invalid data on this one..... i don't know how to properly execute this one.... can somebody fix it please.. mes "[ Freebie Staff ]"; mes "Enter the ^009900Set Number^000000 of the ^ff46bdItem^000000 you want."; mes " "; mes "^ff0000Set #1 :^000000 Valkyrie"; mes "^0000ffSet #2 :^000000 Diablo"; input .@freeset$; if ( .@freeset$ == 0 || .@freeset$ >= 3 ) goto invalidset; else if ( .@freeset$ == 1 ) goto freevalk; else if ( .@freeset == 2) goto diablofree; end; invalidset: next; mes "[ Freebie Staff ]"; mes "^ff0000Invalid Set Number^000000"; next; goto setchoose; diablofree: getitem 2374,1; getitem 2537,1; getitem 2433,1; getitem 2375,1; close; freevalk: getitem 2357,1; getitem 2524,1; getitem 2421,1; getitem 5171,1; close; Edited March 1, 2013 by caspa Quote
Brian Posted March 1, 2013 Posted March 1, 2013 input .@freeset$;You're storing the input as a string, but then you're doing numeric comparisons. if ( .@freeset$ == 0 || .@freeset$ >= 3 ) Instead, you should store the input variable in an integer: input .@freeset; Quote
Question
caspa
i'm getting invalid data on this one..... i don't know how to properly execute this one.... can somebody fix it please..
Edited by caspa2 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.