Thread: Item DataBase
View Single Post
  #1  
Old 12-22-2011, 10:51 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Item DataBase

Well I have seen on several threads, heard from several people and realized on several servers that an ´Item-DataBase´ seems to be something good.
I wanted to try also making such a thing but how exactly are they made? Like is everything bumped in an array (doesn´t seem to be good in my oppinion)?
PHP Code:
this.items = {weapon, {statsmore stats, ...}, weapon2, {statsmore stats, ...}, ...}; 
Is it prefered to make them like
PHP Code:
this.item0001 = {weaponinfodamageimageiconmore stats, ....};
this.item0002 = {"skip""ani"NULL"skip.png""skip-icon.png", {"chat""funny"}, ....};
.... 
Can anyone maybe tell me some goods and bads about that, maybe give me an example and how they should be used and stuff? No I´m not asking for a full code, just never saw/worked with such a system so I want to see how to work with it.

I do know that everything is stored in a DB.
__________________
MEEP!

Last edited by callimuc; 12-22-2011 at 10:57 PM.. Reason: Database
Reply With Quote