UID2354
帖子
精華
主題
積分234087
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限50
註冊時間2007-8-17
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2021-12-17 05:30 AM |
---|
簽到天數: 237 天 連續簽到: 1 天 [LV.7]常住居民III
|
發表於 2009-11-24 23:03:33
|
顯示全部樓層
不 需 要 那 麼 麻 煩
*getinventorylist;
This command sets a bunch of arrays with a complete list of whatever the
invoking character has in their inventory, including all the data needed to
recreate these items perfectly if they are destroyed. Here's what you get:
@inventorylist_id[] - array of item ids.
@inventorylist_amount[] - their corresponding item amounts.
@inventorylist_equip[] - whether the item is equipped or not.
@inventorylist_refine[] - for how much it is refined.
@inventorylist_identify[] - whether it is identified.
@inventorylist_attribute[] - whether it is broken.
@inventorylist_card1[] - These four arrays contain card data for the items.
@inventorylist_card2[] These data slots are also used to store names
@inventorylist_card3[] inscribed on the items, so you can explicitly check
@inventorylist_card4[] if the character owns an item made by a specific
craftsman.
@inventorylist_count - the number of items in these lists.
This could be handy to save/restore a character's inventory, since no other
command returns such a complete set of data, and could also be the only way to
correctly handle an NPC trader for carded and named items who could resell them
- since NPC objects cannot own items, so they have to store item data in
variables and recreate the items.
Notice that the variables this command generates are all local and numeric. |
|