Hit Reactor animation fix + deny spawn points

Fixed reactor sometimes not animating between state changes and
introduced mechanic to deny spawning mobs at spawn points.
This commit is contained in:
ronancpl
2017-04-17 15:44:12 -03:00
parent 6791a3d475
commit c17e4c93a3
16 changed files with 350 additions and 107 deletions

View File

@@ -151,4 +151,7 @@ Adi
Adição de expedições PiratePQ e EllinPQ.
11 - 12 Abril 2017,
Implementação do PiratePQ.
Implementação do PiratePQ.
17 Abril 2017,
Correção de bugs envolvendo reactors no PiratePQ, e potencialmente em outros pontos também.

View File

@@ -3,6 +3,21 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Nexon/MapleSolaxia/src/scripting/reactor/ReactorActionManager.java</file>
<file>file:/C:/Nexon/MapleSolaxia/scripts/reactor/2519003.js</file>
<file>file:/C:/Nexon/MapleSolaxia/src/tools/data/output/GenericLittleEndianWriter.java</file>
<file>file:/C:/Nexon/MapleSolaxia/scripts/reactor/2519002.js</file>
<file>file:/C:/Nexon/MapleSolaxia/scripts/reactor/2519001.js</file>
<file>file:/C:/Nexon/MapleSolaxia/src/server/maps/MapleMapFactory.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/client/command/Commands.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/client/MapleCharacter.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/tools/MaplePacketCreator.java</file>
<file>file:/C:/Nexon/MapleSolaxia/scripts/reactor/2519000.js</file>
<file>file:/C:/Nexon/MapleSolaxia/src/server/life/SpawnPoint.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/server/maps/MapleReactorStats.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/scripting/reactor/ReactorScriptManager.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/constants/ServerConstants.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/server/maps/MapleReactor.java</file>
<file>file:/C:/Nexon/MapleSolaxia/src/server/maps/MapleMap.java</file>
</group>
</open-files>

View File

@@ -23,6 +23,13 @@
*@author Ronan
*/
importPackage(Packages.tools);
importPackage(java.awt);
function act() {
rm.getPlayer().getMap().setAllowSpawnPointInRange(false, rm.getReactor().getPosition(), 120.0);
}
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
}

View File

@@ -23,6 +23,13 @@
*@author Ronan
*/
importPackage(Packages.tools);
importPackage(java.awt);
function act() {
rm.getPlayer().getMap().setAllowSpawnPointInRange(false, rm.getReactor().getPosition(), 120.0);
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
}

View File

@@ -23,6 +23,13 @@
*@author Ronan
*/
importPackage(Packages.tools);
importPackage(java.awt);
function act() {
rm.getPlayer().getMap().setAllowSpawnPointInRange(false, rm.getReactor().getPosition(), 120.0);
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
}

View File

@@ -23,6 +23,13 @@
*@author Ronan
*/
importPackage(Packages.tools);
importPackage(java.awt);
function act() {
rm.getPlayer().getMap().setAllowSpawnPointInRange(false, rm.getReactor().getPosition(), 120.0);
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);
}

View File

@@ -315,7 +315,7 @@ public class Commands {
return false;
}
switch (sub[0]) {
case "help":
case "help":
case "commands":
player.yellowMessage("After you vote, talk to Rooney to get a leaf and redeem it for prizes!");
player.message("@dispose: Fixes your character if it is stuck.");
@@ -636,6 +636,14 @@ public class Commands {
}
}
break;
//debug only
case "map":
if(ServerConstants.USE_DEBUG) {
player.dropMessage("Current map position: (" + player.getPosition().getX() + ", " + player.getPosition().getY() + ").");
break;
}
default:
if (player.gmLevel() == 0) {
player.yellowMessage("Player Command " + heading + sub[0] + " does not exist, see @help for a list of commands.");

View File

@@ -24,7 +24,7 @@ public class ServerConstants {
public static boolean JAVA_8;
public static boolean SHUTDOWNHOOK;
//Gameplay Configurations
public static final boolean USE_MAXRANGE = true; //will send and receive packets from all events of a map.
public static final boolean USE_MAXRANGE = true; //will send and receive packets from all events of a map, rather than those of only view range.
public static final boolean USE_DEBUG = true;
public static final boolean USE_MTS = false;
public static final boolean USE_FAMILY_SYSTEM = false;

View File

@@ -41,7 +41,7 @@ public final class ReactorHitHandler extends AbstractMaplePacketHandler {
int skillid = slea.readInt();
MapleReactor reactor = c.getPlayer().getMap().getReactorByOid(oid);
if (reactor != null && reactor.isAlive()) {
reactor.hitReactor(charPos, stance, skillid,c);
reactor.hitReactor(charPos, stance, skillid, c, false);
}
}
}

View File

@@ -31,7 +31,7 @@ public class SpawnPoint {
private long nextPossibleSpawn;
private int mobInterval = 5000;
private AtomicInteger spawnedMonsters = new AtomicInteger(0);
private boolean immobile;
private boolean immobile, denySpawn = false;
public SpawnPoint(final MapleMonster monster, Point pos, boolean immobile, int mobTime, int mobInterval, int team) {
this.monster = monster.getId();
@@ -50,11 +50,15 @@ public class SpawnPoint {
}
public void setDenySpawn(boolean val) {
spawnedMonsters.set((val == false) ? 0 : 1);
denySpawn = val;
}
public boolean getDenySpawn() {
return denySpawn;
}
public boolean shouldSpawn() {
if (mobTime < 0 || spawnedMonsters.get() > 0) {
if (denySpawn || mobTime < 0 || spawnedMonsters.get() > 0) {
return false;
}

View File

@@ -290,7 +290,7 @@ public class MapleMap {
this.mapobjects.put(curOID, mapobject);
for (MapleCharacter chr : characters) {
if (condition == null || condition.canSpawn(chr)) {
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= 722500) {
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= getRangedDistance()) {
packetbakery.sendPackets(chr.getClient());
chr.addVisibleMapObject(mapobject);
}
@@ -310,7 +310,7 @@ public class MapleMap {
mapobject.setObjectId(curOID);
for (MapleCharacter chr : characters) {
if (condition == null || condition.canSpawn(chr)) {
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= 722500) {
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= getRangedDistance()) {
packetbakery.sendPackets(chr.getClient());
chr.addVisibleMapObject(mapobject);
}
@@ -796,7 +796,14 @@ public class MapleMap {
broadcastMessage(MaplePacketCreator.destroyReactor(reactor));
reactor.setAlive(false);
removeMapObject(reactor);
reactor.setTimerActive(false);
reactor.lockReactor();
try {
reactor.setShouldCollect(true);
} finally {
reactor.unlockReactor();
}
if (reactor.getDelay() > 0) {
tMan.schedule(new Runnable() {
@Override
@@ -814,7 +821,14 @@ public class MapleMap {
if (o.getType() == MapleMapObjectType.REACTOR) {
final MapleReactor r = ((MapleReactor) o);
r.setState((byte) 0);
r.setTimerActive(false);
r.lockReactor();
try {
r.setShouldCollect(true);
} finally {
r.unlockReactor();
}
broadcastMessage(MaplePacketCreator.triggerReactor(r, 0));
}
}
@@ -1314,11 +1328,8 @@ public class MapleMap {
if (react.getReactItem((byte) 0).getLeft() == item.getItemId() && react.getReactItem((byte) 0).getRight() == item.getQuantity()) {
if (react.getArea().contains(drop.getPosition())) {
if (!react.isTimerActive()) {
TimerManager.getInstance().schedule(new ActivateItemReactor(drop, react, c), 5000);
react.setTimerActive(true);
break;
}
TimerManager.getInstance().schedule(new ActivateItemReactor(drop, react, c), 5000);
break;
}
}
}
@@ -1633,7 +1644,7 @@ public class MapleMap {
public void broadcastMessage(final byte[] packet) {
broadcastMessage(null, packet, Double.POSITIVE_INFINITY, null);
}
public void broadcastGMMessage(final byte[] packet) {
broadcastGMMessage(null, packet, Double.POSITIVE_INFINITY, null);
}
@@ -1658,7 +1669,7 @@ public class MapleMap {
* @param ranged
*/
public void broadcastMessage(MapleCharacter source, final byte[] packet, boolean repeatToSource, boolean ranged) {
broadcastMessage(repeatToSource ? null : source, packet, ranged ? 722500 : Double.POSITIVE_INFINITY, source.getPosition());
broadcastMessage(repeatToSource ? null : source, packet, ranged ? getRangedDistance() : Double.POSITIVE_INFINITY, source.getPosition());
}
/**
@@ -1878,11 +1889,11 @@ public class MapleMap {
private void updateMapObjectVisibility(MapleCharacter chr, MapleMapObject mo) {
if (!chr.isMapObjectVisible(mo)) { // monster entered view range
if (mo.getType() == MapleMapObjectType.SUMMON || mo.getPosition().distanceSq(chr.getPosition()) <= 722500) {
if (mo.getType() == MapleMapObjectType.SUMMON || mo.getPosition().distanceSq(chr.getPosition()) <= getRangedDistance()) {
chr.addVisibleMapObject(mo);
mo.sendSpawnData(chr.getClient());
}
} else if (mo.getType() != MapleMapObjectType.SUMMON && mo.getPosition().distanceSq(chr.getPosition()) > 722500) {
} else if (mo.getType() != MapleMapObjectType.SUMMON && mo.getPosition().distanceSq(chr.getPosition()) > getRangedDistance()) {
chr.removeVisibleMapObject(mo);
mo.sendDestroyData(chr.getClient());
}
@@ -2081,30 +2092,38 @@ public class MapleMap {
@Override
public void run() {
if (mapitem != null && mapitem == getMapObject(mapitem.getObjectId())) {
mapitem.itemLock.lock();
try {
TimerManager tMan = TimerManager.getInstance();
if (mapitem.isPickedUp()) {
return;
reactor.lockReactor();
try {
if (reactor.getShouldCollect() == true && mapitem != null && mapitem == getMapObject(mapitem.getObjectId())) {
mapitem.itemLock.lock();
try {
TimerManager tMan = TimerManager.getInstance();
if (mapitem.isPickedUp()) {
return;
}
reactor.setShouldCollect(false);
MapleMap.this.broadcastMessage(MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 0, 0), mapitem.getPosition());
MapleMap.this.removeMapObject(mapitem);
reactor.hitReactor(c, true);
if (reactor.getDelay() > 0) {
tMan.schedule(new Runnable() {
@Override
public void run() {
reactor.setState((byte) 0);
broadcastMessage(MaplePacketCreator.triggerReactor(reactor, 0));
}
}, reactor.getDelay());
}
} finally {
mapitem.itemLock.unlock();
}
MapleMap.this.broadcastMessage(MaplePacketCreator.removeItemFromMap(mapitem.getObjectId(), 0, 0), mapitem.getPosition());
MapleMap.this.removeMapObject(mapitem);
reactor.hitReactor(c);
reactor.setTimerActive(false);
if (reactor.getDelay() > 0) {
tMan.schedule(new Runnable() {
@Override
public void run() {
reactor.setState((byte) 0);
broadcastMessage(MaplePacketCreator.triggerReactor(reactor, 0));
}
}, reactor.getDelay());
}
} finally {
mapitem.itemLock.unlock();
}
}
finally {
reactor.unlockReactor();
}
}
}
@@ -2168,6 +2187,15 @@ public class MapleMap {
chrRLock.unlock();
}
/*
System.out.println("----------------------------------");
for (SpawnPoint spawnPoint : monsterSpawn) {
System.out.println("sp " + spawnPoint.getPosition().getX() + ", " + spawnPoint.getPosition().getY() + ": " + spawnPoint.getDenySpawn());
}
System.out.println("try " + monsterSpawn.size() + " - " + spawnedMonstersOnMap.get());
System.out.println("----------------------------------");
*/
short numShouldSpawn = (short) ((monsterSpawn.size() - spawnedMonstersOnMap.get()));//Fking lol'd
if (numShouldSpawn > 0) {
List<SpawnPoint> randomSpawn = new ArrayList<>(monsterSpawn);

View File

@@ -26,6 +26,8 @@ import constants.ServerConstants;
import java.awt.Rectangle;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import scripting.reactor.ReactorScriptManager;
import server.TimerManager;
@@ -43,21 +45,30 @@ public class MapleReactor extends AbstractMapleMapObject {
private int delay;
private MapleMap map;
private String name;
private boolean timerActive;
private boolean alive;
private boolean shouldCollect = true;
private Lock reactorLock = new ReentrantLock(true);
public MapleReactor(MapleReactorStats stats, int rid) {
this.stats = stats;
this.rid = rid;
alive = true;
}
public void setTimerActive(boolean active) {
this.timerActive = active;
public void setShouldCollect(boolean collect) {
this.shouldCollect = collect;
}
public boolean isTimerActive() {
return timerActive;
public boolean getShouldCollect() {
return shouldCollect;
}
public void lockReactor() {
reactorLock.lock();
}
public void unlockReactor() {
reactorLock.unlock();
}
public void setState(byte state) {
@@ -67,6 +78,10 @@ public class MapleReactor extends AbstractMapleMapObject {
public byte getState() {
return state;
}
public MapleReactorStats getStats() {
return stats;
}
public int getId() {
return rid;
@@ -129,7 +144,13 @@ public class MapleReactor extends AbstractMapleMapObject {
public void forceHitReactor(final byte newState) {
setState((byte) newState);
setTimerActive(false);
try {
this.lockReactor();
this.setShouldCollect(true);
}
finally {
this.unlockReactor();
}
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, (short) 0));
}
@@ -137,59 +158,61 @@ public class MapleReactor extends AbstractMapleMapObject {
TimerManager.getInstance().schedule(new Runnable() {
@Override
public void run() {
hitReactor(c);
hitReactor(c, false);
}
}, delay);
}
public void hitReactor(MapleClient c) {
hitReactor(0, (short) 0, 0, c);
public void hitReactor(MapleClient c, boolean itemDrop) {
hitReactor(0, (short) 0, 0, c, itemDrop);
}
public synchronized void hitReactor(int charPos, short stance, int skillid, MapleClient c) {
try {
if(!this.isAlive()) {
return;
}
if(ServerConstants.USE_DEBUG == true) c.getPlayer().dropMessage(5, "Hitted REACTOR " + this.getId() + " with POS " + charPos + " , STANCE " + stance + " , SkillID " + skillid);
if (stats.getType(state) < 999 && stats.getType(state) != -1) {//type 2 = only hit from right (kerning swamp plants), 00 is air left 02 is ground left
if (!(stats.getType(state) == 2 && (stance == 0 || stance == 2))) { //get next state
for (byte b = 0; b < stats.getStateSize(state); b++) {//YAY?
List<Integer> activeSkills = stats.getActiveSkills(state, b);
if (activeSkills != null) {
if (!activeSkills.contains(skillid)) continue;
}
state = stats.getNextState(state, b);
if (stats.getNextState(state, b) == -1) {//end of reactor
if (stats.getType(state) < 100) {//reactor broken
if (delay > 0) {
map.destroyReactor(getObjectId());
} else {//trigger as normal
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
}
} else {//item-triggered on final step
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
}
if(ServerConstants.USE_DEBUG == true) c.getPlayer().dropMessage(5, "REACTOR " + this.getId() + " activated");
ReactorScriptManager.getInstance().act(c, this);
} else { //reactor not broken yet
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
if (state == stats.getNextState(state, b)) {//current state = next state, looping reactor
ReactorScriptManager.getInstance().act(c, this);
}
}
break;
}
}
} else {
state++;
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
ReactorScriptManager.getInstance().act(c, this);
}
} catch(Exception e) {
e.printStackTrace();
public synchronized void hitReactor(int charPos, short stance, int skillid, MapleClient c, boolean itemDrop) {
try {
if(!this.isAlive()) {
return;
}
if(ServerConstants.USE_DEBUG == true) c.getPlayer().dropMessage(5, "Hitted REACTOR " + this.getId() + " with POS " + charPos + " , STANCE " + stance + " , SkillID " + skillid + " , STATE " + stats.getType(state) + " STATESIZE " + stats.getStateSize(state));
int reactorType = stats.getType(state);
if (reactorType < 999 && reactorType != -1) {//type 2 = only hit from right (kerning swamp plants), 00 is air left 02 is ground left
if (!(reactorType == 2 && (stance == 0 || stance == 2))) { //get next state
for (byte b = 0; b < stats.getStateSize(state); b++) {//YAY?
List<Integer> activeSkills = stats.getActiveSkills(state, b);
if (activeSkills != null) {
if (!activeSkills.contains(skillid)) continue;
}
state = stats.getNextState(state, b);
if (stats.getNextState(state, b) == -1) {//end of reactor
if (reactorType < 100) {//reactor broken
if (delay > 0) {
map.destroyReactor(getObjectId());
} else {//trigger as normal
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
}
} else {//item-triggered on final step
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
}
ReactorScriptManager.getInstance().act(c, this);
} else { //reactor not broken yet
if (itemDrop) state++; // Duh, if the reactor is triggered by itemdrop, go directly to next state (in this case, instead of staying at 1, it goes to 2)! :)
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
if (state == stats.getNextState(state, b) || itemDrop) {//current state = next state, looping reactor
ReactorScriptManager.getInstance().act(c, this);
}
}
break;
}
}
} else {
state++;
map.broadcastMessage(MaplePacketCreator.triggerReactor(this, stance));
ReactorScriptManager.getInstance().act(c, this);
}
} catch(Exception e) {
e.printStackTrace();
}
}
public Rectangle getArea() {

View File

@@ -67,8 +67,8 @@
</imgdir>
</imgdir>
<imgdir name="1">
<canvas name="0" width="1" height="1">
<vector name="origin" x="0" y="0"/>
<canvas name="0" width="100" height="121">
<vector name="origin" x="49" y="121"/>
</canvas>
</imgdir>
<string name="action" value="davyScript0"/>

View File

@@ -67,8 +67,8 @@
</imgdir>
</imgdir>
<imgdir name="1">
<canvas name="0" width="1" height="1">
<vector name="origin" x="0" y="0"/>
<canvas name="0" width="92" height="124">
<vector name="origin" x="47" y="124"/>
</canvas>
</imgdir>
<string name="action" value="davyScript1"/>

View File

@@ -2,7 +2,74 @@
<imgdir name="2519002.img">
<imgdir name="info">
<string name="info" value="해적선 문"/>
<string name="link" value="2519000"/>
</imgdir>
<string name="action" value="davyScript2"/>
<imgdir name="0">
<canvas name="0" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
</canvas>
<imgdir name="event">
<imgdir name="0">
<int name="type" value="100"/>
<int name="state" value="1"/>
<string name="0" value="4001117"/>
<int name="1" value="1"/>
<vector name="lt" x="-27" y="-21"/>
<vector name="rb" x="31" y="7"/>
</imgdir>
</imgdir>
<imgdir name="hit">
<canvas name="0" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="1" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="2" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="3" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="4" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="5" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="6" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="7" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
<canvas name="8" width="100" height="121">
<vector name="origin" x="49" y="121"/>
<int name="z" value="0"/>
<int name="delay" value="130"/>
</canvas>
</imgdir>
</imgdir>
<imgdir name="1">
<canvas name="0" width="100" height="121">
<vector name="origin" x="49" y="121"/>
</canvas>
</imgdir>
</imgdir>

View File

@@ -2,7 +2,74 @@
<imgdir name="2519003.img">
<imgdir name="info">
<string name="info" value="해적선 문"/>
<string name="link" value="2519001"/>
</imgdir>
<string name="action" value="davyScript3"/>
<imgdir name="0">
<canvas name="0" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
</canvas>
<imgdir name="event">
<imgdir name="0">
<int name="type" value="100"/>
<int name="state" value="1"/>
<string name="0" value="4001117"/>
<int name="1" value="1"/>
<vector name="lt" x="-27" y="-21"/>
<vector name="rb" x="31" y="7"/>
</imgdir>
</imgdir>
<imgdir name="hit">
<canvas name="0" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="1" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="2" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="3" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="4" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="5" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="6" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="7" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
<canvas name="8" width="92" height="124">
<vector name="origin" x="47" y="124"/>
<int name="z" value="0"/>
<int name="delay" value="100"/>
</canvas>
</imgdir>
</imgdir>
<imgdir name="1">
<canvas name="0" width="92" height="124">
<vector name="origin" x="47" y="124"/>
</canvas>
</imgdir>
</imgdir>