Paste #1550: For TheRealKeith

Date: 2014/01/30 20:51:32 UTC-08: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


# What you have
  - foreach <global.flag[removeablenpcs].aslist> {
    - if <%value%.id> != %value%.id && <global.flag[dontremove.<%value%.id>]> != <null> {
      - remove %value%
    }
      } 
# what it should be
  - foreach <global.flag[removeablenpcs].aslist> {
    - if <%value%.id> != %value%.id && <global.flag[dontremove.<%value%.id>]> != null {
      - remove %value%
      - flag global removeablenpcs:->:%value%
      }
    }