From 2abb75d7cda9f483f76b5bf2645a125f05355d92 Mon Sep 17 00:00:00 2001 From: Reid Date: Sun, 1 Jul 2012 16:25:27 +0200 Subject: Rename Box NPC to Chest. --- npc/000-1/chest.txt | 6 ++++++ npc/000-2-1/_import.txt | 2 +- npc/000-2-1/arpan.txt | 4 ++-- npc/000-2-1/box.txt | 40 ---------------------------------------- npc/000-2-1/chest.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 43 deletions(-) delete mode 100644 npc/000-2-1/box.txt create mode 100644 npc/000-2-1/chest.txt (limited to 'npc') diff --git a/npc/000-1/chest.txt b/npc/000-1/chest.txt index d8cef032..515d547d 100644 --- a/npc/000-1/chest.txt +++ b/npc/000-1/chest.txt @@ -13,7 +13,11 @@ set @q, geta(ShipQuests, ShipQuests_TreasureChest); if (getnpcdir ("") == 4) goto l_Give; + set @a, getnpcdir; + mes @a; setnpcdir 2; + set @a, getnpcdir; + mes @a; initnpctimer; startnpctimer; close; @@ -27,6 +31,8 @@ l_Give: l_Close: setnpcdir 6; + set @a, getnpcdir; + mes @a; initnpctimer; startnpctimer; close; diff --git a/npc/000-2-1/_import.txt b/npc/000-2-1/_import.txt index 5183268e..b8ddd616 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/box.txt +npc: npc/000-2-1/chest.txt diff --git a/npc/000-2-1/arpan.txt b/npc/000-2-1/arpan.txt index 61925763..c24cb4f3 100644 --- a/npc/000-2-1/arpan.txt +++ b/npc/000-2-1/arpan.txt @@ -121,8 +121,8 @@ l_Story: next; mesq lg("Yaya, you should go see her! She'll be happy to see you."); next; - mesq lg("Also, we took your yayed clothes, as they were... Yeyeye... In bad condition, go check the box around your bed, there is some new ones inside."); - setcamnpc "Box"; + mesq lg("Also, we took your yayed clothes, as they were... Yeyeye... In bad condition, go check the chest around your bed, there is some new ones inside."); + setcamnpc "Chest"; next; restorecam; diff --git a/npc/000-2-1/box.txt b/npc/000-2-1/box.txt deleted file mode 100644 index 4535565f..00000000 --- a/npc/000-2-1/box.txt +++ /dev/null @@ -1,40 +0,0 @@ -// 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 316;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; - -} diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt new file mode 100644 index 00000000..a9495039 --- /dev/null +++ b/npc/000-2-1/chest.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 Chest 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; + +} -- cgit v1.2.3-70-g09d2