diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-28 21:41:16 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-28 21:41:16 -0300 |
commit | 8d53b8a7641a500d03363c7f104c9d705a761cee (patch) | |
tree | b28f5a21b2bbc4929f5e4125ea415290370a5902 /npc/functions/util.txt | |
parent | 9631772d97faea6017a2e50143c7158a0a140db9 (diff) | |
download | serverdata-8d53b8a7641a500d03363c7f104c9d705a761cee.tar.gz serverdata-8d53b8a7641a500d03363c7f104c9d705a761cee.tar.bz2 serverdata-8d53b8a7641a500d03363c7f104c9d705a761cee.tar.xz serverdata-8d53b8a7641a500d03363c7f104c9d705a761cee.zip |
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.
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |