summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoffee <coffee@coffee-EP45-UD3L.(none)>2011-08-28 10:30:16 -0300
committercoffee <coffee@coffee-EP45-UD3L.(none)>2011-08-28 10:30:16 -0300
commitb52f230eb0712c43b49767279921bb69a0f17a18 (patch)
tree3a81914b12522cec3455f5e66fe06e70e33f867b
parent40464b7e649d76e38fb41677190a2bade3eca52a (diff)
downloadserverdata-b52f230eb0712c43b49767279921bb69a0f17a18.tar.gz
serverdata-b52f230eb0712c43b49767279921bb69a0f17a18.tar.bz2
serverdata-b52f230eb0712c43b49767279921bb69a0f17a18.tar.xz
serverdata-b52f230eb0712c43b49767279921bb69a0f17a18.zip
Punish the players that interfere in the fight from outside.
-rw-r--r--world/map/npc/033-1/kimarr.txt55
1 files changed, 46 insertions, 9 deletions
diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt
index 308261d6..dd27d850 100644
--- a/world/map/npc/033-1/kimarr.txt
+++ b/world/map/npc/033-1/kimarr.txt
@@ -262,15 +262,14 @@ L_BeginHunting:
areamonster "033-1.gat", 79, 29, 88, 42, "", 1020, $@Fluffy_Spawn, "Kimarr::OnFluffyDeath";
- // other monsters don't generate a real event
set $@Fluffy_Extra, 5 * @Fluffy_XmasCake + 3 * @Fluffy_Cake + 10 * BaseLevel;
if ((BaseLevel > 40) && (rand($@Fluffy_Extra) > 500)) // Ice Goblin
- areamonster "033-1.gat", 79, 29, 88, 42, "", 1058, 1, "Kimarr::OnOtherDeath";
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1058, 1, "Kimarr::OnIceGoblinDeath";
if ((BaseLevel > 60) && (rand($@Fluffy_Extra) > 550)) // Santa Slime
- areamonster "033-1.gat", 79, 29, 88, 42, "", 1015, 1, "Kimarr::OnOtherDeath";
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1015, 1, "Kimarr::OnSantaSlimeDeath";
// TODO: add the wolvern as well when it has been added
if ((BaseLevel > 70) && (rand($@Fluffy_Extra) > 600)) // Yeti
- areamonster "033-1.gat", 79, 29, 88, 42, "", 1072, 1, "Kimarr::OnOtherDeath";
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1072, 1, "Kimarr::OnYetiDeath";
set $@Fluffy_Extra, 0;
set @Fluffy_RedApple, 0;
@@ -280,18 +279,39 @@ L_BeginHunting:
set $@Fluffy_Alive, $@Fluffy_Alive + $@Fluffy_Spawn;
goto L_ContinueTimer;
-OnOtherDeath:
- // nothing happens
+OnIceGoblinDeath:
+ set @MobID, 1058;
+ if (getcharid(3) != $@Fluffy_FighterID)
+ goto L_Punish;
+ set @MobID, 0;
+ end;
+
+OnSantaSlimeDeath:
+ set @MobID, 1015;
+ if (getcharid(3) != $@Fluffy_FighterID)
+ goto L_Punish;
+ set @MobID, 0;
+ end;
+
+OnYetiDeath:
+ set @MobID, 1072;
+ if (getcharid(3) != $@Fluffy_FighterID)
+ goto L_Punish;
+ set @MobID, 0;
end;
OnFluffyDeath:
+ set @MobID, 1020;
if ($@Fluffy_Hunting == 0)
end;
+ if (getcharid(3) != $@Fluffy_FighterID)
+ goto L_Punish;
+ set @MobID, 0;
set $@Fluffy_Kills, $@Fluffy_Kills + 1;
set $@Fluffy_Alive, $@Fluffy_Alive - 1;
//TODO: remove announce after debugging
-// message strcharinfo(0), "Fluffies alive: " + $@Fluffy_Alive;
-// message strcharinfo(0), "Fluffies killed: " + $@Fluffy_Kills;
+ // message strcharinfo(0), "Fluffies alive: " + $@Fluffy_Alive;
+ // message strcharinfo(0), "Fluffies killed: " + $@Fluffy_Kills;
if ($@Fluffy_Alive != 0)
end;
if (attachrid($@Fluffy_FighterID))
@@ -299,6 +319,21 @@ OnFluffyDeath:
goto L_GotOut;
end;
+L_Punish:
+ if (@MobID == 1020)
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1020, 1, "Kimarr::OnFluffyDeath";
+ if (@MobID == 1058)
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1058, 1, "Kimarr::OnIceGoblinDeath";
+ if (@MobID == 1015)
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1015, 1, "Kimarr::OnSantaSlimeDeath";
+ if (@MobID == 1072)
+ areamonster "033-1.gat", 79, 29, 88, 42, "", 1072, 1, "Kimarr::OnYetiDeath";
+
+ npctalk strcharinfo(0) + "! This hunt is for " + $@Fluffy_Fighter$ + " alone!";
+ percentheal -100, 0;
+ set @MobID, 0;
+ end;
+
L_Killedall:
message strcharinfo(0), "Good job, but you still have time to throw more food on the ground.";
end;
@@ -313,7 +348,9 @@ S_Clean:
set $@Fluffy_Kills, 0;
set $@Fluffy_Spawn, 0;
set $@Fluffy_Alive, 0;
- killmonster "033-1.gat", "Kimarr::OnOtherDeath";
+ killmonster "033-1.gat", "Kimarr::OnIceGoblinDeath";
+ killmonster "033-1.gat", "Kimarr::OnSantaSlimeDeath";
+ killmonster "033-1.gat", "Kimarr::OnYetiDeath";
killmonster "033-1.gat", "Kimarr::OnFluffyDeath";
return;