summaryrefslogtreecommitdiff
path: root/npc/functions/politics.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-28 22:07:51 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-28 22:07:51 -0300
commit5078989542df030741ed3f1acd79d438052c13c9 (patch)
treea20076bc9b2c6d83817e2a9b8144f5e3990d5ab5 /npc/functions/politics.txt
parent3b2bb2b88cf428e3167067200f9918ded1d77ca8 (diff)
downloadserverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.gz
serverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.bz2
serverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.xz
serverdata-5078989542df030741ed3f1acd79d438052c13c9.zip
When player is exiled from a town, if they already were saved there, unsave.
Diffstat (limited to 'npc/functions/politics.txt')
-rw-r--r--npc/functions/politics.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 44d26b6ab..58c1a2d71 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -460,6 +460,8 @@ function script POL_Manage {
attachrid(.@id);
dispbottom l("You have been EXILED from %s by %s.", getarg(0), .@MAYOR$);
#EXILED=#EXILED|.@town;
+ if (getsavepoint(0) == LocToMap(TPToLoc(.@town)))
+ savepoint "000-1", 22, 22;
detachrid();
attachrid(.@you);
kamibroadcast(sprintf("%s has EXILED %s from %s.",