PewN Posted July 25, 2012 Posted July 25, 2012 can anyone help me. check the weight of the character if the character have 40k+ weight . it will mes "[job mastery]"; mes "Please reduce weight"; close; Quote
Emistry Posted July 25, 2012 Posted July 25, 2012 if( Weight >= 400000 ){ mes "Reduce ur weight."; close; } @Emistry: Weight is given in 0.1 increments, you'd want 400000. Quote
PewN Posted July 25, 2012 Author Posted July 25, 2012 (edited) i got problem emistry. even 30k weight got the message bump Edited July 25, 2012 by bVersatile Quote
Arcenciel Posted July 25, 2012 Posted July 25, 2012 i got problem emistry. even 30k weight got the message bump Paste your script. Emistry's code should have worked. Quote
Euphy Posted July 26, 2012 Posted July 26, 2012 @Emistry: Weight is given in 0.1 increments, you'd want 400000. Quote
Lighta Posted July 26, 2012 Posted July 26, 2012 He mean that since some item have 0.1 weight and we didn't want to bother with decimal values weight is always*10 to get the real values. To understand with exemple an arrow at 0.1 weight in desc will be 1 weight in emulator. Then if if you want to check if a player avec over 40K weight you should actually check for 400K So in the end you'll get : if( Weight >= 400000*10 ){ mes "Reduce ur weight."; close; } And it should work fine Quote
Question
PewN
can anyone help me. check the weight of the character if the character have 40k+ weight . it will
5 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.