summaryrefslogtreecommitdiff
path: root/npc/015-2/lordcave.txt
blob: e39c4e72a849a49d7dfe0cd0adf490dcec08ad15 (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 && !ispcdead()) {
        setq HurnscaldQuest_Bandits, 7;
        dispbottom l("The Bandit Lord was killed. Return to Helena.");
    }
    end;
}