Quote:
Originally Posted by Gunderak
Use SQLITE for an item db, or even a DBNPC and then have method of sending and retrieving data from it.
That would be an even better item system.
One bad thing about what you're currently using, this. variables as soon as you restart graal it's value will be reset to null.
|
Ignore him he doesn't know what he's talking about.
SQL, NPC Flags, Files are all just storage for the item data. Establish a basic item system first:
For tracking the quantity of the item:
clientr.item.("item name") = quantity
Store item data in a DB:
this.("item name") = {item, data};
For making the data of the weapon accessible to your client-side scripts set the following as needed in player flags (this should be a mirror of your DB data):
clientr.data.("item name") = {item, data}
Search MUDlib on the forums for discussion on the topic of "item systems".