Forge of the Gods area rework.

Contributed by Stayway.
This commit is contained in:
MobiusDev 2015-11-19 07:52:21 +00:00
parent c52b0f6492
commit 90934f0c15
13 changed files with 1059 additions and 1644 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
<button action="bypass -h admin_move_to 125740 -40864 -3736" value="Varka Silenos Barracks" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1>
<button action="bypass -h admin_move_to 106349 -61870 -2904" value="Devil's Pass" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br>
<font color="LEVEL">Dungeons</font><br1>
<button action="bypass -h admin_move_to 168902 -116703 -2417" value="Forge of the Gods" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1>
<button action="bypass -h admin_move_to 169091 -116162 -2456" value="Forge of the Gods" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1>
<button action="bypass -h admin_move_to 189964 -116820 -1624" value="Hall of Flames" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1>
<button action="bypass -h admin_move_to 186699 -75915 -2826" value="Imperial Tomb" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br1>
<button action="bypass -h admin_move_to 178127 -84435 -7215" value="Four Sepulchers" width=210 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br>

View File

@ -1,4 +1,4 @@
<html><body>Watcher of Valakas Klein:<br>
The Hall of Flames leads to Valakas, the fire dragon. It's guarded by the minions of Valakas! If you get past them, you can meet Valakas. To prevent people from entering this dangerous place, no one may actually walk the path...<br>
After all this, you still want to enter the Hall of Flames? Bring me a Floating Stone! Remember, it can be used only once.
The Hall of Flames is a passage leading to Fire Dragon Valakas. The dragon's minions are guarding it, but if you can break through them, Valakas is just beyond. People are prevented from walking in here like this, so no one could enter this perilous place unwittingly....<br>
Despite all that, do you still insist upon entering the Hall of Flames? Then talk to me again when you have a Single-use Floating Stone. Then I'll send you up to the mouth of the Hall of Flames.<br>
</body></html>

View File

@ -0,0 +1,7 @@
<html><body>Watcher of Valakas Klein:<br>
Not just anyone can wield a dragon's weapon. First, you have to be brave enough to kill a dragon, and even then you will need tremendous wealth. Then, you'll need <font color="LEVEL">Dragon Blood</font> to use its skills. But it offers great power, so I can understand why people are compelled to try.
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3154001">Stage 1</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3154002">Stage 2</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3154003">Stage 3</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_multisell 3075504">Purchase Dragon Blood</Button>
</body></html>

View File

@ -3,5 +3,6 @@ Why are you here? Are you by any chance looking for the Hall of Flames behind me
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 1">"Tell me more about the Hall of Flames."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 2">"Tell me about the Amulet of Blessing and Amulet of Rescue."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest GrandBossTeleporters">"I want to enter the Hall of Flames."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 3">"I'd like to take a look at Valakas' weapons"</Button>
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
</body></html>

View File

@ -2,6 +2,7 @@
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>30755</npc> <!-- Theodric -->
<npc>31540</npc> <!-- Klein -->
</npcs>
<item>
<!-- Adena -->

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<!-- Valakas Weapons (Standard) -->
<npcs>
<npc>31540</npc> <!-- Klein -->
</npcs>
<item>
<ingredient id="36427" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36451" count="1"/>
</item>
<item>
<ingredient id="36428" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36452" count="1"/>
</item>
<item>
<ingredient id="36429" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36453" count="1"/>
</item>
<item>
<ingredient id="36430" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36454" count="1"/>
</item>
<item>
<ingredient id="36431" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36455" count="1"/>
</item>
<item>
<ingredient id="36432" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36456" count="1"/>
</item>
<item>
<ingredient id="36433" count="1"/>
<ingredient id="36414" count="50"/>
<ingredient id="36550" count="1560"/>
<ingredient id="36565" count="1560"/>
<ingredient id="36545" count="1560"/>
<ingredient id="36515" count="100"/>
<ingredient id="35563" count="300"/>
<ingredient id="19440" count="7000"/>
<production id="36457" count="1"/>
</item>
</list>

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<!-- Valakas Weapons High-grade -->
<npcs>
<npc>31540</npc> <!-- Klein -->
</npcs>
<item>
<ingredient id="36451" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36475" count="1"/>
</item>
<item>
<ingredient id="36452" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36476" count="1"/>
</item>
<item>
<ingredient id="36453" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36477" count="1"/>
</item>
<item>
<ingredient id="36454" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36478" count="1"/>
</item>
<item>
<ingredient id="36455" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36479" count="1"/>
</item>
<item>
<ingredient id="36456" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36480" count="1"/>
</item>
<item>
<ingredient id="36457" count="1"/>
<ingredient id="36414" count="60"/>
<ingredient id="36550" count="3850"/>
<ingredient id="36565" count="3850"/>
<ingredient id="36545" count="3850"/>
<ingredient id="36515" count="500"/>
<ingredient id="35563" count="800"/>
<ingredient id="19440" count="12000"/>
<production id="36481" count="1"/>
</item>
</list>

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<!-- Valakas Weapons Top-grade -->
<npcs>
<npc>31540</npc> <!-- Klein -->
</npcs>
<item>
<ingredient id="36475" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36499" count="1"/>
</item>
<item>
<ingredient id="36476" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36500" count="1"/>
</item>
<item>
<ingredient id="36477" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36501" count="1"/>
</item>
<item>
<ingredient id="36478" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36502" count="1"/>
</item>
<item>
<ingredient id="36479" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36503" count="1"/>
</item>
<item>
<ingredient id="36480" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36504" count="1"/>
</item>
<item>
<ingredient id="36481" count="1"/>
<ingredient id="36414" count="120"/>
<ingredient id="36550" count="9280"/>
<ingredient id="36565" count="9280"/>
<ingredient id="36545" count="9280"/>
<ingredient id="36515" count="2618"/>
<ingredient id="35563" count="4380"/>
<ingredient id="19440" count="18000"/>
<production id="36505" count="1"/>
</item>
</list>

View File

@ -37,7 +37,6 @@ ai/npc/DragonVortex/DragonVortex.java
ai/npc/FameManager/FameManager.java
ai/npc/ForgeOfTheGods/ForgeOfTheGods.java
ai/npc/ForgeOfTheGods/Rooney.java
ai/npc/ForgeOfTheGods/TarBeetle.java
ai/npc/FortressArcherCaptain/FortressArcherCaptain.java
ai/npc/FortressSiegeManager/FortressSiegeManager.java
ai/npc/FreyasSteward/FreyasSteward.java

View File

@ -1,104 +0,0 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.npc.ForgeOfTheGods;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.SkillHolder;
import com.l2jserver.gameserver.model.skills.BuffInfo;
import com.l2jserver.gameserver.model.skills.Skill;
/**
* Tar Beetle AI
* @author nonom, malyelfik
*/
public final class TarBeetle extends AbstractNpcAI
{
// NPC
private static final int TAR_BEETLE = 18804;
// Skills
private static final int TAR_SPITE = 6142;
private static SkillHolder[] SKILLS =
{
new SkillHolder(TAR_SPITE, 1),
new SkillHolder(TAR_SPITE, 2),
new SkillHolder(TAR_SPITE, 3)
};
private static final TarBeetleSpawn spawn = new TarBeetleSpawn();
private TarBeetle()
{
super(TarBeetle.class.getSimpleName(), "ai/npc");
addAggroRangeEnterId(TAR_BEETLE);
addSpellFinishedId(TAR_BEETLE);
}
@Override
public String onAggroRangeEnter(L2Npc npc, L2PcInstance player, boolean isSummon)
{
if (npc.getScriptValue() > 0)
{
final BuffInfo info = player.getEffectList().getBuffInfoBySkillId(TAR_SPITE);
final int level = (info != null) ? info.getSkill().getAbnormalLvl() : 0;
if (level < 3)
{
final Skill skill = SKILLS[level].getSkill();
if (!npc.isSkillDisabled(skill))
{
npc.setTarget(player);
npc.doCast(skill);
}
}
}
return super.onAggroRangeEnter(npc, player, isSummon);
}
@Override
public String onSpellFinished(L2Npc npc, L2PcInstance player, Skill skill)
{
if ((skill != null) && (skill.getId() == TAR_SPITE))
{
final int val = npc.getScriptValue() - 1;
if ((val <= 0) || (SKILLS[0].getSkill().getMpConsume() > npc.getCurrentMp()))
{
spawn.removeBeetle(npc);
}
else
{
npc.setScriptValue(val);
}
}
return super.onSpellFinished(npc, player, skill);
}
@Override
public boolean unload()
{
spawn.unload();
return super.unload();
}
public static void main(String[] args)
{
new TarBeetle();
}
}

View File

@ -1,272 +0,0 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.npc.ForgeOfTheGods;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ScheduledFuture;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import com.l2jserver.gameserver.GeoData;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.model.L2Spawn;
import com.l2jserver.gameserver.model.L2Territory;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.util.Rnd;
import com.l2jserver.util.data.xml.IXmlReader;
/**
* Tar Beetle zone spawn
* @author malyelfik
*/
public class TarBeetleSpawn implements IXmlReader
{
private final List<SpawnZone> zones = new ArrayList<>();
private ScheduledFuture<?> spawnTask;
private ScheduledFuture<?> shotTask;
public TarBeetleSpawn()
{
load();
}
@Override
public void load()
{
parseDatapackFile("spawnZones/tar_beetle.xml");
if (!zones.isEmpty())
{
spawnTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> zones.forEach(SpawnZone::refreshSpawn), 1000, 60000);
shotTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> zones.forEach(SpawnZone::refreshShots), 300000, 300000);
}
}
@Override
public void parseDocument(Document doc)
{
int i = 0;
for (Node d = doc.getFirstChild(); d != null; d = d.getNextSibling())
{
if (d.getNodeName().equals("list"))
{
for (Node r = d.getFirstChild(); r != null; r = r.getNextSibling())
{
if (r.getNodeName().equals("spawnZone"))
{
NamedNodeMap attrs = r.getAttributes();
final int npcCount = parseInteger(attrs, "maxNpcCount");
final SpawnZone sp = new SpawnZone(npcCount, i);
for (Node b = r.getFirstChild(); b != null; b = b.getNextSibling())
{
if (b.getNodeName().equals("zone"))
{
attrs = b.getAttributes();
final int minZ = parseInteger(attrs, "minZ");
final int maxZ = parseInteger(attrs, "maxZ");
final Zone zone = new Zone();
for (Node c = b.getFirstChild(); c != null; c = c.getNextSibling())
{
attrs = c.getAttributes();
if (c.getNodeName().equals("point"))
{
final int x = parseInteger(attrs, "x");
final int y = parseInteger(attrs, "y");
zone.add(x, y, minZ, maxZ, 0);
}
else if (c.getNodeName().equals("bannedZone"))
{
final Zone bannedZone = new Zone();
final int bMinZ = parseInteger(attrs, "minZ");
final int bMaxZ = parseInteger(attrs, "maxZ");
for (Node f = c.getFirstChild(); f != null; f = f.getNextSibling())
{
if (f.getNodeName().equals("point"))
{
attrs = f.getAttributes();
int x = parseInteger(attrs, "x");
int y = parseInteger(attrs, "y");
bannedZone.add(x, y, bMinZ, bMaxZ, 0);
}
}
zone.addBannedZone(bannedZone);
}
}
sp.addZone(zone);
}
}
zones.add(i++, sp);
}
}
}
}
}
public final void unload()
{
if (spawnTask != null)
{
spawnTask.cancel(false);
}
if (shotTask != null)
{
shotTask.cancel(false);
}
zones.forEach(SpawnZone::unload);
zones.clear();
}
public final void removeBeetle(L2Npc npc)
{
zones.get(npc.getVariables().getInt("zoneIndex", 0)).removeSpawn(npc);
npc.deleteMe();
}
private final class Zone extends L2Territory
{
private List<Zone> _bannedZones;
public Zone()
{
super(1);
}
@Override
public Location getRandomPoint()
{
Location location = super.getRandomPoint();
while ((location != null) && isInsideBannedZone(location))
{
location = super.getRandomPoint();
}
return location;
}
public final void addBannedZone(Zone bZone)
{
if (_bannedZones == null)
{
_bannedZones = new ArrayList<>();
}
_bannedZones.add(bZone);
}
private final boolean isInsideBannedZone(Location location)
{
if (_bannedZones != null)
{
for (Zone z : _bannedZones)
{
if (z.isInside(location.getX(), location.getY()))
{
return true;
}
}
}
return false;
}
}
private final class SpawnZone
{
private final List<Zone> _zones = new ArrayList<>();
private final List<L2Npc> _spawn = new CopyOnWriteArrayList<>();
private final int _maxNpcCount;
private final int _index;
public SpawnZone(int maxNpcCount, int index)
{
_maxNpcCount = maxNpcCount;
_index = index;
}
public final void addZone(Zone zone)
{
_zones.add(zone);
}
public final void removeSpawn(L2Npc obj)
{
_spawn.remove(obj);
}
public final void unload()
{
_spawn.forEach(L2Npc::deleteMe);
_spawn.clear();
_zones.clear();
}
public final void refreshSpawn()
{
try
{
while (_spawn.size() < _maxNpcCount)
{
final Location location = _zones.get(Rnd.get(_zones.size())).getRandomPoint();
if (location != null)
{
final L2Spawn spawn = new L2Spawn(18804);
spawn.setHeading(Rnd.get(65535));
spawn.setX(location.getX());
spawn.setY(location.getY());
spawn.setZ(GeoData.getInstance().getSpawnHeight(location));
final L2Npc npc = spawn.doSpawn();
npc.setIsNoRndWalk(true);
npc.setIsImmobilized(true);
npc.setIsInvul(true);
npc.disableCoreAI(true);
npc.setScriptValue(5);
npc.getVariables().set("zoneIndex", _index);
_spawn.add(npc);
}
}
}
catch (Exception e)
{
LOGGER.warning(getClass().getSimpleName() + ": Could not refresh spawns!");
}
}
public final void refreshShots()
{
if (_spawn.size() > 0)
{
for (L2Npc npc : _spawn)
{
final int val = npc.getScriptValue();
if (val == 5)
{
npc.deleteMe();
_spawn.remove(npc);
}
else
{
npc.setScriptValue(val + 1);
}
}
}
}
}
}

View File

@ -1,493 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/tar_beetle.xsd">
<!-- Forge of the Gods lower level - Spawn Zones -->
<spawnZone maxNpcCount="4">
<zone minZ="-5565" maxZ="-5365">
<point x="175828" y="-111714" />
<point x="175528" y="-111346" />
<point x="175204" y="-111434" />
<point x="175064" y="-111990" />
<point x="175224" y="-112854" />
<point x="176132" y="-112826" />
<point x="176376" y="-111850" />
</zone>
<zone minZ="-5876" maxZ="-5676">
<point x="177666" y="-112338" />
<point x="178118" y="-111838" />
<point x="178330" y="-112266" />
<point x="179262" y="-111942" />
<point x="179446" y="-113082" />
<point x="178806" y="-114178" />
<point x="177990" y="-113862" />
<point x="178126" y="-113266" />
<point x="177678" y="-113122" />
</zone>
<zone minZ="-6170" maxZ="-5970">
<point x="181013" y="-115006" />
<point x="180393" y="-114762" />
<point x="179989" y="-115202" />
<point x="179605" y="-114830" />
<point x="179009" y="-115374" />
<point x="179389" y="-116918" />
<point x="179781" y="-116826" />
<point x="180633" y="-117142" />
<point x="181181" y="-116262" />
</zone>
<zone minZ="-6174" maxZ="-5974">
<point x="183192" y="-115568" />
<point x="184072" y="-114860" />
<point x="183688" y="-113956" />
<point x="182848" y="-113888" />
<point x="181556" y="-114412" />
<point x="181908" y="-115220" />
<point x="181708" y="-115980" />
<point x="182476" y="-115908" />
<point x="182544" y="-115452" />
<point x="182952" y="-115396" />
<bannedZone minZ="-6244" maxZ="-5744">
<point x="183260" y="-114708" />
<point x="183460" y="-114708" />
<point x="183460" y="-114508" />
<point x="183260" y="-114508" />
</bannedZone>
</zone>
<zone minZ="-6182" maxZ="-5982">
<point x="184908" y="-118019" />
<point x="185328" y="-117263" />
<point x="184756" y="-115907" />
<point x="184036" y="-115735" />
<point x="183016" y="-116807" />
<point x="183856" y="-118115" />
<bannedZone minZ="-6184" maxZ="-5684">
<point x="184140" y="-117188" />
<point x="184340" y="-117188" />
<point x="184340" y="-116988" />
<point x="184140" y="-116988" />
</bannedZone>
</zone>
<zone minZ="-5894" maxZ="-5694">
<point x="182031" y="-111122" />
<point x="182679" y="-110114" />
<point x="181971" y="-108898" />
<point x="180651" y="-109022" />
<point x="180367" y="-109346" />
<point x="180639" y="-111170" />
<bannedZone minZ="-5912" maxZ="-5412">
<point x="181064" y="-109780" />
<point x="181548" y="-110184" />
<point x="181656" y="-109952" />
<point x="181180" y="-109564" />
</bannedZone>
</zone>
<zone minZ="-5886" maxZ="-5686">
<point x="179604" y="-108013" />
<point x="179592" y="-107193" />
<point x="178728" y="-106757" />
<point x="178192" y="-107437" />
<point x="177804" y="-107465" />
<point x="177580" y="-108377" />
<point x="177836" y="-108765" />
<point x="178728" y="-108877" />
<point x="178716" y="-108093" />
</zone>
<zone minZ="-5896" maxZ="-5676">
<point x="178913" y="-110527" />
<point x="179358" y="-110192" />
<point x="178971" y="-109536" />
<point x="178300" y="-109836" />
<point x="177846" y="-110174" />
<point x="177941" y="-110441" />
<point x="178203" y="-110941" />
<point x="178678" y="-110925" />
</zone>
<zone minZ="-6101" maxZ="-5901">
<point x="181981" y="-105685" />
<point x="180989" y="-105901" />
<point x="180745" y="-106253" />
<point x="181213" y="-106477" />
<point x="180725" y="-106965" />
<point x="181521" y="-107913" />
<point x="182501" y="-107669" />
<point x="182453" y="-107281" />
<point x="183121" y="-107189" />
<point x="183445" y="-106453" />
<point x="182797" y="-105761" />
</zone>
</spawnZone>
<!-- Forge of the Gods upper level - Spawn Zones -->
<spawnZone maxNpcCount="12">
<zone minZ="-3647" maxZ="-3447">
<point x="179651" y="-116994" />
<point x="179519" y="-116706" />
<point x="179231" y="-116702" />
<point x="178791" y="-116826" />
<point x="178799" y="-117082" />
<point x="179143" y="-117374" />
<point x="179679" y="-117146" />
</zone>
<zone minZ="-3675" maxZ="-3475">
<point x="180621" y="-115487" />
<point x="180461" y="-115247" />
<point x="180181" y="-114811" />
<point x="179561" y="-114695" />
<point x="179229" y="-114915" />
<point x="179117" y="-115287" />
<point x="179373" y="-116223" />
<point x="180349" y="-116003" />
</zone>
<zone minZ="-4165" maxZ="-3965">
<point x="178529" y="-119994" />
<point x="178734" y="-119409" />
<point x="177546" y="-119205" />
<point x="177326" y="-119735" />
<point x="177614" y="-120055" />
<point x="178102" y="-120227" />
</zone>
<zone minZ="-4148" maxZ="-3948">
<point x="176164" y="-121387" />
<point x="177436" y="-121403" />
<point x="177544" y="-120827" />
<point x="177068" y="-120007" />
<point x="176824" y="-119927" />
<point x="176092" y="-120371" />
<bannedZone minZ="-4272" maxZ="-3772">
<point x="176380" y="-121148" />
<point x="176992" y="-121156" />
<point x="176948" y="-120492" />
<point x="176388" y="-120516" />
</bannedZone>
</zone>
<zone minZ="-3710" maxZ="-3510">
<point x="181328" y="-119542" />
<point x="181328" y="-119542" />
<point x="180572" y="-119854" />
<point x="180392" y="-120578" />
<point x="180860" y="-121058" />
<point x="181336" y="-120926" />
<point x="181792" y="-120418" />
<point x="181600" y="-119602" />
</zone>
<zone minZ="-3382" maxZ="-3182">
<point x="182415" y="-117705" />
<point x="182059" y="-117521" />
<point x="181819" y="-117529" />
<point x="181439" y="-117973" />
<point x="181791" y="-118273" />
<point x="181987" y="-118193" />
<point x="182307" y="-118405" />
<point x="182567" y="-118041" />
</zone>
<zone minZ="-3329" maxZ="-3129">
<point x="185977" y="-118936" />
<point x="186445" y="-118884" />
<point x="186637" y="-118496" />
<point x="187157" y="-117612" />
<point x="186797" y="-116776" />
<point x="186141" y="-117316" />
<point x="185537" y="-118260" />
<bannedZone minZ="-3320" maxZ="-2820">
<point x="186284" y="-117708" />
<point x="186888" y="-117844" />
<point x="186912" y="-117220" />
<point x="186404" y="-117204" />
</bannedZone>
</zone>
<zone minZ="-3124" maxZ="-2924">
<point x="184154" y="-118553" />
<point x="184534" y="-119217" />
<point x="184262" y="-119741" />
<point x="184022" y="-120049" />
<point x="183410" y="-120093" />
<point x="182942" y="-119373" />
<point x="183138" y="-118873" />
<bannedZone minZ="-3176" maxZ="-2676">
<point x="183608" y="-119784" />
<point x="184028" y="-119792" />
<point x="184048" y="-119332" />
<point x="183572" y="-119344" />
</bannedZone>
</zone>
<zone minZ="-3136" maxZ="-2936">
<point x="185916" y="-120861" />
<point x="185920" y="-120505" />
<point x="185592" y="-119957" />
<point x="184656" y="-120029" />
<point x="184440" y="-120325" />
<point x="184384" y="-121241" />
<point x="185336" y="-121453" />
<bannedZone minZ="-3116" maxZ="-2916">
<point x="184868" y="-120920" />
<point x="185360" y="-120904" />
<point x="185316" y="-120480" />
<point x="184900" y="-120460" />
</bannedZone>
</zone>
<zone minZ="-3136" maxZ="-2936">
<point x="187906" y="-121665" />
<point x="188526" y="-121049" />
<point x="188438" y="-120549" />
<point x="187718" y="-120037" />
<point x="187106" y="-120665" />
<point x="186926" y="-120909" />
<point x="187190" y="-121453" />
<bannedZone minZ="-3196" maxZ="-2696">
<point x="187352" y="-121108" />
<point x="187832" y="-121092" />
<point x="187800" y="-120620" />
<point x="187328" y="-120640" />
</bannedZone>
</zone>
<zone minZ="-3134" maxZ="-2934">
<point x="190497" y="-120846" />
<point x="190353" y="-120154" />
<point x="189941" y="-119750" />
<point x="189273" y="-119714" />
<point x="188885" y="-120602" />
<point x="189037" y="-120946" />
<point x="189737" y="-121322" />
<bannedZone minZ="-3124" maxZ="-2624">
<point x="188864" y="-120616" />
<point x="189216" y="-120844" />
<point x="189448" y="-120412" />
<point x="189016" y="-120248" />
</bannedZone>
</zone>
<zone minZ="-3352" maxZ="-3152">
<point x="189260" y="-119154" />
<point x="189252" y="-118574" />
<point x="188992" y="-118366" />
<point x="188596" y="-118238" />
<point x="187748" y="-118642" />
<point x="187552" y="-119134" />
<point x="188156" y="-119758" />
<point x="188876" y="-119542" />
<bannedZone minZ="-3384" maxZ="-2884">
<point x="188308" y="-119220" />
<point x="188740" y="-119084" />
<point x="188568" y="-118608" />
<point x="188140" y="-118824" />
</bannedZone>
</zone>
<zone minZ="-3332" maxZ="-3132">
<point x="190058" y="-118093" />
<point x="190590" y="-117357" />
<point x="190522" y="-116457" />
<point x="189542" y="-116113" />
<point x="189178" y="-116405" />
<point x="189122" y="-117733" />
<point x="189486" y="-118229" />
<bannedZone minZ="-3432" maxZ="-2932">
<point x="189588" y="-117368" />
<point x="190052" y="-117368" />
<point x="190028" y="-116868" />
<point x="189560" y="-116892" />
</bannedZone>
</zone>
<zone minZ="-3328" maxZ="-3128">
<point x="189479" y="-115830" />
<point x="188663" y="-115174" />
<point x="187479" y="-115006" />
<point x="187139" y="-115370" />
<point x="186611" y="-115566" />
<point x="187123" y="-116466" />
<point x="188635" y="-116454" />
</zone>
<zone minZ="-3365" maxZ="-3165">
<point x="186172" y="-115111" />
<point x="186508" y="-115355" />
<point x="186776" y="-115159" />
<point x="186728" y="-113727" />
<point x="185872" y="-114111" />
<bannedZone minZ="-3336" maxZ="-2836">
<point x="186008" y="-114824" />
<point x="186264" y="-114624" />
<point x="186180" y="-114284" />
<point x="185872" y="-114276" />
</bannedZone>
</zone>
<zone minZ="-3398" maxZ="-3198">
<point x="186055" y="-113599" />
<point x="185827" y="-112719" />
<point x="185031" y="-112127" />
<point x="184231" y="-112855" />
<point x="184447" y="-113519" />
<point x="184799" y="-114387" />
<point x="185311" y="-114243" />
<point x="185643" y="-113967" />
</zone>
<zone minZ="-3324" maxZ="-3124">
<point x="188291" y="-112601" />
<point x="187787" y="-112253" />
<point x="187527" y="-112505" />
<point x="187215" y="-112413" />
<point x="187083" y="-112769" />
<point x="187055" y="-113341" />
<point x="187631" y="-113773" />
<point x="188255" y="-113413" />
</zone>
<zone minZ="-3332" maxZ="-3132">
<point x="190463" y="-113751" />
<point x="190315" y="-112971" />
<point x="189711" y="-112835" />
<point x="189467" y="-112975" />
<point x="188975" y="-113103" />
<point x="189119" y="-113707" />
<point x="189383" y="-114015" />
</zone>
<zone minZ="-3336" maxZ="-3136">
<point x="188937" y="-112731" />
<point x="188337" y="-112335" />
<point x="188845" y="-111415" />
<point x="188633" y="-111243" />
<point x="189305" y="-110595" />
<point x="190077" y="-110799" />
<point x="189837" y="-111507" />
<point x="189869" y="-112031" />
<point x="189217" y="-112387" />
</zone>
<zone minZ="-3332" maxZ="-3182">
<point x="191193" y="-109008" />
<point x="190785" y="-107960" />
<point x="189741" y="-107664" />
<point x="189037" y="-108396" />
<point x="188773" y="-109384" />
<point x="189241" y="-110192" />
<point x="190469" y="-110088" />
<point x="190557" y="-109808" />
<bannedZone minZ="-3320" maxZ="-2820">
<point x="189916" y="-109236" />
<point x="190116" y="-109236" />
<point x="190116" y="-109036" />
<point x="189916" y="-109036" />
</bannedZone>
<bannedZone minZ="-3320" maxZ="-2820">
<point x="190708" y="-109304" />
<point x="190852" y="-109260" />
<point x="190760" y="-108940" />
<point x="190624" y="-108964" />
</bannedZone>
<bannedZone minZ="-3340" maxZ="-3140">
<point x="189532" y="-108100" />
<point x="189732" y="-108100" />
<point x="189732" y="-107900" />
<point x="189532" y="-107900" />
</bannedZone>
</zone>
<zone minZ="-3340" maxZ="-3140">
<point x="187762" y="-109743" />
<point x="187082" y="-110095" />
<point x="187326" y="-110235" />
<point x="187554" y="-110635" />
<point x="187386" y="-110939" />
<point x="188242" y="-111219" />
<point x="188346" y="-110015" />
</zone>
<zone minZ="-3332" maxZ="-3132">
<point x="186200" y="-109243" />
<point x="186144" y="-108607" />
<point x="185284" y="-108971" />
<point x="185048" y="-108835" />
<point x="184536" y="-109407" />
<point x="184576" y="-110775" />
<point x="185004" y="-110767" />
<point x="185184" y="-111327" />
<point x="185824" y="-111439" />
<point x="186848" y="-110387" />
<point x="186720" y="-109351" />
</zone>
<zone minZ="-3719" maxZ="-3569">
<point x="181914" y="-108363" />
<point x="181850" y="-107951" />
<point x="180786" y="-108159" />
<point x="180674" y="-109383" />
<point x="181270" y="-110131" />
<point x="181898" y="-110263" />
<point x="182790" y="-109271" />
<point x="182710" y="-108739" />
</zone>
<zone minZ="-3740" maxZ="-3540">
<point x="183803" y="-112187" />
<point x="183867" y="-111743" />
<point x="184235" y="-111391" />
<point x="183811" y="-110939" />
<point x="182787" y="-111115" />
<point x="182891" y="-111819" />
<point x="183191" y="-112159" />
</zone>
<zone minZ="-3707" maxZ="-3507">
<point x="182600" y="-112042" />
<point x="181652" y="-111582" />
<point x="181564" y="-112110" />
<point x="181240" y="-112114" />
<point x="181096" y="-112898" />
<point x="181416" y="-113250" />
<point x="181828" y="-113054" />
<point x="182108" y="-113290" />
<point x="182720" y="-112842" />
</zone>
<zone minZ="-3751" maxZ="-3551">
<point x="180780" y="-112379" />
<point x="180276" y="-112003" />
<point x="179224" y="-111995" />
<point x="179280" y="-112343" />
<point x="178880" y="-112683" />
<point x="178916" y="-113283" />
<point x="179400" y="-113455" />
<point x="179444" y="-113707" />
<point x="180224" y="-113687" />
<point x="180728" y="-113107" />
<bannedZone minZ="-3728" maxZ="-3228">
<point x="179636" y="-113000" />
<point x="179836" y="-113000" />
<point x="179836" y="-112800" />
<point x="179636" y="-112800" />
</bannedZone>
</zone>
<zone minZ="-3711" maxZ="-3511">
<point x="179861" y="-108287" />
<point x="180049" y="-107871" />
<point x="179689" y="-107411" />
<point x="178025" y="-107563" />
<point x="177549" y="-108583" />
<point x="177725" y="-109535" />
<point x="178169" y="-109735" />
<point x="178305" y="-110171" />
<point x="179773" y="-109695" />
<point x="180113" y="-108735" />
</zone>
<zone minZ="-3703" maxZ="-3503">
<point x="176861" y="-108117" />
<point x="176021" y="-107829" />
<point x="175861" y="-108193" />
<point x="175537" y="-108233" />
<point x="175197" y="-109597" />
<point x="175493" y="-109717" />
<point x="175289" y="-110285" />
<point x="175797" y="-110833" />
<point x="176041" y="-110557" />
<point x="176429" y="-110853" />
<point x="176961" y="-110469" />
<point x="176917" y="-109365" />
<bannedZone minZ="-3720" maxZ="-3220">
<point x="175800" y="-110104" />
<point x="176340" y="-110260" />
<point x="176480" y="-109660" />
<point x="175864" y="-109528" />
</bannedZone>
</zone>
<zone minZ="-3531" maxZ="-3331">
<point x="176442" y="-111822" />
<point x="176002" y="-111794" />
<point x="175786" y="-112090" />
<point x="175102" y="-112798" />
<point x="175078" y="-113274" />
<point x="175518" y="-114178" />
<point x="175926" y="-114014" />
<point x="176630" y="-114050" />
<point x="176970" y="-113310" />
<point x="176886" y="-112838" />
<point x="176306" y="-112434" />
<point x="176306" y="-112434" />
</zone>
</spawnZone>
</list>