Date: 2016/04/18 17:24:02 UTC-07:00
Type: Denizen Script
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."
}