View Single Post
  #14  
Old 04-08-2007, 07:44 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Rapidwolve View Post
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.
Reply With Quote