18.10.2011, 18:27
Hello guys. It has been a while since my last post here, but i finally found time for scripting again!
What I need help with, is a bag system. A command called "/bag" or something like that, that shows all slots in your bag.
The bag must have 5 slots, and therefore players can only carry 5 items.
An item could for example be a cheque.
Lets say that the cheque is in bag slot 1, and when the player types "/use 1" he will get some money.
So here is what i want it to look like when "/bag" command is typed:
"-----------------------
Slot 1: Checque +20
Slot 2: Empty
Slot 3: Empty
Slot 4: Empty
Slot 5: Empty
-----------------------"
(Only the "Cheque +20" if the player has a cheque in his bag slot 1, of course
)
And when "/use 1" command is typed, the player will get $20 because its a "+20" cheque.
- And the bagslot 1 will become empty.
Hope you understand what i want to make, and hope someone will help me.
Thank you.
What I need help with, is a bag system. A command called "/bag" or something like that, that shows all slots in your bag.
The bag must have 5 slots, and therefore players can only carry 5 items.
An item could for example be a cheque.
Lets say that the cheque is in bag slot 1, and when the player types "/use 1" he will get some money.
So here is what i want it to look like when "/bag" command is typed:
"-----------------------
Slot 1: Checque +20
Slot 2: Empty
Slot 3: Empty
Slot 4: Empty
Slot 5: Empty
-----------------------"
(Only the "Cheque +20" if the player has a cheque in his bag slot 1, of course

And when "/use 1" command is typed, the player will get $20 because its a "+20" cheque.
- And the bagslot 1 will become empty.
Hope you understand what i want to make, and hope someone will help me.
Thank you.