summaryrefslogtreecommitdiff
path: root/npc/031-0/boss.txt
blob: 003d22b498e2c5ccf5f0e219eda3ecb233a19ce0 (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
28
29
30
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  Tengu Boss

031-0,0,0,0	script	#BossCtrl_031-0	NPC_HIDDEN,{
    end;

// Respawn every half hour
OnTimer1800000:
    stopnpctimer;
OnInit:
    .@m = monster("031-0", 149, 123, strmobinfo(1, Tengu), Tengu, 1, "#BossCtrl_031-0::OnBossDeath");
    set_aggro(.@m, MD_BOSS);
    end;

OnBossDeath:
    initnpctimer;
    .@party=getcharid(1);
    if (.@party > 0) {
        mapannounce getmap(), "Tengu defeated by Party: " + getpartyname(.@party), bc_all;
    } else {
        mapannounce getmap(), "Tengu defeated by: " + strcharinfo(0), bc_all;
    }
    getexp 0, 1000+BaseLevel*8+JobLevel;
    fix_mobkill(Tengu);
    end;

}