summaryrefslogtreecommitdiff
path: root/npc/000-0-0/chest.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 15:21:42 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 15:21:42 -0200
commit31f7e91e3051699c6845ecdd629bb2cab6fcd664 (patch)
treedd4feda350f94782cb31ae81206f42ae52933e91 /npc/000-0-0/chest.txt
parent47f276846625c7e86a201012d35b7ebb17af2691 (diff)
downloadserverdata-31f7e91e3051699c6845ecdd629bb2cab6fcd664.tar.gz
serverdata-31f7e91e3051699c6845ecdd629bb2cab6fcd664.tar.bz2
serverdata-31f7e91e3051699c6845ecdd629bb2cab6fcd664.tar.xz
serverdata-31f7e91e3051699c6845ecdd629bb2cab6fcd664.zip
Tutorial Island, and the redesign
Diffstat (limited to 'npc/000-0-0/chest.txt')
-rw-r--r--npc/000-0-0/chest.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/npc/000-0-0/chest.txt b/npc/000-0-0/chest.txt
index 8c332c844..2674400ac 100644
--- a/npc/000-0-0/chest.txt
+++ b/npc/000-0-0/chest.txt
@@ -17,16 +17,14 @@
.@questState = getq(ShipQuests_Arpan);
- if (.@questState == 0)
- {
+ if (.@questState == 0) {
npctalk3 l("You should talk to Magic Arpan first.");
end;
}
if (.busy == false)
{
- if (.@questState <= 1)
- {
+ if (.@questState == 1) {
inventoryplace CreasedShirt, 2;
setq1 ShipQuests_Arpan, 2;
getitem CreasedShirt, 1;
@@ -48,15 +46,13 @@ OnTimer220:
OnTimer500:
.busy = false; // unlock
- if (.dir == 0)
- {
+ if (.dir == 0) {
stopnpctimer; // stop here if the chest is closed
}
end;
OnUnTouch:
- if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0)
- {
+ if (getareausers(.x - 2, .y - 4, .x + 2, .y + 6) > 0 || .dir == 0) {
end;
}
OnTimer30000: