GM Takumirai Posted May 6, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted May 6, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 17 hours ago Share 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 Link to comment Share on other sites More sharing options...
GM Takumirai Posted May 6, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Author Share Posted May 6, 2012 Tnx emistry ur a big help Quote Link to comment Share on other sites More sharing options...
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 TakumiraiLink to comment
Share on other sites
2 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.