summaryrefslogtreecommitdiff
path: root/npc/001-2-34/doors.txt
blob: 3e4fef7bd8aa3a8cec8ea6c742e03aa379a4f1c6 (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
// Evol scripts.
// Author:
//    Reid
// Description:
//    Doors NPCs.

001-2-34,23,29,0	script	ToTrainingRoom#001-2-34	NPC_HIDDEN,0,0,{

OnTouch:
    if ((getmapusers($@MAP_NAME$) == 0) && ($@FightingIsActive > 0))
    {
        set $@FightingIsActive, 0;
        killmonsterall "001-2-36";
    }

    if (mobcount("001-2-36","all") > 0 && $@FightingIsActive > 0)
    {
        narrator
        l("You hear some sound behind the door."),
        l("Somebody is probably training, better wait for him to finish.");
    }
    else
    {
        warp "001-2-36", 36, 30;
    }

    closedialog;
    close;
}