GM Takumirai Posted May 6, 2012 Posted May 6, 2012 (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 May 6, 2012 by GM Takumirai Quote
Emistry Posted May 6, 2012 Posted May 6, 2012 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){ Quote
Question
GM Takumirai
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 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 Takumirai2 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.