Quote:
Originally Posted by Cubical
I have an item by itself being load which has the unique ID of the item and I also have a bunch of clientr.item.itemname.data.etc vars that are holding the data. Would this be viable to load on each login? Keep in mind this is just one item.
PHP Code:
clientr.item.wornsword.1=1,wornsword,none,0
clientr.item.wornsword.data.bi1=mage
clientr.item.wornsword.data.bi2=1
clientr.item.wornsword.data.bi3=fireball
clientr.item.wornsword.data.gems=red
clientr.item.wornsword.data.itemdescription=Just a test sword
clientr.item.wornsword.data.itemgani=walk
clientr.item.wornsword.data.itemimage=block.png
clientr.item.wornsword.data.itemname=Worn Sword
clientr.item.wornsword.data.itemsubtype=onehandsword
clientr.item.wornsword.data.itemthumbnail=block.png
clientr.item.wornsword.data.itemtype=weapon
clientr.item.wornsword.data.realname=wornsword
clientr.item.wornsword.data.rowid=1
Any help, suggestions would be appreciated. I want to keep it like this if at all possible. It would make everything easier for me to expand later on without having just one really long string with no apparent order. I will do it the other way if needed.
|
If all items are going to have the same variables like above, just store them in one flag as an array? Then, rather than loading 14 flags per item, you load 1 per item with all 14 flags in the array.