summaryrefslogtreecommitdiff
path: root/npc/015-2/lordcave.txt
blob: 34d70c4c4f3278ca501dd93977eeec83ecfd3b3e (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,255,0	script	#BanditLordDen	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    if (countitem(SilverKey) >= 1) goto L_Summon;
    // Doesn't works for some reason:
    dispbottom l("This passage seems sealed. If I only had a @@...", getitemlink(SilverKey));
    end;

L_Summon:
    if (mobcount("015-2", "#BanditLordDen::OnLordDeath") == 0)
        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;
}