View Single Post
  #14  
Old 02-05-2007, 08:28 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I simply define an array of what variables I want to display to client and they're searched for and writen to clientr flags. And I also use a function when getting the item data from clientr flags. mud_getitemrefvar(varname, itemid) So i'm not dependent on index of stuff in the array.

A good example of the usefulness of this is I only display the fullname on client. In the item object the full name is created from name_pre, name_suf, name_sl, and name_pl. For Prefix, Suffix, Singular and Plural. I'm sure its obvious how that goes. So if I used some spell called Disentigrate Weapon, it would reduce the damage of the active weapon and change the item's prefix to "Rusted" or something. And because the item would then have differences from the archetype its marked as unique and the new prefix and damage are saved with the item, then any operations done by archetype only don't include that item since its unique, something must be done to it by specific ID.
__________________
Reply With Quote