Paste #32865: Wool help 3

Date: 2016/04/18 17:24:02 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8


script:
                - if <player.inventory.contains_any[WOOL]> {
                    - define woolamount <player.inventory.quantity[WOOL]>
                    - take i@wool qty:woolamount
                    - define moneyamount <def[woolamount].mul[2]>
                    - give money qty:moneyamount
                    - narrate "You have traded <npc.name> <def[woolamount]> for <def[moneyamount]> coins."
                    }