diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-05 17:10:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-05 17:10:27 -0300 |
commit | 08de684bb4a33e8fa5f94adf5fdbb7282f7c3193 (patch) | |
tree | 53122c865cb907dbb9f75d91087e3190859ce8bb /npc/012-8/doorbell.txt | |
parent | 6f54f1c380a3d17a7e3470dcfafce8a4937c5ce2 (diff) | |
download | serverdata-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.txt | 7 |
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; |