summaryrefslogtreecommitdiff
path: root/npc/012-8/doorbell.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/012-8/doorbell.txt')
-rw-r--r--npc/012-8/doorbell.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/012-8/doorbell.txt b/npc/012-8/doorbell.txt
index a377d9673..4b15e191e 100644
--- a/npc/012-8/doorbell.txt
+++ b/npc/012-8/doorbell.txt
@@ -44,6 +44,12 @@
mesc l("This estate currently belongs to @@.", $ESTATE_OWNERNAME$[.id]);
close;
+// When using setcells() a player could get trapped!
+// This label will slide the player back to entrance, which should be a safe spot
+OnSlide:
+ slide 33, 33;
+ end;
+
// If someone press the doorbell from outside and doorbell is enabled
OnDoorbell:
if (!$ESTATE_DOORBELL[.id])
@@ -200,6 +206,7 @@ L_ContinuousLoop:
if (.@gp > .@price) {
realestate_payment(.@price);
setcells .mapa$, .x1[.@id], .y1[.@id], .x2[.@id], .y2[.@id], .layer[.@id], realestate_cellname(.id, .@id);
+ areatimer(.mapa$, .x1[.@id], .y1[.@id], .x2[.@id], .y2[.@id], 10, "::OnSlide");
realestate_togglemobilia(.id, .layer[.@id], .objid[.@id], "NPCs#RES_0128");
mesc l("Purchase successful!");
next;