View Single Post
  #12  
Old 05-02-2011, 03:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
This thread is basically a request for an item system.

Basic Item System:

1. Create a DB to hold the item information.
2. Use clientr.flags to store the item information on the player for quick client-side read access.
3. Also use clientr.flags to store the item, it's identifier, and the quantity.

You can use the clientr.flags to display the items in an inventory and throughout other GUIs.

You could also make a GUI for adding items to the DB.

Unfortunately I believe this is beyond your skill level, and a problem that should be broken in to chunks and addressed-per-issue. I may (other experienced scripters are welcome as well) post a basic system with expandability in mind, since this is a pretty common system people like to implement.

I would recommend searching the NPC Scripting forums for 'Item System' and 'MUDLib' and reading the problems and solutions of the past.
__________________
Quote:
Reply With Quote