summaryrefslogtreecommitdiff
path: root/npc/027-3/general_krukan_door.txt
blob: 995c6f60b45a9bf78b05bd9a7524587d8fb6d437 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
027-3,92,88,0	script	#GeneralDoor1	NPC45,1,0,{
    if ( (countitem("CryptKey") < 10) && ($@CRYPT_FIGHT1 != 0) )
        goto L_NoKeys;

    delitem "CryptKey", 10;
    warp "027-6",39,60;
    goto L_close;

L_NoKeys:
    message strcharinfo(0), "This door is locked.";
    end;

L_close:
    close;
}