Jump to content
  • 0

check weight?


Question

Posted

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;

5 answers to this question

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...