From 0a1a7f497219513d3f7529d36176e87e0b9f5660 Mon Sep 17 00:00:00 2001 From: Coffee Date: Sat, 25 Jun 2011 09:22:13 -0300 Subject: Fixes a bug in the timer before the boss is spawned. Makes the player appear in the boss cave a few tiles up, to avoid being warp back all the time. Adds an additional check while fighting, so if a player gets out of the fight using #alonzialonzo or one of the towels the fight is stopped. Warps the player directly into the place where julia is hidden, so there is no way he just sit in the cave making it impossible for other players to enter. --- world/map/npc/025-4/battlecaves.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'world/map/npc/025-4/battlecaves.txt') diff --git a/world/map/npc/025-4/battlecaves.txt b/world/map/npc/025-4/battlecaves.txt index 9b802526..a7b596f4 100644 --- a/world/map/npc/025-4/battlecaves.txt +++ b/world/map/npc/025-4/battlecaves.txt @@ -955,7 +955,21 @@ L_Cleaning: killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; end; +L_CleaningNorid: + stopnpctimer; + setnpctimer 0; + set $@wave_cave10, 0; + set $@cave10_kills, 0; + set $@cave10start, 0; + set $@cave10fighter$, ""; + set $@cave10fighterdeaths$, 0; + set $@battlebosscave, 0; + killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath"; + killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath"; + end; + OnTimer4000: + if (isloggedin(getcharid(3,$@cave10fighter$))==0) goto L_CleaningNorid; attachrid(getcharid(3,$@cave10fighter$)); set @boss, @boss + 1; if (@boss == 1) message strcharinfo(0), "You feel something strange... Looks like something terrible is about to show up in this cave."; @@ -975,8 +989,10 @@ OnBossDeath: set $@cave10start, 0; set $@cave10fighter$, ""; set $@cave10fighterdeaths$, 0; - message strcharinfo(0), "What a harsh battle! I should save Julia now."; + set $@battlebosscave, 0; + message strcharinfo(0), "What a harsh battle! You lose no time and run to the door before more monsters start to appear."; set Rossy_Quest, 16; + warp "025-4.gat", 93, 33; end; L_Close: -- cgit v1.2.3-60-g2f50