summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-01-24 20:26:20 +0100
committerReid <reidyaro@gmail.com>2016-01-24 22:25:26 +0100
commitf5c7000547cfd045b1983f337b150d891e5ed70b (patch)
tree142000a7cf3af5e07a31e9b842c05cb2abfc0651
parenteb6d2fbe61590438917820067e2ba524f290fd6e (diff)
downloadserverdata-f5c7000547cfd045b1983f337b150d891e5ed70b.tar.gz
serverdata-f5c7000547cfd045b1983f337b150d891e5ed70b.tar.bz2
serverdata-f5c7000547cfd045b1983f337b150d891e5ed70b.tar.xz
serverdata-f5c7000547cfd045b1983f337b150d891e5ed70b.zip
Add INN flag on savepoint, if the flag is not set it put to INN_Register the false value (NO_INN).
-rw-r--r--npc/functions/savepoint.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
index f224fd55..b35f3479 100644
--- a/npc/functions/savepoint.txt
+++ b/npc/functions/savepoint.txt
@@ -7,11 +7,16 @@
// Save location with arguments:
// getarg(0) map name,
// getarg(1) x's value,
-// getarg(2) y's value.
+// getarg(2) y's value,
+// getarg(3) INN flag.
function script savepointparticle {
message strcharinfo(0), "Your position has been saved.";
+ if (getarg(3, NO_INN) == NO_INN)
+ {
+ INN_Register = NO_INN;
+ }
savepoint getarg(0), getarg(1), getarg(2);
misceffect 4, getcharid(3);
return;