Hello People.
Just starting today, I followed www.l2jserver.com/windows.html, got some deviations to make it work but still one issue I could not solve.
When starting the server ^\opt\l2j\server\game\startGameServer.bat an exception is thrown because the DB called l2jgs does not exists.
The sentence above is right, I connect into DB and there is no l2jgs just l2jls. None of the dbinstall commands on tutorial create this specific database.
Does someone knows how can I deviate from it? Is there any SQL for me to create it manually?
Thanks in advance.
I found a way to do my own listener, and tried to listen characters' lvlup
/**
* Listener for characters' level up
* @param event
*/
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
L2PcInstance player = null;
if(event.getActiveChar().isPlayer())
{
player = event.getActiveChar();
_log.log(Level.INFO, getClass().getSimpleName() + ": Player: " + player + " got a new level: "+ player.getLevel() +"!");
}
}
But something wrong.. it writes twice to the log