Ace65 / aionj-hungary

Automatically exported from code.google.com/p/aionj-hungary
0 stars 0 forks source link

Command //Goto Need Fix #459

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some Test Map Need To Be Removed From Command To prevent Error on 
teleportService..

INFO [08 Apr 2011 19:09:24,093] 
com.aionemu.commons.network.mmocore.SelectorThread:164 FAILED_RUNNING: 
com.aionemu.gameserver.network.aion.GameClient@e00c11d
com.aionemu.gameserver.world.exceptions.WorldMapNotExistException: Map: 
900020000 not exist!
    at com.aionemu.gameserver.world.World.getWorldMap(World.java:195)
    at com.aionemu.gameserver.world.World.setPosition(World.java:292)
    at com.aionemu.gameserver.services.TeleportService.changePosition(TeleportService.java:178)
    at com.aionemu.gameserver.services.TeleportService.teleportTo(TeleportService.java:141)
    at com.aionemu.gameserver.services.TeleportService.teleportTo(TeleportService.java:100)
    at com.aionemu.gameserver.services.TeleportService.teleportTo(TeleportService.java:81)
    at system.handlers.admincommands.GoTo.executeCommand(GoTo.java:295)
    at com.aionemu.gameserver.utils.chathandlers.AdminCommandChatHandler.handleChatMessage(AdminCommandChatHandler.java:109)
    at com.aionemu.gameserver.network.aion.clientpackets.CM_CHAT_MESSAGE_PUBLIC.runImpl(CM_CHAT_MESSAGE_PUBLIC.java:89)
    at com.aionemu.commons.network.mmocore.ReceivablePacket.run(ReceivablePacket.java:75)
    at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:61)
    at com.aionemu.commons.utils.concurrent.ExecuteWrapper.run(ExecuteWrapper.java:42)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by shinji66...@yahoo.com on 13 Apr 2011 at 10:46

GoogleCodeExporter commented 8 years ago
} else if (params[0].toLowerCase().equals("test1")) {
            PacketSendUtility.sendMessage(admin, "This map is disabled.");
        } else if (params[0].toLowerCase().equals("test2")) {
            PacketSendUtility.sendMessage(admin, "This map is disabled.");
        } else if (params[0].toLowerCase().equals("test3")) {
            PacketSendUtility.sendMessage(admin, "This map is disabled.");
        }

Original comment by shinji66...@yahoo.com on 13 Apr 2011 at 10:47

GoogleCodeExporter commented 8 years ago
if you want to teleport to an instanced map, you have to create it first.
for testing I have used those regions like this:
else if (params[0].toLowerCase().equals("dredgion"))
{
    WorldMapInstance newInstance = WorldMapInstance.getNextAvailableInstance(300110000);
    newInstance.registerPlayerWithInstance(admin);
    TeleportService.teleportTo(admin, 300110000, newInstance.getInstanceId(), 485, 319, 403, 0);
}
not sure if the instance is destroyed correctly upon leave, need to test it,
so this is a temp solution

Original comment by threa...@gmail.com on 13 Apr 2011 at 11:48

GoogleCodeExporter commented 8 years ago
Better implement //instance command?
//instance create <worldId> <instanceId>
//instance destroy <worldId> <instanceId>
//instance moveto <worldId> <instanceId>

Original comment by mr.pok...@gmail.com on 14 Apr 2011 at 1:12

GoogleCodeExporter commented 8 years ago
Issue 247 has been merged into this issue.

Original comment by mr.pok...@gmail.com on 14 Apr 2011 at 1:15

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r585.

Original comment by mortium...@gmail.com on 26 Apr 2011 at 1:26