as most of you may know no one has gotten horntail fully working expect for extalia and vana not even MoopleDev/Lithium
8810026 is to show the spawn animation and disappear.
after which you are suppose to link up all the sponge together 8810002 to 8810009 and then each of the sponge is checked for any dead parts and for healing purpose and once all the part are dead this is where 8810018 comes in which is the death animation follow by the world message and a buff.
Here is a Test Code: which spawns ht correctly but it disappear due to linked system not coded thread will be updated once it is done..
8810026.img
Code:removeAfter -> spawns and remove the mob a short time after revive -> seems like a linking system ?
Reactor :Code:public boolean isSponge(final MapleMonster monster) { if (monster.removeAfter() > 0) { TimerManager.getInstance().schedule(new Runnable() { @Override public void run() { killAllMonsters(false); } }, monster.getAnimationTime("die1")); } return false; } public void spawnMonster(final MapleMonster monster, final int parent) { monster.setMap(this); synchronized (this.mapobjects) { spawnAndAddRangedMapObject(monster, new DelayedPacketCreation() { public void sendPackets(MapleClient c) { if (parent >= 0) { c.getSession().write(MaplePacketCreator.spawnRevives(monster, parent)); } else if (isSponge(monster)) { c.getSession().write(MaplePacketCreator.spawnMonster(monster, false)); } else { c.getSession().write(MaplePacketCreator.spawnMonster(monster, true)); } } }); if (monster.hasBossHPBar()) { broadcastMessage(monster.makeBossHPBarPacket(), monster.getPosition()); } updateMonsterController(monster); } spawnedMonstersOnMap.incrementAndGet(); }
- - - Updated - - -Code:function act() { rm.changeMusic("Bgm14/HonTale"); rm.spawnMonster(8810026, 71, 260); rm.mapMessage(6, "From the depths of his cave, Horntail emerges!"); }
Added Link Part :
Code:public boolean linkParts(final MapleMonster monster) { List<Integer> toSpawn = monster.getRevives(); if(toSpawn != null) { int[] part = {8810002 , 8810003, 8810004 , 8810005 , 8810006 , 8810007 , 8810008 , 8810009}; for(int i : part) { MapleMonster linkedParts = MapleLifeFactory.getMonster(i); spawnMonster(linkedParts , 8810026); } } return true; }



Reply With Quote


