Paste #4115: For zee

Date: 2014/05/06 03:27:58 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


#Created by: KeangDavid
#Server: mc.keangdom.com
OpenPetShop:
    type: world
    events:
        on petshop command:
        - inventory open d:in@location[holder=l@-4.0,1.0,2.0,keangdom]
        on player clicks in inventory:
        - if <context.item.display> == "Pet Baby Cow" {
            - if <player.has_permission[echopet.pet.type.cow]> {
              - execute as_op "pet cow"
              - narrate "<green>Pet cow selected"
              } else narrate "<red>You do not have this pet."
            }
        - if <context.inventory> == in@location[holder=l@-4.0,1.0,2.0,keangdom] determine CANCELLED