summaryrefslogtreecommitdiff
path: root/npc/functions/savepoint.txt
diff options
context:
space:
mode:
authorReid Yaro <reidyaro@gmail.com>2013-05-26 17:58:59 +0100
committerReid Yaro <reidyaro@gmail.com>2013-05-26 17:58:59 +0100
commit0600dbd079c7aeb343044e0bac8afcd824e0e03c (patch)
tree01a3924fed608ad9ee9647e6fe7547ca36cfc7b2 /npc/functions/savepoint.txt
parent1d72faf3a930f8d349a33cc9d41b46f7c131becc (diff)
downloadserverdata-0600dbd079c7aeb343044e0bac8afcd824e0e03c.tar.gz
serverdata-0600dbd079c7aeb343044e0bac8afcd824e0e03c.tar.bz2
serverdata-0600dbd079c7aeb343044e0bac8afcd824e0e03c.tar.xz
serverdata-0600dbd079c7aeb343044e0bac8afcd824e0e03c.zip
Correct the savepoint message.
Diffstat (limited to 'npc/functions/savepoint.txt')
-rw-r--r--npc/functions/savepoint.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
index 9a8eae78..5e8838fa 100644
--- a/npc/functions/savepoint.txt
+++ b/npc/functions/savepoint.txt
@@ -3,13 +3,15 @@
// Reid
// Description:
// Adds a new save point location.
+// Description:
+// Save location with arguments:
+// getarg(0) map name,
+// getarg(1) x's value,
+// getarg(2) y's value.
function script SavePoint {
+ message strcharinfo(0), "Your position has been saved.";
- npctalk3 "Your position has been saved.";
-
- savepoint @map$, @x, @y;
- set @q, getcharid(3);
- misceffect 4, @q;
-
+ savepoint getarg(0), getarg(1), getarg(2);
+ misceffect 4, getcharid(3);
}