summaryrefslogblamecommitdiff
path: root/npc/functions/beds.txt
blob: 8fa1e4b15dd9ddf051adeea1fa4a3a8381c8e9a6 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                         
                   
     

                                         
         
                                  








                                                                  
                              





                                                                           
// 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 (askyesno() == ASK_YES)
    {
        savepointparticle (getarg (0), getarg (1), getarg (2), getarg (3));
    }
    closedialog;
    close;
}