summaryrefslogtreecommitdiff
path: root/npc/002-2/doors.txt
blob: 0d0760dd60478ac35cb677fceb0014753ec88f25 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// TMW2 Script
// Authors:
//  Jesusalva
//
// Originally an Evol script authored by:
//    Ablu, Alastrim and Reid
//
// Description:
//    Doors NPCs.

002-2,33,23,0	script	0022#DoorUpwards	NPC_HIDDEN,0,0,{

OnTouch:
    if (mobcount("002-2","all") > 0) goto L_Warn;

    goto L_Warp;

L_Warn:
    .@q = getq(ShipQuests_Peter);
    if (.@q >= 15) goto L_Warp;

    mesn "Narrator";
    mesc l("There are still some monsters left! Do you want to abort the quest?");
    next;

    menu
        l("Yes."), L_Warp,
        l("No."), -;

    slide 33, 25;
    closeclientdialog;
    close;

L_Warp:
    if (LOCATION$ == "")
        warp "002-1", 35, 26;
    else
        warp "002-1@"+LOCATION$, 35, 26;

    deltimer("Peter::OnLowTime");
    deltimer("Peter::OnTimeout");
    closeclientdialog;
    close;
}

002-2,43,25,0	script	#Alige0022	NPC_ALIGE_BARREL,{
    npctalkonce l("This barrel seems suspicious...");
    end;
}