From 8a4bf716002a017de77fe7df301ef8e4aaf00a2e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 11:00:49 -0300 Subject: Initial commit --- npc/functions/beds.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 npc/functions/beds.txt (limited to 'npc/functions/beds.txt') diff --git a/npc/functions/beds.txt b/npc/functions/beds.txt new file mode 100644 index 00000000..a4301891 --- /dev/null +++ b/npc/functions/beds.txt @@ -0,0 +1,22 @@ +// Evol functions. +// Authors: +// 4144 +// Reid +// Jesusalva +// Description: +// Beds utility functions + +// bedTouch({inn}) +function script bedTouch { + if (PC_IS_DEAD) + { + PC_IS_DEAD = 0; + if (INN_REGISTER != NO_INN) + { + INN_REGISTER = NO_INN; + percentheal 100,100; + } + } + close; +} + -- cgit v1.2.3-60-g2f50