Jump to content

Question

Posted (edited)

My problem is the item when use if weight is more than 0 it still can used but the skill points is not reset ..

i need your help to modify my script because i can't get it to the correct one

{ if(Weight < 0){callfunc "F_CashReset";}else{dispbottom "Your weight is not [0] make sure to check your weight"; getitem 12213,1;} },{},{}

if weight is < or = to 0 go to call function

else

if weight is over the weight message will appear and the item will not be used but the item is still in the inventory

Edited by GM Takumirai

2 answers to this question

Recommended Posts

Posted

double check your code....

 if(Weight < 0){

your weight will never below 0

you want it to check whether it is 0 or not...but you only check the number below 0 and not 0 itself..

so the correct 1 should be

 if(Weight <= 0){

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...