From 8d53b8a7641a500d03363c7f104c9d705a761cee Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jul 2020 21:41:16 -0300 Subject: Initial version of the most powerful power the Town Admin have. The power to exile a player. Exiles are not logged anywhere. When exiled, player will not be saved to town. This affects respawn and Soul Menhir. It can be circumvent by a few bugs/tricks. --- npc/functions/util.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc/functions/util.txt') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index c3c1f390a..e0c1b93d8 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -931,7 +931,10 @@ function script EnterTown { if (array_find($@LOCMASTER_LOC$, .@v$) < 0) return Exception("Invalid location passed to EnterTown: "+.@v$); - LOCATION$=.@v$; + // Do not save if you're exiled + .@tpcode=POL_LocToTP(strtoupper(.@v$)); + if (!(#EXILED & .@tpcode)) + LOCATION$=.@v$; return; } -- cgit v1.2.3-60-g2f50