Date: 2015/11/18 20:07:27 UTC-08:00
Type: Denizen Script
- flag npc ItemShop.ItemList:!
- foreach <s@ItemShop_Config.list_keys[Shops.Types.<npc.flag[ItemShop.Type]>]> {
- flag npc ItemShop.ItemList:->:<def[value]>
}
- define size <npc.flag[ItemShop.ItemList].size>
- while <def[size].is[LESS].than[54]> {
- define size <def[size].div[9].round_up.mul[9]>}
- inventory open "d:in@<npc.flag[ItemShop.Type]>Shop[size=%size%;title=<&8><npc.flag[ItemShop.Type]<npc.flag[ItemShop.Type]>;contents=<npc ItemShop.ItemList>]"