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/soul_menhir.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/soul_menhir.txt')
-rw-r--r-- | npc/functions/soul_menhir.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt index 0ec080261..c498be6ea 100644 --- a/npc/functions/soul_menhir.txt +++ b/npc/functions/soul_menhir.txt @@ -97,14 +97,17 @@ L_DontPanic: L_Save: if (GSET_SOULMENHIR_MANUAL) { - savepoint @map$, @x, @y; - specialeffect(4, SELF, getcharid(3)); + .@v$=MapToLoc(@map$); + .@tp=POL_LocToTP(strtoupper(.@v$)); + if (!(#EXILED & .@tp)) { + savepoint @map$, @x, @y; + specialeffect(4, SELF, getcharid(3)); + } else { + mesc l("You are exiled from this town and therefore, unable to use the Menhir."), 1; + } } else { EnterTown(MapToLoc(@map$)); dispbottom col(l("Your position is auto-saved when entering a town - use @ucp to change this behavior."), 1); } - - // As we have a dialog box open, this function produces an undesirable player talk. - //savepointparticle @map$, @x, @y, NO_INN; return; } |