summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-30 22:35:19 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-30 22:35:19 -0300
commit90a04e424ccfdb8e1eb6a35f65e7ea64ff38c2da (patch)
tree630f5f5f749d477c67b419d4e6f635e50d8ab281 /npc
parentb9171bd0a571da06ed53f2758b5e8a670bd00bcd (diff)
downloadserverdata-90a04e424ccfdb8e1eb6a35f65e7ea64ff38c2da.tar.gz
serverdata-90a04e424ccfdb8e1eb6a35f65e7ea64ff38c2da.tar.bz2
serverdata-90a04e424ccfdb8e1eb6a35f65e7ea64ff38c2da.tar.xz
serverdata-90a04e424ccfdb8e1eb6a35f65e7ea64ff38c2da.zip
Minor fixes regarding code style and grammar.
Cherry Cake is not easy to obtain unless you grind Giant Maggots, whose levels are above the Serf Hat's level (as stated on Total Visualization).
Diffstat (limited to 'npc')
-rw-r--r--npc/003-1/sarah.txt44
-rw-r--r--npc/004-1/_mobs.txt2
-rw-r--r--npc/005-2/saxsochest.txt40
3 files changed, 40 insertions, 46 deletions
diff --git a/npc/003-1/sarah.txt b/npc/003-1/sarah.txt
index ebcd1131e..01bb2fbf9 100644
--- a/npc/003-1/sarah.txt
+++ b/npc/003-1/sarah.txt
@@ -1,30 +1,30 @@
+// TMW2 Script
// Author:
// Saulc
+// Description:
+// Random NPC without any purpose but to give SerfHat. Uh.
// TODO: Could be repeatable quest (eg. 60 GP for a cake every day, so you can have a 10 GP profit selling cakes)
003-1,90,144,0 script Sarah NPC_FEMALE,{
.cake = CherryCake;
.reward = SerfHat;
-
- function quest_completed{
+
+ function quest_completed {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("It was so tasty, I can't eat anything more... Thank you.");
close;
}
function quest_open {
- if (countitem(.cake) > 5)
- {
+ if (countitem(.cake) >= 5) {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
- l("You brought me 6 @@ ! Here is your @@, as promised.",getitemlink(.cake), getitemlink(.reward));
- delitem .cake,6;
+ l("You brought me 5 @@ ! Here is your @@, as promised.",getitemlink(.cake), getitemlink(.reward));
+ delitem .cake,5;
getitem .reward,1;
setq TulimsharQuest_Sarah, 1;
close;
- }
- else
- {
+ } else {
speech S_FIRST_BLANK_LINE,
l("Sorry, that is not the cake I love.");
close;
@@ -35,22 +35,21 @@
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Oh, Welcome then.");
speech S_LAST_NEXT,
- l("Can you bring me 6 piece of Cherry Cake? Pretty please?");
+ l("Can you bring me 5 pieces of Cherry Cake? Pretty please?");
do
{
- select
- l("Here is it!"),
- menuaction(l("Quit"));
+ select
+ l("Here they are!"),
+ menuaction(l("Quit"));
- switch (@menu)
- {
- case 1:
- quest_open;
- break;
- }
- } while (@menu != 2);
+ switch (@menu) {
+ case 1:
+ quest_open;
+ break;
+ }
+ } while (@menu != 2);
}
-
+
do
{
.@chest = getq(TulimsharQuest_Sarah);
@@ -61,8 +60,7 @@
l("Hello, I'm new here! Can I help you?")),
menuaction(l("Quit"));
- switch (@menu)
- {
+ switch (@menu) {
case 1:
quest_started;
break;
diff --git a/npc/004-1/_mobs.txt b/npc/004-1/_mobs.txt
index 97f55c942..9c2d6ba46 100644
--- a/npc/004-1/_mobs.txt
+++ b/npc/004-1/_mobs.txt
@@ -4,5 +4,5 @@
004-1,44,26,7,5 monster Croc 1006,3,35000,150000
004-1,38,77,8,21 monster Scorpion 1071,20,35000,300000
004-1,108,65,10,7 monster Giant Maggot 1031,4,35000,300000
-004-1,106,114,11,7 monster Golden Scoprion 1078,1,99000,300000
+004-1,106,114,11,7 monster Golden Scorpion 1078,1,99000,300000
004-1,66,74,21,8 monster Black Scorpion 1075,1,35000,300000
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;