Jump to content
  • 0

check weight?


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

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;

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if( Weight >= 400000 ){
mes "Reduce ur weight.";
close;
}

@Emistry: Weight is given in 0.1 increments, you'd want 400000.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

i got problem emistry. even 30k weight got the message

bump

Edited by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

i got problem emistry. even 30k weight got the message

bump

Paste your script. Emistry's code should have worked.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@Emistry: Weight is given in 0.1 increments, you'd want 400000.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...