Deleted User Posted May 8, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted May 8, 2013 (edited) REMOVED Edited June 5, 2017 by Kaze Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 8, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 8, 2013 Try this; function script SWPackage { setarray .@items[0],501,502; setarray .@qtys[0],1,1; if (!checkweight2(.@items,.@qtys)) { mes "You're overweight!"; Quote Link to comment Share on other sites More sharing options...
Yudax Posted May 8, 2013 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 248 Reputation: 7 Joined: 11/27/12 Last Seen: July 21, 2016 Share Posted May 8, 2013 A script from sir Emistry just change the item#, replace your getitem with this if( checkweight( 7037,.@num ) ){ getitem 7037,.@num; delitem 607,.@num*500; }else{ mes "You are Overweight"; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted May 10, 2013 since you are using array to store all the item list... you can use this to check.. if( checkweight2( .SWitems,.SWquantities ) ){ // getitem }else{ // overweight. } Quote Link to comment Share on other sites More sharing options...
Question
Deleted User
REMOVED
Edited by KazeLink to comment
Share on other sites
3 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.