summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-09 15:37:54 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-09 15:37:54 -0300
commitd970624d6127ee9e8add09d811d4ee0ff9e04b2a (patch)
tree359b3f11f54a4d7c7c27bdfa3e28ef7a10b29169
parent0ed191532f85812bfd1dcd74e834084ee4963f2f (diff)
downloadserverdata-d970624d6127ee9e8add09d811d4ee0ff9e04b2a.tar.gz
serverdata-d970624d6127ee9e8add09d811d4ee0ff9e04b2a.tar.bz2
serverdata-d970624d6127ee9e8add09d811d4ee0ff9e04b2a.tar.xz
serverdata-d970624d6127ee9e8add09d811d4ee0ff9e04b2a.zip
Update DanCheck() so it is easier to read
-rw-r--r--npc/002-1/dan.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/002-1/dan.txt b/npc/002-1/dan.txt
index 5dd9a0153..04a04a814 100644
--- a/npc/002-1/dan.txt
+++ b/npc/002-1/dan.txt
@@ -92,11 +92,18 @@ OnInit:
002-1,0,0,0 script PiouSpwn NPC_HIDDEN,{
function DanCheck {
if (player_attached()) {
+ // Quest not in progress - nothing to do
if (getq(ShipQuests_Dan) != 1)
return;
+
+ // If you complete, finish it. Otherwise, sum it up.
.@t=getq2(ShipQuests_Dan);
- if (.@t+1 >= 12) setq ShipQuests_Dan, 2, 0;
- if (.@t+1 < 12) setq2 ShipQuests_Dan, .@t+1;
+ if (.@t+1 >= 12)
+ setq ShipQuests_Dan, 2, 0;
+ else
+ setq2 ShipQuests_Dan, .@t+1;
+
+ // Report progress
dispbottom l("@@/@@", .@t+1, 12);
}
return;