From a84e081dc534870444a1a7122b7d1f5c997e98bc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 May 2020 09:12:09 -0300 Subject: Spawn General Terogan for the fight after 20 seconds (nothing out of ordinary with him) --- npc/042-11/boss.txt | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'npc/042-11') diff --git a/npc/042-11/boss.txt b/npc/042-11/boss.txt index b2fe93a9d..9a813f3c1 100644 --- a/npc/042-11/boss.txt +++ b/npc/042-11/boss.txt @@ -41,20 +41,33 @@ L_NoAccess: // TODO: Boss Showdown // TODO: Spawn GMGiftBox and Treasure Chests upon end // TODO: Arthur gives rewards to survivors and boot them out of Kamelot -042-11,0,-,0 script #KamelotBoss NPC_HIDDEN,{ +042-11,0,0,0 script #KamelotBoss NPC_HIDDEN,{ + end; + +OnDialog: + announce "??? : "+l("Who sent you here? Merlin?"), bc_self|bc_pc; + addtimer 5000, "#KamelotBoss::OnDialog2"; + end; + +OnDialog2: + announce "??? : "+l("It matters not, because soon, all of you will be..."), bc_self|bc_pc; + addtimer 5000, "#KamelotBoss::OnBegin"; // FIXME? end; // Spawns Terogan OnBegin: - explode(.@map$, .map$, "@"); - .@g=atoi(.@map$[1]); - if (.@g < 1) { - debugmes "[ERROR] [KAMELOT] Unable to find Terogan Death %s", .map$; - .@g=0; - } - .@m$=.map$; + .@g=getcharid(2); + .@m$=getmap(); .@avg=$KAMELOT_MX[.@g]+10; + // Dialog + announce l("General Terogan : DEAD! Muahahahaha!"), bc_self|bc_pc; + + // Check if Terogan doesn't exists already + .@exist=getd("$@GTEMP_"+.@m$); + if (.@exist) + end; + .@mob=monster(.@m$, 34, 26, strmobinfo(1, GeneralTerogan), GeneralTerogan, 1, .@n$+"::OnKillBoss"); // Reconfigure the monster setunitdata(.@mob, UDT_LEVEL, .@avg); -- cgit v1.2.3-70-g09d2