Paste #716: soulbound

Date: 2013/12/29 17:49:43 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10


RemoveSoulboundItems:
  type: task
  script:
  - ^flag player tempinv:!
  - ^foreach <player.inventory.list_contents.aslist> {
     - ^if <%value%.lore> contains '<&5><&8><&1><&9><&5><&o>soulbound' ^flag player "soulbound:->:%value%]"
        else ^flag player "tempinv:->:%value%"
     }
  - ^narrate "tempinvlist <player.flag[tempinv].aslist>"
  - ^determine "DROPS <player.flag[tempinv].aslist>"