PewN Posted July 25, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 25, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
PewN Posted July 25, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Author Share Posted July 25, 2012 (edited) i got problem emistry. even 30k weight got the message bump Edited July 25, 2012 by bVersatile Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted July 25, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted July 26, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 26, 2012 @Emistry: Weight is given in 0.1 increments, you'd want 400000. Quote Link to comment Share on other sites More sharing options...
Lighta Posted July 26, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
Question
PewN
can anyone help me. check the weight of the character if the character have 40k+ weight . it will
Link to comment
Share on other sites
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.