summaryrefslogtreecommitdiff
path: root/npc/000-2-1
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-06-29 01:28:16 +0200
committerReid <reidyaro@gmail.com>2012-06-29 01:28:16 +0200
commita6c01f342b1336cdfd9cf09cf21e7f4c83d9559d (patch)
treee3289516c8409e4126b1cd90a905ed4b721cf733 /npc/000-2-1
parent3439a1b28c9afa8a4289812e98e8969f4ec949b3 (diff)
downloadserverdata-a6c01f342b1336cdfd9cf09cf21e7f4c83d9559d.tar.gz
serverdata-a6c01f342b1336cdfd9cf09cf21e7f4c83d9559d.tar.bz2
serverdata-a6c01f342b1336cdfd9cf09cf21e7f4c83d9559d.tar.xz
serverdata-a6c01f342b1336cdfd9cf09cf21e7f4c83d9559d.zip
Cut box script from arpan.txt to box.txt,
Add start of animation on box.txt .
Diffstat (limited to 'npc/000-2-1')
-rw-r--r--npc/000-2-1/_import.txt2
-rw-r--r--npc/000-2-1/arpan.txt32
-rw-r--r--npc/000-2-1/box.txt41
3 files changed, 42 insertions, 33 deletions
diff --git a/npc/000-2-1/_import.txt b/npc/000-2-1/_import.txt
index c06250b8..5183268e 100644
--- a/npc/000-2-1/_import.txt
+++ b/npc/000-2-1/_import.txt
@@ -10,4 +10,4 @@ npc: npc/000-2-1/knife.txt
npc: npc/000-2-1/dan.txt
npc: npc/000-2-1/savepoint.txt
npc: npc/000-2-1/hammock.txt
-npc: npc/000-2-1/chest.txt \ No newline at end of file
+npc: npc/000-2-1/box.txt
diff --git a/npc/000-2-1/arpan.txt b/npc/000-2-1/arpan.txt
index 3592fa9d..ce672b80 100644
--- a/npc/000-2-1/arpan.txt
+++ b/npc/000-2-1/arpan.txt
@@ -78,38 +78,6 @@ l_EquipDone:
}
-000-2-1.gat,41,37,0 script Box 999;2,{
- mesn "Narrator";
-
- set @q, geta2(ShipQuests, ShipQuests_Arpan);
- if (@q == 1) goto l_Give;
- if (@q > 1) goto l_Empty;
-
- mes col(l("This box is locked"), 9);
- close;
-
-l_Give:
- mes col(l("You see some items in the box. Take them out?"), 9);
- next;
-
- menu
- l("Yes."), -,
- l("No."), l_Close;
-
- seta2 ShipQuests, ShipQuests_Arpan, 2;
- getitem "WornShirt", 1;
- getitem "WornShorts", 1;
-
-l_Close:
- close;
-
-l_Empty:
- mes col(l("This box is locked."), 9);
-
- close;
-
-}
-
000-2-1.gat,39,33,0,1 script Magic Arpan 307;5,{
diff --git a/npc/000-2-1/box.txt b/npc/000-2-1/box.txt
new file mode 100644
index 00000000..0e67fddc
--- /dev/null
+++ b/npc/000-2-1/box.txt
@@ -0,0 +1,41 @@
+// Evol scripts.
+// Authors:
+// 4144, Reid
+// Description:
+// A box with clothes for every new player.
+// Variable:
+// ShipQuests_Arpan
+// Values:
+// 1: Talked to Arpan. Need to get cloths
+// 2: Got cloths
+
+000-2-1.gat,41,37,0 script Box 317;2,{
+
+ set @q, geta2(ShipQuests, ShipQuests_Arpan);
+ if (getnpcdir ("") == 4) goto l_Give;
+
+ setnpcdir 2;
+ initnpctimer;
+ startnpctimer;
+ close;
+
+l_Give:
+ if (@q > 1) goto l_Close;
+ seta2 ShipQuests, ShipQuests_Arpan, 2;
+ getitem "WornShirt", 1;
+ getitem "WornShorts", 1;
+ close;
+
+l_Close:
+ setnpcdir 6;
+ initnpctimer;
+ startnpctimer;
+ close;
+
+OnTimer220:
+ stopnpctimer;
+ if (getnpcdir ("") == 2) setnpcdir 4;
+ if (getnpcdir ("") == 6) setnpcdir 0;
+ end;
+
+} \ No newline at end of file