summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-08 12:52:05 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-08 12:52:05 -0300
commit22d0a4837f45462f5082643c17a43893f1d9ec95 (patch)
tree23e00b0a526883c8c67226b33a1b142b62365010
parent0bcd9c80f32fb46d0c6b4409b9c9e9e691fcbef8 (diff)
downloadserverdata-22d0a4837f45462f5082643c17a43893f1d9ec95.tar.gz
serverdata-22d0a4837f45462f5082643c17a43893f1d9ec95.tar.bz2
serverdata-22d0a4837f45462f5082643c17a43893f1d9ec95.tar.xz
serverdata-22d0a4837f45462f5082643c17a43893f1d9ec95.zip
Don't hide the animations - And do the animations! D:
-rw-r--r--npc/001-3-0/gates.txt33
1 files changed, 29 insertions, 4 deletions
diff --git a/npc/001-3-0/gates.txt b/npc/001-3-0/gates.txt
index c9ec388a..d3e8fd00 100644
--- a/npc/001-3-0/gates.txt
+++ b/npc/001-3-0/gates.txt
@@ -29,6 +29,15 @@ OnTouch:
updateSpotlight(true);
end;
+OnOpenSesame:
+ // Opening
+ if (!.busy && .@q) {
+ .dir=2;
+ .busy=true;
+ initnpctimer;
+ }
+ end;
+
// Open
OnTimer2200:
.dir=4;
@@ -46,11 +55,11 @@ OnTimer10400:
// Don't reply immediately, wait a tiny bit
OnTimer11000:
- .busy=false;
+ .busy = false;
stopnpctimer;
OnInit:
- .busy=false;
+ .busy = false;
.distance = 1;
end;
}
@@ -83,22 +92,38 @@ OnInit:
close;
}
+ // Prompt player
mesc l("Should we install the %s and move it?", getitemlink(Gearwheel)), 1;
if (askyesno() == ASK_NO)
break;
delitem Gearwheel, 1;
setq2 ThiefQuests_Artis, 2;
- // FALLTHORUGH
+ // FALLTHROUGH
case 2:
mesc l("With the %s in place, it only takes a bit more effort to make it budge.", getitemlink(Gearwheel));
- // TODO: Open gate
+ next;
+ closeclientdialog;
+ // Spin the wheel
+ if (!.busy) {
+ .dir = 4;
+ .busy = true;
+ initnpctimer;
+ }
+ // Open the gate
+ addtimer 500, "#ArtisThiefGate_"+.@id+"::OnOpenSesame";
break;
default:
}
close;
+// Done spinning?
+OnTimer5000:
+ .busy = false;
+ stopnpctimer;
+
OnInit:
+ .busy = false;
.distance = 1;
end;
}