caspa Posted March 1, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share 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 Link to comment Share on other sites More sharing options...
Brian Posted March 1, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share 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 Link to comment Share on other sites More sharing options...
caspa Posted March 1, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted March 1, 2013 thank sir..... [ solved ] Quote Link to comment Share on other sites More sharing options...
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 caspaLink to comment
Share on other sites
2 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.