01.03.2009, 16:16
How can I make an inventory system? What it would be like, is for players to carry items, could carry up to 5 of the same item within the 7 slot limit, and also so players could do a job that required them to carry many items with them to sell to other players (these players would be able to carry up to 100 of each item and have a 10 slot max). I will say that I have searched and found a plug-in for an inventory system, but unfortunately my server will be running on Linux and the plug-in is for windows. That being said, I feel you receive the most help when you take the time to go into detail of what you need help with and I will try to do that here:
Here I Will Say My Theory Of How To Make The System
Note That I Am Probably Way Wrong And Thus Is Why I Am Here
1) I would assume that we need to first create variables for the inventory system(How to I am Not Sure!)
2) I would think the next thing would be to define OnPlayerDisconnect and Connect that the player gets the same items they left the server with.
3) I would think that we next create some more but from here I would be totally lost..
4)In all honesty I have no clue what the hell I'm doing when it comes to this!
Any help is appreciated I am a visual learner and I am proud to say that all of the help I have received here has really helped me learn a lot easier since quite a few take the time to create the example and thus in turn I can pass the knowledge they gave to me on! I will be checking back hoping I can get some helpful examples! Thanks in advance!
Here I Will Say My Theory Of How To Make The System
Note That I Am Probably Way Wrong And Thus Is Why I Am Here
1) I would assume that we need to first create variables for the inventory system(How to I am Not Sure!)
2) I would think the next thing would be to define OnPlayerDisconnect and Connect that the player gets the same items they left the server with.
3) I would think that we next create some more but from here I would be totally lost..
4)In all honesty I have no clue what the hell I'm doing when it comes to this!
Any help is appreciated I am a visual learner and I am proud to say that all of the help I have received here has really helped me learn a lot easier since quite a few take the time to create the example and thus in turn I can pass the knowledge they gave to me on! I will be checking back hoping I can get some helpful examples! Thanks in advance!