summaryrefslogtreecommitdiff
path: root/npc/functions/beds.txt
blob: 4ab8b6a77f53cc16855e61a3de69e54142dd992a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}