summaryrefslogblamecommitdiff
path: root/npc/functions/hammocks.txt
blob: 8e1c2fec463d369dd30d6a2ff35d0c21aad7de73 (plain) (tree)

















































                                         
// Evol functions.
// Authors:
//    4144
//    Reid
// Description:
//    Hammocks utility functions
// Variables:
//    none

function	script	hamTouchLeft	{
    if (getareausers() <= 1)
    {
        .dir = 0;
        stopnpctimer;
        initnpctimer;
    }
    close;
}

function	script	hamUnTouch	{
    if (getareausers() == 0)
    {
        .dir = 2;
        initnpctimer;
        startnpctimer;
    }
    close;
}

function	script	hamTimerLeft	{
    stopnpctimer;
    if (.dir == 2) .dir = 0;
    end;
}

function	script	hamTouchRight	{
    if (getareausers() <= 1)
    {
        .dir = 0;
        stopnpctimer;
        initnpctimer;
    }
    close;
}

function	script	hamTimerRight	{
    stopnpctimer;
    if (.dir == 2) .dir = 0;
    end;
}