summaryrefslogtreecommitdiff
path: root/npc/functions/savepoint.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-13 20:48:41 +0000
committerJesusaves <cpntb1@ymail.com>2019-04-13 20:48:41 +0000
commit3a843c307c4c654552eb3bc4b4e653470f409e5b (patch)
tree0f17bcacfa80e8be731f0a296820762270802355 /npc/functions/savepoint.txt
parent65d7d45d9b4d0bcaec8cc56c95fb468e4bec4f35 (diff)
parent65449ffbf0bf377312f74a3e2c03dc2847730363 (diff)
downloadserverdata-galimatia.tar.gz
serverdata-galimatia.tar.bz2
serverdata-galimatia.tar.xz
serverdata-galimatia.zip
Merge branch 'jesusalva/inns' into 'master'galimatia
Reimplement INN system and add Rusty Pick Inn Closes evol-all#8 See merge request evol/serverdata!170
Diffstat (limited to 'npc/functions/savepoint.txt')
-rw-r--r--npc/functions/savepoint.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
index 0e0b6f90..46ef73e8 100644
--- a/npc/functions/savepoint.txt
+++ b/npc/functions/savepoint.txt
@@ -34,12 +34,21 @@ function script savepointparticle {
.@i = 0;
}
- message strcharinfo(0), l("Your position has been saved.");
-
- if (getarg(.@i, NO_INN) == NO_INN)
+ // If this will override your current inn, a confirmation is required.
+ // Unless you already don't have a booked place, then, confirmation is never shown.
+ if (getarg(.@i, NO_INN) != INN_REGISTER && INN_REGISTER != NO_INN)
{
+ mesc l("Do you want to use this place as save point?");
+ mesc b(l("Warning: ")) + l("Previous Inn reservation will be lost!");
+
+ if (askyesno() != ASK_YES)
+ close;
+
INN_REGISTER = NO_INN;
}
+
+ message strcharinfo(0), l("Your position has been saved.");
+
savepoint .@mapname$, .@mapx, .@mapy;
specialeffect(4, SELF, getcharid(3));
@lastSave = gettimetick(2);