diff options
-rw-r--r-- | db/const.txt | 5 | ||||
-rw-r--r-- | npc/000-2-1/_import.txt | 3 | ||||
-rw-r--r-- | npc/000-2-1/chest.txt | 30 |
3 files changed, 36 insertions, 2 deletions
diff --git a/db/const.txt b/db/const.txt index 15005605..86a03f3a 100644 --- a/db/const.txt +++ b/db/const.txt @@ -224,4 +224,7 @@ ShipQuests_Door 12 // 2 ShipQuests_Nardbox 7 // 1 -ShipQuests_Darlin 2
\ No newline at end of file +ShipQuests_Darlin 2 + + +ChestStatus_1 0
\ No newline at end of file diff --git a/npc/000-2-1/_import.txt b/npc/000-2-1/_import.txt index a8bdc89d..c06250b8 100644 --- a/npc/000-2-1/_import.txt +++ b/npc/000-2-1/_import.txt @@ -9,4 +9,5 @@ npc: npc/000-2-1/arpan.txt 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
\ No newline at end of file +npc: npc/000-2-1/hammock.txt +npc: npc/000-2-1/chest.txt
\ No newline at end of file diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt new file mode 100644 index 00000000..cac4c1d4 --- /dev/null +++ b/npc/000-2-1/chest.txt @@ -0,0 +1,30 @@ +// 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; + +} |