Jump to content

bembis

Members
  • Posts

    8
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Posts posted by bembis

  1. I want to make when player die, and when he press "to vilage" he teleport to mine desired spot. I use l2j.server but in config I dont found "spawn after death" then it must be in java : 

     

    But when i change in java MapRegionTable this : it nothink happens, help :)

     

    // Checking if in an instance

    if (player.getInstanceId() > 0)

    {

    Instance inst = InstanceManager.getInstance().getInstance(player.getInstanceId());

    if (inst != null)

    {

    coord = inst.getSpawnLoc();

    if (coord[0] != 0 && coord[1] != 0 && coord[2] != 0)

    return new Location(82752 + Rnd.get( -100,100), 53583 + Rnd.get( -100,100), -1499);

     

  2. when player want to login to server they disconected into login meniu, but only in some arenas like town and level zona, i dont spawn npc or anything else

    # Client: [Character: MANEpisa[268480463] - Account: kalytea1 - IP: 89.116.173.5] - Failed running: [C] 03 EnterWorld - L2J Server Version: 4271 - DP Revision: 7474 ; null

    # java.lang.NullPointerException

    # at com.l2jserver.gameserver.model.entity.Fort.checkIfInZone(Fort.java:328)

    # at com.l2jserver.gameserver.instancemanager.FortManager.getFortIndex(FortManager.java:149)

    # at com.l2jserver.gameserver.instancemanager.FortManager.getFortIndex(FortManager.java:140)

    # at com.l2jserver.gameserver.model.actor.instance.L2DoorInstance.getFort(L2DoorInstance.java:364)

    # at com.l2jserver.gameserver.model.actor.instance.L2DoorInstance.isEnemy(L2DoorInstance.java:384)

    # at com.l2jserver.gameserver.network.serverpackets.StaticObject.<init>(StaticObject.java:62)

    # at com.l2jserver.gameserver.model.actor.instance.L2DoorInstance.sendInfo(L2DoorInstance.java:655)

    # at com.l2jserver.gameserver.model.actor.knownlist.PcKnownList.addKnownObject(PcKnownList.java:82)

    # at com.l2jserver.gameserver.model.L2World.addVisibleObject(L2World.java:379)

    # at com.l2jserver.gameserver.model.L2Object.spawnMe(L2Object.java:508)

    # at com.l2jserver.gameserver.network.clientpackets.EnterWorld.runImpl(EnterWorld.java:342)

    # at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:92)

    # at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    # at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    # at java.lang.Thread.run(Thread.java:619)

     

    this is gameserver/log/stdout when player wnat to login but failed

     

     

      1. NPCTable: Error reading NPC AI Data: Table 'bembis.npcAIData' doesn't exist

      2. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'bembis.npcAIData' doesn't exist

      3. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      4. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      5. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      6. at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      7. at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)

      8. at com.mysql.jdbc.Util.getInstance(Util.java:381)

      9. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1051)

      10. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)

      11. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)

      12. at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)

      13. at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)

      14. at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693)

      15. at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102)

      16. at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261)

      17. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)

      18. at com.l2jserver.gameserver.datatables.NpcTable.restoreNpcData(NpcTable.java:369)

      19. at com.l2jserver.gameserver.datatables.NpcTable.<init>(NpcTable.java:65)

      20. at com.l2jserver.gameserver.datatables.NpcTable.<init>(NpcTable.java:50)

      21. at com.l2jserver.gameserver.datatables.NpcTable$SingletonHolder.<clinit>(NpcTable.java:806)

      22. at com.l2jserver.gameserver.datatables.NpcTable.getInstance(NpcTable.java:58)

      23. at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:254)

      24. at com.l2jserver.gameserver.GameServer.main(GameServer.java:489)

     

    and this is eror. mabye someone want to destroy my server i dont , or maybe game guard(protectio)

×
×
  • Create New...