summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-12-08 14:09:14 -0600
committerwushin <pasekei@gmail.com>2014-12-08 14:09:14 -0600
commit35ff987e1ab048c0421bc055119a8213da566e8f (patch)
treeb9b905813f44f5217f74ef55906d8ea74c7ffe6b /world/map/npc
parent90d825cce37623063d3cd5e9119cf05efae83c7a (diff)
downloadserverdata-35ff987e1ab048c0421bc055119a8213da566e8f.tar.gz
serverdata-35ff987e1ab048c0421bc055119a8213da566e8f.tar.bz2
serverdata-35ff987e1ab048c0421bc055119a8213da566e8f.tar.xz
serverdata-35ff987e1ab048c0421bc055119a8213da566e8f.zip
Checks to make sure player is not out of bounds
If so, fallsback to the default
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/052-2/lobby.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/world/map/npc/052-2/lobby.txt b/world/map/npc/052-2/lobby.txt
index fb9dd41e..7b39233c 100644
--- a/world/map/npc/052-2/lobby.txt
+++ b/world/map/npc/052-2/lobby.txt
@@ -343,6 +343,9 @@ L_ChaseLuvia:
S_GetHeroRect:
if (!(attachrid($@ILLIA_HERO_ID)))
goto L_Clear;
+ if(!(isin("052-2.gat", 20, 21, 47, 43)))
+ goto L_Clear;
+
set $@illia_lobby_x, getx();
set $@illia_lobby_y, gety();
@@ -364,10 +367,10 @@ S_GetHeroRect:
return;
S_ClearHeroRect:
- set $@illia_lobby_x1, 0;
- set $@illia_lobby_y1, 0;
- set $@illia_lobby_x2, 0;
- set $@illia_lobby_y2, 0;
+ set $@illia_lobby_x1, 20;
+ set $@illia_lobby_y1, 19;
+ set $@illia_lobby_x2, 47;
+ set $@illia_lobby_y2, 42;
return;
OnDSDeath: