Author Topic: Inventory Items  (Read 3294 times)

Offline Ricardo-san

Inventory Items
« on: March 26, 2008, 06:10:06 pm »
Is there any way to make a sort of inventory under the avatar? to display certain items, such as a weapon, armor, leggings, etc. I have seen it done with vbulletin at http://h0ly.net and what about that fish tank? :D

Offline Basil Beard

Re: Inventory Items
« Reply #1 on: March 27, 2008, 11:30:44 am »
The short answer is yes. Its totally possible. The items are just rows in a database, and the stuff that displays things next to the avatar just calls database rows to get all that information.

I recall someone trying to do this before, you can always poke around and see if anything became of it. If not, you'll have to either do it yourself, or wait for someone else here to do it for you. Making it work right probably isn't hard as long as you understand some PHP/Sql. =)
Arrrrr!

Offline Ricardo-san

Re: Inventory Items
« Reply #2 on: March 27, 2008, 12:34:09 pm »
Thanx Basil. I know a lot of PHP and MySQL, could probably do it right now. But I was thinking about making a sort of "rpg-battle" system using items. I would set Karma to regular, no negatives. Then, there would be attack items, that subtract Karma, and defense items, that add Karma. This would probably be pretty easy, but I just want to know if their is a way to give a user credits after successfully taking away all of another's user's Karma. Eh...I actually don't think Karma will work for this, because you start off with 0. Any suggestions?

Oh yeah. Also, is there any way to give items categories, such as helmet, weapon, clothing etc.? Users can buy one of each and that displays below the avatar. http://senkouryu.net has a really cool shop system like this. 

Offline Basil Beard

Re: Inventory Items
« Reply #3 on: March 28, 2008, 08:01:04 am »
Having items increase/decrease Karma and increase/decrease money at the same time is very very easy. You could basically just, steal the code from the karma increase item and steal the code from a money increase item and smoosh them together.

It would also be pretty easy to use a new field instead of Karma. Just add a col to the members database table  :D
Arrrrr!

Offline Ricardo-san

Re: Inventory Items
« Reply #4 on: March 28, 2008, 11:04:16 am »
Thanks Basil. :)