diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-13 20:50:42 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-13 20:50:42 +0100 |
commit | 20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch) | |
tree | 4ad4a8bb8b0605473a702e314799a4626347721a /npc/functions/beds.txt | |
download | serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2 serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip |
Initial commit
Diffstat (limited to 'npc/functions/beds.txt')
-rw-r--r-- | npc/functions/beds.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/functions/beds.txt b/npc/functions/beds.txt new file mode 100644 index 000000000..4ab8b6a77 --- /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 S_LAST_NEXT, l("Do you want to use this place as save point?"); + + if (askyesno() == ASK_YES) + { + savepointparticle getarg(0, ""), getarg(1, -1), getarg(2, -1), getarg(3, NO_INN); + } + closedialog; + close; +} |