summaryrefslogtreecommitdiff
path: root/world/map/npc/025-4
diff options
context:
space:
mode:
authorCoffee <coffee@coffee-EP45-UD3L.(none)>2011-06-25 09:22:13 -0300
committerCoffee <coffee@coffee-EP45-UD3L.(none)>2011-06-25 09:22:13 -0300
commit0a1a7f497219513d3f7529d36176e87e0b9f5660 (patch)
treed6127d736875bebfa75ad132e0abc2ed13d72588 /world/map/npc/025-4
parent87da0d3f01519b0cf445bfcc4508a9aa05c3c02c (diff)
downloadserverdata-0a1a7f497219513d3f7529d36176e87e0b9f5660.tar.gz
serverdata-0a1a7f497219513d3f7529d36176e87e0b9f5660.tar.bz2
serverdata-0a1a7f497219513d3f7529d36176e87e0b9f5660.tar.xz
serverdata-0a1a7f497219513d3f7529d36176e87e0b9f5660.zip
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.
Diffstat (limited to 'world/map/npc/025-4')
-rw-r--r--world/map/npc/025-4/battlecaves.txt18
1 files changed, 17 insertions, 1 deletions
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: