summaryrefslogtreecommitdiff
path: root/npc/015-2/lordcave.txt
blob: 661a376368a944de47df3ea00a90d9c553d889ca (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
// TMW2 Script
// Author:
//    Jesusalva

015-2,94,225,0	script	#BanditLordDen	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    if (countitem(SilverKey) >= 1) goto L_Summon;
    dispbottom l("This passage seems sealed. If I only had a @@...", getitemlink(SilverKey));
    end;

L_Summon:
    .@q=getq(HurnscaldQuest_Bandits);
    if (mobcount("015-2", "#BanditLordDen::OnLordDeath") == 0 && .@q == 6)
        monster "015-2",260,250,"Bandit Lord",BanditLord,1, "#BanditLordDen::OnLordDeath";
    slide 251, 277;
    end;

OnLordDeath:
    .@q=getq(HurnscaldQuest_Bandits);
    if (.@q == 6) {
        setq HurnscaldQuest_Bandits, 7;
        dispbottom l("Phew! The Bandit Lord was killed.");
    }
    end;
}