summaryrefslogtreecommitdiff
path: root/npc/012-8/doorbell.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-05 17:10:27 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-05 17:10:27 -0300
commit08de684bb4a33e8fa5f94adf5fdbb7282f7c3193 (patch)
tree53122c865cb907dbb9f75d91087e3190859ce8bb /npc/012-8/doorbell.txt
parent6f54f1c380a3d17a7e3470dcfafce8a4937c5ce2 (diff)
downloadserverdata-08de684bb4a33e8fa5f94adf5fdbb7282f7c3193.tar.gz
serverdata-08de684bb4a33e8fa5f94adf5fdbb7282f7c3193.tar.bz2
serverdata-08de684bb4a33e8fa5f94adf5fdbb7282f7c3193.tar.xz
serverdata-08de684bb4a33e8fa5f94adf5fdbb7282f7c3193.zip
Do not let people struck when planting beds
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;