Jump to content
  • 0

REMOVED


Deleted User

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

REMOVED

Edited by Kaze
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Try this;

function	script	SWPackage {

setarray .@items[0],501,502;
setarray .@qtys[0],1,1;
if (!checkweight2(.@items,.@qtys)) { mes "You're overweight!";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

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";
}
Link to comment
Share on other sites


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

since you are using array to store all the item list... you can use this to check..

if( checkweight2( .SWitems,.SWquantities ) ){
   // getitem
}else{
   // overweight.
}
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...