summaryrefslogblamecommitdiff
path: root/npc/025-2-3/boss.txt
blob: ba1bd89d61e7c66c1095f14e21a96b1f87650fff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                            
                                    





                                                                                                                              
                           

                                                                                           
                                                                      


                                                                              
                                      
                               

        

                        
                                                
        
 
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  Pinkie Emperor Boss

025-2-3,0,0,0	script	#BossCtrl_025-2-3	NPC_HIDDEN,{
    end;

// Respawn every hour
OnTimer3600000:
    stopnpctimer;
OnInit:
    setarray .xp, 268, 55, 371, 482, 212;
    setarray .yp,  90, 45,  38, 114, 148;
    .@tg=rand2(getarraysize(.xp)-1);
    monster "025-2-3", .xp[.@tg], .yp[.@tg], strmobinfo(1, PinkieEmperor), PinkieEmperor, 1, "#BossCtrl_025-2-3::OnBossDeath";
    end;

OnBossDeath:
    initnpctimer;
    .@party=getcharid(1);
    getitem StrangeCoin, 1;
    if (.@party > 0) {
        mapannounce "025-2-3", "Boss deafeated by Party: " + getpartyname(.@party), bc_all;
        partytimer("025-2-3", 200, "#BossCtrl_025-2-3::OnBossReward");
    } else {
        mapannounce "025-2-3", "Boss deafeated by: " + strcharinfo(0), bc_all;
    }
    callfunc "02524_Revenge_BlackBox";
    fix_mobkill(PinkieEmperor);
    end;

OnBossReward:
    if (ispcdead()) end;
    getitem StrangeCoin, getmapusers("025-2-3");
    end;
}