I have a problem that I would like to ask for help: how to add gameClient to a restored offline shop character when the server is restarted?
I added offline traders shop/craft on my ACiS l2j but I have a situation: If I don't add a client for the char I won't be able to login again, since it can not be kicked when trying to login (it keeps sending the message account is in use). If I try to add, it gives an nullpointerexception and the char is not loaded with it's private store/craft to the game.
Here is the exception:
May 09, 2020 12:48:50 PM net.sf.l2j.gameserver.datatables.OfflineTradersTable <init>
WARNING: error loading trader 268487086.
java.lang.NullPointerException
at net.sf.l2j.gameserver.network.gameserverpackets.PlayerAuthRequest.<init>(PlayerAuthRequest.java:11)
at net.sf.l2j.gameserver.LoginServerThread.addClient(LoginServerThread.java:305)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable.<init>(OfflineTradersTable.java:470)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable$SingletonHolder.<clinit>(OfflineTradersTable.java:552)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable.getInstance(OfflineTradersTable.java:547)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:270)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:118)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
bro you need other tools for do that working... and other files...
listen to me... you need UTPT to open the class or take the textures like this...
https://prnt.sc/cHneGXEgxlwJ
from here you can take what ever you want and after go make in Notepad ++ paste -> save as .uc
latter on you must have source for interface to compile your new interface.u with new .uc
you put inside this .uc what you made and thats create all the script lets say about the fuctionality of buttons...
NEXT...
Go download Xdat Editior
go open file -> interface.xdat
and copy one by one handmade all the Wnd and childrens...
after you get in l2.exe and you can use ///reloadui or ///show windowname to help you fix your windows without close and open the l2.exe all the time...
Question
Gryphon
Hello.
I have a problem that I would like to ask for help: how to add gameClient to a restored offline shop character when the server is restarted?
I added offline traders shop/craft on my ACiS l2j but I have a situation: If I don't add a client for the char I won't be able to login again, since it can not be kicked when trying to login (it keeps sending the message account is in use). If I try to add, it gives an nullpointerexception and the char is not loaded with it's private store/craft to the game.
Here is the exception:
May 09, 2020 12:48:50 PM net.sf.l2j.gameserver.datatables.OfflineTradersTable <init>
WARNING: error loading trader 268487086.
java.lang.NullPointerException
at net.sf.l2j.gameserver.network.gameserverpackets.PlayerAuthRequest.<init>(PlayerAuthRequest.java:11)
at net.sf.l2j.gameserver.LoginServerThread.addClient(LoginServerThread.java:305)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable.<init>(OfflineTradersTable.java:470)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable$SingletonHolder.<clinit>(OfflineTradersTable.java:552)
at net.sf.l2j.gameserver.datatables.OfflineTradersTable.getInstance(OfflineTradersTable.java:547)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:270)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:118)
This exception occurs when this line is called:
LoginServerThread.getInstance().addClient(player.getAccountName(), client);
The part of the code just before the exception is throwed:
....
player.setRunning();
player.sitDown(true);
player.setOnlineStatus(true, false);
World.getInstance().addPlayer(player);
final GameClient client = new GameClient(null);
client.setDetached(true);
player.setClient(client);
client.setPlayer(player);
client.setAccountName(player.getAccountNamePlayer());
player.setOnlineStatus(true, true);
client.setState(GameClientState.IN_GAME);
player.setOfflineStartTime(time);
player.spawnMe();
here -> LoginServerThread.getInstance().addClient(player.getAccountName(), client);
Thanks in advance
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.