Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/aCis/java/net/sf/l2j/gameserver/model/zone/type/BossZone.java b/aCis/java/net/sf/l2j/gameserver/model/zone/type/BossZone.java
- index 56adf02..79c4292 100644
- --- a/aCis/java/net/sf/l2j/gameserver/model/zone/type/BossZone.java
- +++ b/aCis/java/net/sf/l2j/gameserver/model/zone/type/BossZone.java
- @@ -3,6 +3,8 @@
- import java.sql.Connection;
- import java.sql.PreparedStatement;
- import java.sql.ResultSet;
- import java.util.List;
- import java.util.Map;
- import java.util.Set;
- @@ -13,11 +15,13 @@
- import net.sf.l2j.Config;
- import net.sf.l2j.gameserver.data.xml.MapRegionData.TeleportType;
- import net.sf.l2j.gameserver.enums.ZoneId;
- import net.sf.l2j.gameserver.model.actor.Attackable;
- import net.sf.l2j.gameserver.model.actor.Creature;
- import net.sf.l2j.gameserver.model.actor.Playable;
- import net.sf.l2j.gameserver.model.actor.Player;
- import net.sf.l2j.gameserver.model.actor.Summon;
- +import net.sf.l2j.gameserver.model.actor.instance.RaidBoss;
- import net.sf.l2j.gameserver.model.zone.type.subtype.ZoneType;
- /**
- @@ -38,8 +42,10 @@
- private final int[] _oustLoc = new int[3];
- private int _invadeTime;
- + private int _bossId;
- public BossZone(int id)
- {
- @@ -73,8 +79,10 @@
- _oustLoc[1] = Integer.parseInt(value);
- else if (name.equals("oustZ"))
- _oustLoc[2] = Integer.parseInt(value);
- + else if (name.equals("bossId"))
- + _bossId = Integer.parseInt(value);
- else
- super.setParameter(name, value);
- }
- @@ -73,8 +79,10 @@
- @Override
- protected void onExit(Creature character)
- {
- character.setInsideZone(ZoneId.BOSS, false);
- +
- + if (character instanceof RaidBoss)
- + {
- + final RaidBoss raidboss = ((RaidBoss) character);
- + if (raidboss.getNpcId() == _bossId)
- + {
- + raidboss.teleportTo(raidboss.getSpawn().getLoc(), 0);
- + raidboss.setTarget(null);
- + raidboss.getStatus().setMaxHp();
- + raidboss.getAI().tryToIdle();
- + }
- + }
- if (character instanceof Playable)
- \ No newline at end of file
- <?xml version="1.0" encoding="UTF-8"?>
- <list>
- <!-- Boss Zones -->
- <zone id="110020" shape="NPoly" minZ="-15000" maxZ="10000"> <!-- Barakiel -->
- + <stat name="bossId" val="25325" />
- <node x="83495" y="-85322" />
- <node x="87837" y="-85721" />
- <node x="88877" y="-84196" />
- <node x="87585" y="-81756" />
- <node x="89955" y="-78691" />
- <node x="93900" y="-86824" />
- <node x="89598" y="-90579" />
- <node x="84452" y="-91320" />
- <node x="82178" y="-88232" />
- </zone>
Add Comment
Please, Sign In to add comment