Excellia - Item support
by, 11 August 2011 at 12:28 AM (4021 Views)
So today I've mostly been focusing on improving the item support system. I already had a basic system which dealt with the rough edges (equipping/un-equipping, depositing and withdrawing). Though that was just temporary, and totally not to my likings.
Now, I've written a neat system which allows me to fully manage any item-related activity on the server. Amongst those classes, there is an item container class which maintains basically all items on an interface. With dedicated container listeners that listen for any changes in the container and synchronise the client-sided interfaces of that container. Inventory, bank, equipment, trade offers and the bank deposit box, which brings me to the following.
I was working on the banking system, hence allowing the bank booths to open them (more on object options in another post), in the west bank of Varrock when I noticed the Bank Deposit Box standing in the corner. I figured "While I'm at it, why not add deposit boxes as well?". So I started working on it. It wasn't hard though, basically the same thing as normal banking, just with limited features and different interfaces.
So the result of today is that I've created an almost complete, perfect banking system that includes depositing boxes. All that's left is to complete one or two bug fixes, do some unit tests and I have yet to complete item switching in interfaces (i.e. swapping the slots of 2 items in your bank). But I have already completed the methods to deal with this, so I suspect it won't be much work to finish it all tomorrow.
I still have to decide what I'm going to do after this, either start working on friends, ignores and (cross-world) private messaging or proceed with the item support and begin working on a trading system. Either way, the next post I'll make shall probably be about the object management.
Thanks for reading!