View Single Post
  #8  
Old 04-04-2006, 09:19 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Yen
clientr.items="Training Sword",weapons/sword/trainingsword,1,"Potion of Life",items/lifepotion,31

clientr.muditem_Training Sword="Training Sword",zod-trainingsword.png,zodsword3.png,...
clientr.muditem_Potion of Life=blah

When you log on or pick up an item, it loads all of your item's variables from the server.
clientr.items is a list of items you have in your possession, it references the systems to the proper string and holds quantity.
Maybe you should store less information in your clientr.items string and more in your clientr.muditem_ strings. Hell, you could even move it all into clientr.muditem_ strings, and then just use getstringkeys("clientr.muditem_") to get all of the muditem strings.
__________________
Skyld