Quote:
Originally Posted by Rapidwolve
It's like an assurance that if something happens the text file will still be there. Say some idiot resets your ItemLib npc, what do you do then o_o
|
Don't give that idiot the rights to do such a thing? lol
Also, you can easily program the database to store the items, example.
HTML Code:
function onCreated()
{
for (temp.currentItem: getstringkeys("this.item"))
unset("this.item"@ temp.currentItem);
this.item1 = {"bomb", "wbomb.png", "weapon", {weight, volume}, {necessary data, such as damage and radius}};
}
That's how I'd do an item system, instead of storing all of this information. It seems rather pointless if you ask me.