summaryrefslogtreecommitdiff
path: root/npc/025-2-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-18 16:31:07 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-18 16:31:07 -0300
commita58e959809c836afe9e95316fe15714b4fd757d2 (patch)
tree0320ab9d9ee1fb410271eeba8618cf59f4def48b /npc/025-2-4
parentf6ee091f2f0f3e9f1eb5befa4188987a06a3ebf6 (diff)
downloadserverdata-a58e959809c836afe9e95316fe15714b4fd757d2.tar.gz
serverdata-a58e959809c836afe9e95316fe15714b4fd757d2.tar.bz2
serverdata-a58e959809c836afe9e95316fe15714b4fd757d2.tar.xz
serverdata-a58e959809c836afe9e95316fe15714b4fd757d2.zip
Tweak test and bugfix
Diffstat (limited to 'npc/025-2-4')
-rw-r--r--npc/025-2-4/tree.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/npc/025-2-4/tree.txt b/npc/025-2-4/tree.txt
index 3a3f22173..08dc03f1c 100644
--- a/npc/025-2-4/tree.txt
+++ b/npc/025-2-4/tree.txt
@@ -14,23 +14,24 @@
next;
mesc l("This might be the place of a great secret, but yet, all you can do is stare.");
next;
- if (!true) manatreeOff(); // TODO: Official rumors about the Mana Tree
+ if (getq(FortressQuest_ManaTree) < 2) manatreeOff();
else if ($AEGIS_HOLDER$ == "" && @manacool < gettimetick(2)) manatreeAegis();
else manatreeAgain();
- next;
setpcblock(PCBLOCK_HARD, false);
closeclientdialog;
close;
function manatreeOff {
mesc l("...for now.");
+ next;
return;
}
function manatreeAgain {
mesc l("...for now.");
// TODO: getitem Manapple, 1; // Maybe can obtain one daily/weekly?
+ next;
return;
}
@@ -43,6 +44,10 @@ function manatreeAegis {
percentheal -20, -50;
return;
}
+ if (.@prayer$ == "") {
+ mesc l("...Alright then.");
+ return;
+ }
@manacool=gettimetick(2)+30;
.@cid=getcharid(3, .@prayer$);
if (.@cid < 1) {