Transcendent zones renamed to timed hunting.
This commit is contained in:
parent
d520ed36e8
commit
ded25bb320
@ -154,9 +154,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.teleToLocation(holder.getEnterLocation());
|
player.teleToLocation(holder.getEnterLocation());
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close window.
|
// Close window.
|
||||||
|
@ -154,9 +154,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.teleToLocation(holder.getEnterLocation());
|
player.teleToLocation(holder.getEnterLocation());
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close window.
|
// Close window.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
||||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||||
@ -28,7 +28,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int PATROL_TELEPORTER = 34568;
|
private static final int PATROL_TELEPORTER = 34568;
|
||||||
@ -40,7 +40,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
1013 // Corroded Fields
|
1013 // Corroded Fields
|
||||||
};
|
};
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATE_IDS);
|
super(TEMPLATE_IDS);
|
||||||
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD);
|
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD);
|
||||||
@ -89,6 +89,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -154,9 +154,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.teleToLocation(holder.getEnterLocation());
|
player.teleToLocation(holder.getEnterLocation());
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close window.
|
// Close window.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<instance id="1013" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
|
<instance id="1013" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
|
||||||
<locations>
|
<locations>
|
||||||
<enter type="FIXED">
|
<enter type="FIXED">
|
||||||
<location x="90327" y="198818" z="-3280" />
|
<location x="90327" y="198818" z="-3280" />
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<instance id="1007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
|
<instance id="1007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
|
||||||
<locations>
|
<locations>
|
||||||
<enter type="FIXED">
|
<enter type="FIXED">
|
||||||
<location x="-122259" y="73678" z="-2872" />
|
<location x="-122259" y="73678" z="-2872" />
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
||||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||||
@ -28,7 +28,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int PATROL_TELEPORTER = 34568;
|
private static final int PATROL_TELEPORTER = 34568;
|
||||||
@ -40,7 +40,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
1013 // Corroded Fields
|
1013 // Corroded Fields
|
||||||
};
|
};
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATE_IDS);
|
super(TEMPLATE_IDS);
|
||||||
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD);
|
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD);
|
||||||
@ -89,6 +89,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -154,9 +154,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.teleToLocation(holder.getEnterLocation());
|
player.teleToLocation(holder.getEnterLocation());
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close window.
|
// Close window.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<instance id="1013" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
|
<instance id="1013" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
|
||||||
<locations>
|
<locations>
|
||||||
<enter type="FIXED">
|
<enter type="FIXED">
|
||||||
<location x="90327" y="198818" z="-3280" />
|
<location x="90327" y="198818" z="-3280" />
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<instance id="1007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
|
<instance id="1007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/instance.xsd">
|
||||||
<locations>
|
<locations>
|
||||||
<enter type="FIXED">
|
<enter type="FIXED">
|
||||||
<location x="-122259" y="73678" z="-2872" />
|
<location x="-122259" y="73678" z="-2872" />
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData;
|
||||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||||
@ -28,7 +28,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int PATROL_TELEPORTER = 34568;
|
private static final int PATROL_TELEPORTER = 34568;
|
||||||
@ -42,7 +42,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
1020, // Corroded Fields
|
1020, // Corroded Fields
|
||||||
};
|
};
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATE_IDS);
|
super(TEMPLATE_IDS);
|
||||||
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD, TELEPORT_SCOUT);
|
addStartNpc(PATROL_TELEPORTER, PATROL_GUARD, TELEPORT_SCOUT);
|
||||||
@ -91,6 +91,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -154,9 +154,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
player.teleToLocation(holder.getEnterLocation());
|
player.teleToLocation(holder.getEnterLocation());
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close window.
|
// Close window.
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kate:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Deekhin:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Bunch:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Ayan:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Joon:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Panji:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -49,7 +49,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Berezkin Nikolay, Mobius
|
* @author Berezkin Nikolay, Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int JOON = 34124;
|
private static final int JOON = 34124;
|
||||||
@ -117,7 +117,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
||||||
}
|
}
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATES);
|
super(TEMPLATES);
|
||||||
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
||||||
@ -171,7 +171,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(Npc npc, Player player)
|
public String onFirstTalk(Npc npc, Player player)
|
||||||
{
|
{
|
||||||
if (player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
return npc.getId() + "-finished.html";
|
return npc.getId() + "-finished.html";
|
||||||
}
|
}
|
||||||
@ -239,9 +239,9 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public void onInstanceLeave(Player player, Instance instance)
|
public void onInstanceLeave(Player player, Instance instance)
|
||||||
{
|
{
|
||||||
if (instance.getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (instance.getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
instance.setParameter("TranscendentZoneTaskFinished", false);
|
instance.setParameter("TimedHuntingTaskFinished", false);
|
||||||
}
|
}
|
||||||
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
||||||
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
@ -281,7 +281,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
private void startEvent(Player player)
|
private void startEvent(Player player)
|
||||||
{
|
{
|
||||||
// Start instance tasks.
|
// Start instance tasks.
|
||||||
if (!player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (!player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
final Instance instance = player.getInstanceWorld();
|
final Instance instance = player.getInstanceWorld();
|
||||||
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
||||||
@ -315,7 +315,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
ThreadPool.schedule(() ->
|
ThreadPool.schedule(() ->
|
||||||
{
|
{
|
||||||
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||||
instance.getParameters().set("TranscendentZoneTaskFinished", true);
|
instance.getParameters().set("TimedHuntingTaskFinished", true);
|
||||||
if (spawnTask != null)
|
if (spawnTask != null)
|
||||||
{
|
{
|
||||||
spawnTask.cancel(false);
|
spawnTask.cancel(false);
|
||||||
@ -328,6 +328,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Kate:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Deekhin:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Bunch:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Ayan:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Joon:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Panji:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -168,9 +168,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
// Send time icon.
|
// Send time icon.
|
||||||
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kate:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Deekhin:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Bunch:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Ayan:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Joon:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Panji:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -49,7 +49,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Berezkin Nikolay, Mobius
|
* @author Berezkin Nikolay, Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int JOON = 34124;
|
private static final int JOON = 34124;
|
||||||
@ -117,7 +117,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
||||||
}
|
}
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATES);
|
super(TEMPLATES);
|
||||||
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
||||||
@ -171,7 +171,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(Npc npc, Player player)
|
public String onFirstTalk(Npc npc, Player player)
|
||||||
{
|
{
|
||||||
if (player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
return npc.getId() + "-finished.html";
|
return npc.getId() + "-finished.html";
|
||||||
}
|
}
|
||||||
@ -239,9 +239,9 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public void onInstanceLeave(Player player, Instance instance)
|
public void onInstanceLeave(Player player, Instance instance)
|
||||||
{
|
{
|
||||||
if (instance.getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (instance.getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
instance.setParameter("TranscendentZoneTaskFinished", false);
|
instance.setParameter("TimedHuntingTaskFinished", false);
|
||||||
}
|
}
|
||||||
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
||||||
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
@ -281,7 +281,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
private void startEvent(Player player)
|
private void startEvent(Player player)
|
||||||
{
|
{
|
||||||
// Start instance tasks.
|
// Start instance tasks.
|
||||||
if (!player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (!player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
final Instance instance = player.getInstanceWorld();
|
final Instance instance = player.getInstanceWorld();
|
||||||
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
||||||
@ -315,7 +315,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
ThreadPool.schedule(() ->
|
ThreadPool.schedule(() ->
|
||||||
{
|
{
|
||||||
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||||
instance.getParameters().set("TranscendentZoneTaskFinished", true);
|
instance.getParameters().set("TimedHuntingTaskFinished", true);
|
||||||
if (spawnTask != null)
|
if (spawnTask != null)
|
||||||
{
|
{
|
||||||
spawnTask.cancel(false);
|
spawnTask.cancel(false);
|
||||||
@ -328,6 +328,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Kate:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Deekhin:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Bunch:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Ayan:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Joon:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Panji:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -168,9 +168,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
// Send time icon.
|
// Send time icon.
|
||||||
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Kate:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Deekhin:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Bunch:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Ayan:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Joon:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -0,0 +1,4 @@
|
|||||||
|
<html><body>Panji:<br>
|
||||||
|
All done here?<br>
|
||||||
|
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TimedHunting FINISH">Goodbye</Button>
|
||||||
|
</body></html>
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package instances.TranscendentZone;
|
package instances.TimedHunting;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -49,7 +49,7 @@ import instances.AbstractInstance;
|
|||||||
/**
|
/**
|
||||||
* @author Berezkin Nikolay, Mobius
|
* @author Berezkin Nikolay, Mobius
|
||||||
*/
|
*/
|
||||||
public class TranscendentZone extends AbstractInstance
|
public class TimedHunting extends AbstractInstance
|
||||||
{
|
{
|
||||||
// NPCs
|
// NPCs
|
||||||
private static final int JOON = 34124;
|
private static final int JOON = 34124;
|
||||||
@ -117,7 +117,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
SKILL_REPLACEMENTS.put(47011, 47015); // Freezing Wound
|
||||||
}
|
}
|
||||||
|
|
||||||
public TranscendentZone()
|
public TimedHunting()
|
||||||
{
|
{
|
||||||
super(TEMPLATES);
|
super(TEMPLATES);
|
||||||
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
addFirstTalkId(JOON, KATE, DEEKHIN, BUNCH, AYAN, PANJI);
|
||||||
@ -171,7 +171,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(Npc npc, Player player)
|
public String onFirstTalk(Npc npc, Player player)
|
||||||
{
|
{
|
||||||
if (player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
return npc.getId() + "-finished.html";
|
return npc.getId() + "-finished.html";
|
||||||
}
|
}
|
||||||
@ -239,9 +239,9 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
@Override
|
@Override
|
||||||
public void onInstanceLeave(Player player, Instance instance)
|
public void onInstanceLeave(Player player, Instance instance)
|
||||||
{
|
{
|
||||||
if (instance.getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (instance.getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
instance.setParameter("TranscendentZoneTaskFinished", false);
|
instance.setParameter("TimedHuntingTaskFinished", false);
|
||||||
}
|
}
|
||||||
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, true, false, 600, 0, NpcStringId.TIME_LEFT));
|
||||||
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||||
@ -281,7 +281,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
private void startEvent(Player player)
|
private void startEvent(Player player)
|
||||||
{
|
{
|
||||||
// Start instance tasks.
|
// Start instance tasks.
|
||||||
if (!player.getInstanceWorld().getParameters().getBoolean("TranscendentZoneTaskFinished", false))
|
if (!player.getInstanceWorld().getParameters().getBoolean("TimedHuntingTaskFinished", false))
|
||||||
{
|
{
|
||||||
final Instance instance = player.getInstanceWorld();
|
final Instance instance = player.getInstanceWorld();
|
||||||
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
||||||
@ -315,7 +315,7 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
ThreadPool.schedule(() ->
|
ThreadPool.schedule(() ->
|
||||||
{
|
{
|
||||||
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
instance.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||||
instance.getParameters().set("TranscendentZoneTaskFinished", true);
|
instance.getParameters().set("TimedHuntingTaskFinished", true);
|
||||||
if (spawnTask != null)
|
if (spawnTask != null)
|
||||||
{
|
{
|
||||||
spawnTask.cancel(false);
|
spawnTask.cancel(false);
|
||||||
@ -328,6 +328,6 @@ public class TranscendentZone extends AbstractInstance
|
|||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new TranscendentZone();
|
new TimedHunting();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Kate:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Deekhin:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Bunch:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Ayan:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Joon:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -1,4 +0,0 @@
|
|||||||
<html><body>Panji:<br>
|
|
||||||
All done here?<br>
|
|
||||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TranscendentZone FINISH">Goodbye</Button>
|
|
||||||
</body></html>
|
|
@ -168,9 +168,9 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
|||||||
// Send time icon.
|
// Send time icon.
|
||||||
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
player.sendPacket(new TimedHuntingZoneEnter(player, _zoneId));
|
||||||
}
|
}
|
||||||
else // Transcendent zones.
|
else // Instanced zones.
|
||||||
{
|
{
|
||||||
QuestManager.getInstance().getQuest("TranscendentZone").notifyEvent("ENTER " + _zoneId, null, player);
|
QuestManager.getInstance().getQuest("TimedHunting").notifyEvent("ENTER " + _zoneId, null, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user