summaryrefslogtreecommitdiff
path: root/npc/functions/beds.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-01-24 20:27:39 +0100
committerReid <reidyaro@gmail.com>2016-01-24 22:25:26 +0100
commit52b0e7b2714fe4931e65a79683c4db7228ebd80c (patch)
tree3aa2d0ceab6cb49cc2bde8804000a9c60a2fe5a9 /npc/functions/beds.txt
parenta852cbe209ce0fff6713db3bebc485a1c6d4619b (diff)
downloadserverdata-52b0e7b2714fe4931e65a79683c4db7228ebd80c.tar.gz
serverdata-52b0e7b2714fe4931e65a79683c4db7228ebd80c.tar.bz2
serverdata-52b0e7b2714fe4931e65a79683c4db7228ebd80c.tar.xz
serverdata-52b0e7b2714fe4931e65a79683c4db7228ebd80c.zip
Improve Plush and the savepoint functions.
Add bed functions into a different file and prevent the use of unlimited heal by disallowing the feature to switch of savepoint while keeping the reservation on the INN.
Diffstat (limited to 'npc/functions/beds.txt')
-rw-r--r--npc/functions/beds.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/functions/beds.txt b/npc/functions/beds.txt
new file mode 100644
index 00000000..1649c73f
--- /dev/null
+++ b/npc/functions/beds.txt
@@ -0,0 +1,30 @@
+// Evol functions.
+// Authors:
+// 4144
+// Reid
+// Description:
+// Beds utility functions
+
+function script bedTouch {
+ if (PC_Is_Dead)
+ {
+ PC_Is_Dead = 0;
+ if (INN_Register == REDPLUSH_INN)
+ {
+ INN_Register = NO_INN;
+ percentheal 100,100;
+ }
+ }
+ close;
+}
+
+function script bedClic {
+ narrator 4, l("Do you want to use this place as save point?");
+
+ if (select (l("[Yes]"), l("[No]")) == 1)
+ {
+ savepointparticle (getarg (0), getarg (1), getarg (2), getarg (3));
+ }
+ closedialog;
+ close;
+}