summaryrefslogtreecommitdiff
path: root/npc/010-1-1/boss.txt
blob: 899766ed31c6a4eab0bf169250f5d88530ec77e4 (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
// Description:
//  Giant Cave Maggot Boss

010-1-1,0,0,0	script	#BossCtrl_010-1-1	NPC_HIDDEN,{
    end;

// Respawn every hour
OnTimer3600000:
    stopnpctimer;
OnInit:
    // WARNING: (51,19) INVALID COORDINATES
    setarray .xp,  49, 51,  44, 101, 124, 164, 132, 154, 116;
    setarray .yp,  59, 19, 100,  45,  26,  35,  61, 108,  94;
    .@tg=rand(getarraysize(.xp)-1);
    monster "010-1-1", .xp[.@tg], .yp[.@tg], strmobinfo(1, GiantCaveMaggot), GiantCaveMaggot, 1, "#BossCtrl_010-1-1::OnBossDeath";
    end;

OnBossDeath:
    initnpctimer;
    announce_bosskill(getmap(), GiantCaveMaggot);
    fix_mobkill(GiantCaveMaggot);
    end;

}