realRO Posted April 27, 2014 Posted April 27, 2014 Case: I have a custom box Cannot be opened if you are overweight, 40%++ Cannot be opened if you have no slot on your inventory(because you can put many pet items and not make you overweight) Will have a message or dispbottom saying that "You need to have space on your inventory to open this box" What to put in the item script? Thanks. Quote
Capuche Posted April 27, 2014 Posted April 27, 2014 Use a function function script F_openmyboxplease { .@item_id = 601;// id box if ( Weight * 100 >= 40 * MaxWeight ) { getitem .@item_id, 1; dispbottom "you are overweight"; end; } getinventorylist; if ( @inventorylist_count >= 100 ) { getitem .@item_id, 1; dispbottom "You need to have space on your inventory to open this box"; end; } getitem 501,1;// item gift return; } Quote
Question
realRO
Case:
I have a custom box
What to put in the item script?
Thanks.
1 answer 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.