Paste #22790: Edit of P#22788 - Edit of P#22784 - Untitled Paste

Date: 2015/11/18 20:07:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8


- 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>]"