Paste #9958: Edit of P#9956 - Edit of P#9954 - Edit of P#9953 - Untitled Paste

Date: 2014/09/21 20:38:25 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


- foreach <global.flag[store].escape_contents> {
            - if <def[value].unescaped.as_cuboid.is_within[<context.entity.location>]> {
              - if <server.flag[<context.entity.framed_item.full.escaped>]> == null {
                - flag server <context.entity.framed_item.full.escaped>:1.00
                - determine cancelled
                } else if <yaml[prices].read[prices.<context.entity.framed_item.full.escaped>]> == null {
                - foreach <server.list_online_players> {
                  - if <def[value].has_permission[<script.constant[permission_for_whatever]>]> {
                    - narrate "<c.entity.framed_item> has no price! please set a price for this item by holding it in your hand ant typing /price" to:%value%
                    }
                    else if !<server.flag[pricemessage].contains[<c.entity.framed_item>]> {
                    - flag server pricemessage:->:<c.entity.framed_item>
                    }
                  }
                - narrate "this item has no price. please contact the servers administrators to let them know"
                - determine cancelled
                }