summaryrefslogtreecommitdiff
path: root/npc/023-3-2/logic.txt
blob: a51826307ba9fc696c5eb1663b4cc1a3ad176f5a (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
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//    023-3-2 Isbamuth's Study Room Configuration File

023-3-2	mapflag	zone	MMO

023-3-2,39,59,0	script	#Exit02332	NPC_HIDDEN,1,0,{
    end;
OnTouch:
    .@q=getq(General_Narrator);
    .@q2=getq2(General_Narrator);
    // Cheater Detected
    if (.@q < 15) { 
        warp "Save", 0, 0;
        percentheal -100, -100;
        end;
    }
    if (.@q == 15) {
        dispbottom lg("I'm not a coward! I must press forward!");
        end;
    }
    /*
    Access to the dungeon is now prohibted.
	.@mapn$="023-3-1";
    warp .@mapn$, 45, 28;
    */
    .@mapn$="024-16";
    warp .@mapn$, 30, 26;
    end;
}