summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2012-06-29 12:55:18 +0200
committerReid <reidyaro@gmail.com>2012-06-29 12:55:18 +0200
commitf96a92f3f1f05da65855a2d85d2b405752aa909f (patch)
tree400e2dfd205d4ad31fe9abd96dd69343975d9c85
parenta6c01f342b1336cdfd9cf09cf21e7f4c83d9559d (diff)
downloadserverdata-f96a92f3f1f05da65855a2d85d2b405752aa909f.tar.gz
serverdata-f96a92f3f1f05da65855a2d85d2b405752aa909f.tar.bz2
serverdata-f96a92f3f1f05da65855a2d85d2b405752aa909f.tar.xz
serverdata-f96a92f3f1f05da65855a2d85d2b405752aa909f.zip
Correct chest npc location and script.
-rw-r--r--db/const.txt9
-rw-r--r--npc/000-1/_import.txt3
-rw-r--r--npc/000-1/chest.txt27
-rw-r--r--npc/000-2-1/arpan.txt1
-rw-r--r--npc/000-2-1/chest.txt30
5 files changed, 33 insertions, 37 deletions
diff --git a/db/const.txt b/db/const.txt
index 53c1f8dc..5af9051a 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -215,16 +215,15 @@ ShipQuests_Peter 1
ShipQuests_Alige 1
// 2
ShipQuests_Arpan 4
+// 2
+ShipQuests_Nardbox 7
// 1
ShipQuests_Knife 10
// 1
ShipQuests_ArpanMoney 11
// 1
ShipQuests_Door 12
-// 2
-ShipQuests_Nardbox 7
+// 1
+ShipQuests_TreasureChest 13
// 1
ShipQuests_Darlin 16
-
-
-ChestStatus_1 0 \ No newline at end of file
diff --git a/npc/000-1/_import.txt b/npc/000-1/_import.txt
index d8b30a37..40598232 100644
--- a/npc/000-1/_import.txt
+++ b/npc/000-1/_import.txt
@@ -8,4 +8,5 @@ npc: npc/000-1/muller.txt
npc: npc/000-1/astapolos.txt
npc: npc/000-1/max.txt
npc: npc/000-1/sapartan.txt
-npc: npc/000-1/tarlan.txt \ No newline at end of file
+npc: npc/000-1/tarlan.txt
+npc: npc/000-1/chest.txt \ No newline at end of file
diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt
new file mode 100644
index 00000000..ea886b97
--- /dev/null
+++ b/npc/000-1/chest.txt
@@ -0,0 +1,27 @@
+// Evol scripts.
+// Authors:
+// Hal9000 (Francesco Miglietta), Reid
+// Description:
+// An opening treasure chest.
+// Variable:
+// ShipQuests_TreasureChest
+// Values:
+// 0: Not opened.
+// 1: Opened.
+
+000-1.gat,58,31,0 script Chest 316;2,{
+
+ set @q, geta(ShipQuests, ShipQuests_TreasureChest);
+ if (@q == 1) close;
+
+
+L_FirstEncounter:
+ seta ShipQuests, ShipQuests_TreasureChest, 1;
+
+ mesn;
+ mesq l("Hey it works!");
+ close;
+
+
+
+}
diff --git a/npc/000-2-1/arpan.txt b/npc/000-2-1/arpan.txt
index ce672b80..61925763 100644
--- a/npc/000-2-1/arpan.txt
+++ b/npc/000-2-1/arpan.txt
@@ -3,7 +3,6 @@
// Ablu
// Description:
// Magic Arpan which tells new player how they came here.
-// A box with clothes for every new player.
// Variable:
// ShipQuests_Arpan
// Values:
diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt
deleted file mode 100644
index cac4c1d4..00000000
--- a/npc/000-2-1/chest.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-// Evol scripts.
-// Authors:
-// Hal9000 (Francesco Miglietta)
-//
-// Description:
-// An opening chest.
-//
-// 2 bits array:
-//
-// Variable:
-//
-// Values:
-//
-//
-
-
-000-2-1.gat,57,31 script Chest 320;2,{
-
- set @q, geta(ChestStatus_1);
- if (@q == 1) close;
-
-
-L_FirstEncounter:
- seta ChestStatus_1, 1;
-
- mesn "Chest";
- mesq ("Hey it works!");
- close;
-
-}