
02-05-2011, 07:04 PM
|
|
¯\(º_o)/¯
|
 |
Join Date: Sep 2006
Location: Norway
Posts: 2,815
|
|
|
Then you edit the TStaticVar of the item afterwards to add the random stats. Since these random stats are not part of the base item, you need to store these variables together with their random values somewhere along with the base of the item, and then handle it from there.
Basically the system I described in the posts above handles the base of items. If you want to alter it, you do it to the TStaticVar afterwards and store the changes as well as the base of the item. Then when you login you retrieve the base of the item and then parse the custom variables into the TStaticVar. Then you eventually synchronize the items into clientr. strings or objects on the clientside so clientside scripts like inventories can access the parsed item data.
This is why TStaticVar's are more superior to arrays when you want something more flexible. |
|
|
|