diff options
Diffstat (limited to 'npc/081-1/extra.txt')
-rw-r--r-- | npc/081-1/extra.txt | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/npc/081-1/extra.txt b/npc/081-1/extra.txt index c39d5a22..4cf01650 100644 --- a/npc/081-1/extra.txt +++ b/npc/081-1/extra.txt @@ -157,8 +157,8 @@ OnInit: 081-2,90,288,0 script #X21ADMIN NPC_NO_SPRITE,{ - if (!is_admin()) end; if (instance_id() < 0) end; + if (!is_admin()) goto L_Auto; clear; do { @@ -188,6 +188,36 @@ OnInit: } while (@menu != 1); closeclientdialog; close; + +L_Auto: + /* Attempt to fix Candle state */ + if (!'XMAS21CANDLE) { + if (checkcell(getmap(), 105, 212, cell_chkpass)) + setcells getmap(), 103, 211, 107, 212, 1, "X21L1@"+X21ID(); + } else { + if (!checkcell(getmap(), 105, 212, cell_chkpass)) + delcells "X21L1@"+X21ID(); + } + + /* Attempt to fix Seeds state */ + if (!'XMAS21TREE) { + if (checkcell(getmap(), 127, 128, cell_chkpass)) + setcells getmap(), 124, 127, 131, 128, 1, "X21L2@"+X21ID(); + } else { + if (!checkcell(getmap(), 127, 128, cell_chkpass)) + delcells "X21L2@"+X21ID(); + } + + /* Attempt to fix Ambush state */ + if (!'XMAS21AMBUSH) { + if (checkcell(getmap(), 49, 72, cell_chkpass)) + setcells getmap(), 47, 71, 51, 72, 1, "X21L3@"+X21ID(); + } else { + if (!checkcell(getmap(), 49, 72, cell_chkpass)) + delcells "X21L3@"+X21ID(); + } + end; + OnInit: .distance=1; end; |