summaryrefslogblamecommitdiff
path: root/npc/015-1/boss.txt
blob: 1591e05f56c3e4d4df27393ce430bf39babd321c (plain) (tree)























                                                                                                                                                                                      
                             


        
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  Spider Queen Boss

015-1,0,0,0	script	#BossCtrl_015-1	NPC_HIDDEN,{
    end;

// Respawn every half hour
OnTimer1800000:
    stopnpctimer;
OnInit:
    areamonster "015-1", 20, 20, getmapinfo(MAPINFO_SIZE_X, "015-1"), getmapinfo(MAPINFO_SIZE_Y, "015-1"), strmobinfo(1, SpiderQueen), SpiderQueen, 1, "#BossCtrl_015-1::OnBossDeath";
    end;

OnBossDeath:
    initnpctimer;
    .@party=getcharid(1);
    if (.@party > 0) {
        mapannounce getmap(), "Boss deafeated by Party: " + getpartyname(.@party), bc_all;
    } else {
        mapannounce getmap(), "Boss deafeated by: " + strcharinfo(0), bc_all;
    }
    fix_mobkill(SpiderQueen);
    end;

}