summaryrefslogtreecommitdiff
path: root/npc/005-2/saxsochest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/005-2/saxsochest.txt')
-rw-r--r--npc/005-2/saxsochest.txt40
1 files changed, 18 insertions, 22 deletions
diff --git a/npc/005-2/saxsochest.txt b/npc/005-2/saxsochest.txt
index d21c30716..be84a3171 100644
--- a/npc/005-2/saxsochest.txt
+++ b/npc/005-2/saxsochest.txt
@@ -1,3 +1,4 @@
+// TMW2 Script
// Author:
// Crazyfefe
@@ -6,48 +7,44 @@
.key = SaxsoKey;
.reward = ToothNecklace;
- function quest_completed{
+ function quest_completed {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
- l("you allready open the chest.");
+ l("you already opened the chest.");
close;
}
function quest_open {
- if (countitem(.key) > 0)
- {
+ if (countitem(.key) > 0) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You open the chest and found a @@.",getitemlink(.reward));
delitem .key,1;
getitem .reward,1;
setq CandorQuest_Chest, 1;
close;
- }
- else
- {
+ } else {
speech S_FIRST_BLANK_LINE,
- l("you don't have the key.");
+ l("You don't have the key.");
close;
}
}
function quest_started {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
- l("it look close.");
+ l("It looks locked.");
narrator S_LAST_NEXT,
- l("you should use a key for open it.");
+ l("Perhaps you should use a key to open it.");
do
{
- select
- l("Use a key."),
- menuaction(l("Quit"));
+ select
+ l("Use a key."),
+ menuaction(l("Quit"));
- switch (@menu)
- {
- case 1:
- quest_open;
- break;
- }
- } while (@menu != 2);
+ switch (@menu) {
+ case 1:
+ quest_open;
+ break;
+ }
+ } while (@menu != 2);
}
do
@@ -59,8 +56,7 @@
rif(.@chest == 0,l("There are a dusty chest.")),
menuaction(l("Quit"));
- switch (@menu)
- {
+ switch (@menu) {
case 1:
quest_started;
break;