summaryrefslogtreecommitdiff
path: root/npc/001-2-22/chest.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/001-2-22/chest.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/001-2-22/chest.txt')
-rw-r--r--npc/001-2-22/chest.txt49
1 files changed, 0 insertions, 49 deletions
diff --git a/npc/001-2-22/chest.txt b/npc/001-2-22/chest.txt
deleted file mode 100644
index 69e8a8af..00000000
--- a/npc/001-2-22/chest.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-// Evol scripts.
-// Authors:
-// 4144
-// gumi
-// Reid
-// Description:
-// A box with clothes for new players.
-
-001-2-22,51,37,0 script Chest#Artis NPC_CHEST_BIG,2,4,{
-
- if (.busy == false)
- {
- specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
- .dir = .dir == 0 ? 2 : 6; // closed ? opening : closing
- .busy = true; // lock until available again
- initnpctimer;
- }
- end;
-
-OnTimer220:
- .dir = .dir == 6 ? 0 : 4; // closing ? closed : open
- end;
-
-OnTimer500:
- .busy = false; // unlock
-
- if (.dir == 0)
- {
- stopnpctimer; // stop here if the chest is closed
- }
- end;
-
-OnUnTouch:
- if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0)
- {
- end;
- }
-OnTimer30000:
- .busy = true;
- .dir = 6; // closing
- specialeffect(25, AREA, getnpcid()); // closing
- setnpctimer 0;
-OnTouch:
- end;
-
-OnInit:
- .distance = 2;
- end;
-}