From 5cc0a8a472ccaa68cae07191a4340ea7fe66ddf3 Mon Sep 17 00:00:00 2001 From: "Hal9OOO (Francesco Miglietta)" Date: Sun, 17 Jun 2012 23:31:40 +0200 Subject: First attempt for Animated Chest script. --- db/const.txt | 5 ++++- npc/000-2-1/_import.txt | 3 ++- npc/000-2-1/chest.txt | 30 ++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 npc/000-2-1/chest.txt 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; + +} -- cgit v1.2.3-70-g09d2