summaryrefslogtreecommitdiff
path: root/localserver/npc/023-4_blackbox.txt
blob: a5687e589a6a2623c9177e16928886aa4fb23f6e (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
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  023-4 Blackbox

//  Syntax:
//  0234_Password_BlackBox( PASSWORD )
//  0234_Init_BlackBox( - )
function	script	0234_Password_BlackBox	{
    .@message$=getarg(0, "");
    // Only react if the message is what we want to hear
    if (.@message$ == "PASSWORD") {
    	if (getq(FrostiaQuest_Homunculus) < 1)
            end;

        if (isat("023-3", 26, 219)) {
            warp "023-4", 42, 69;
            sleep2(15);
            dispbottom l("The gates to Aethyr have opened themselves to you.");
        }
    }
    return;
}

function	script	0234_Init_BlackBox	{
    return;
}

-	script	#0234BlackBox	NPC_HIDDEN,{
    end;
OnIter:
    end;
}