Jump to content
  • 0

Need Help with Java...


Question

Recommended Posts

  • 0
Posted


/* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.sf.l2j.gameserver.model.custom;

import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.base.Experience;

/**
*
* @author  xAddytzu
*/
public class AioPackage
{
//Singleton
private static AioPackage _instance;
public static final AioPackage getInstance()
    {
        if (_instance == null)
        	_instance = new AioPackage();

        return _instance;
    }
public void AioSkills(L2PcInstance player)
{
	player.addSkill(SkillTable.getInstance().getInfo(4342, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(4344, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4345, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4346, 4),true);
	player.addSkill(SkillTable.getInstance().getInfo(4347, 6),true);
	player.addSkill(SkillTable.getInstance().getInfo(4348, 6),true);
	player.addSkill(SkillTable.getInstance().getInfo(4349, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(4351, 6),true);
	player.addSkill(SkillTable.getInstance().getInfo(4352, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(4353, 6),true);
	player.addSkill(SkillTable.getInstance().getInfo(4354, 4),true);
	player.addSkill(SkillTable.getInstance().getInfo(4355, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4356, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4357, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(4358, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4359, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(4360, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(274, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(275, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(271, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(272, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(273, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(276, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(277, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(307, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(309, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(365, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(310, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(264, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(265, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(266, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(267, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(268, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(269, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(270, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(304, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(305, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(306, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(308, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(364, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(349, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(363, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1007, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1009, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1006, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1002, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1251, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(1252, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1253, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1310, 4),true);
	player.addSkill(SkillTable.getInstance().getInfo(1309, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1308, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1362, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1363, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1413, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1390, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1391, 3),true);
	//OTHER BUFFS
	player.addSkill(SkillTable.getInstance().getInfo(1388, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1389, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1311, 6),true);
	player.addSkill(SkillTable.getInstance().getInfo(1033, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1182, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1189, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1191, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1259, 4),true);
	player.addSkill(SkillTable.getInstance().getInfo(1392, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1393, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1303, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(4699, 13),true);
	player.addSkill(SkillTable.getInstance().getInfo(4700, 13),true);
	player.addSkill(SkillTable.getInstance().getInfo(4702, 13),true);
	player.addSkill(SkillTable.getInstance().getInfo(4703, 13),true);
	player.addSkill(SkillTable.getInstance().getInfo(1353, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1352, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1284, 3),true);
	//PROPHECY
	player.addSkill(SkillTable.getInstance().getInfo(1355, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1356, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1357, 1),true);
	//OL
	player.addSkill(SkillTable.getInstance().getInfo(1004, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1005, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1008, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1249, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1250, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1256, 13),true);
	player.addSkill(SkillTable.getInstance().getInfo(1260, 3),true);
	player.addSkill(SkillTable.getInstance().getInfo(1261, 2),true);
	player.addSkill(SkillTable.getInstance().getInfo(1305, 5),true);
	player.addSkill(SkillTable.getInstance().getInfo(1364, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1365, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1414, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1415, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1416, 1),true);
	//HAEL
	player.addSkill(SkillTable.getInstance().getInfo(1335, 1),true);
	player.addSkill(SkillTable.getInstance().getInfo(1219, 33),true);
	//NOBLESSE
	player.addSkill(SkillTable.getInstance().getInfo(1323, 1),true);
	//MP
	player.addSkill(SkillTable.getInstance().getInfo(4409, 20),true);
}
public void AioEquipable(L2PcInstance player)
{
	if (player == null)
		return;

	player.addItem("Weapon", 8938, 1, player, true);
	player.addItem("Dark Crystal", 2407, 1, player, true);
	player.addItem("Dark Crystal", 512, 1, player, true);
	player.addItem("Dark Crystal", 5767, 1, player, true);
	player.addItem("Dark Crystal", 5779, 1, player, true);
	player.addExpAndSp(player.getExp() + Experience.LEVEL[80], 0);
}
}

 

AdminAdmin.java

	else if(command.startsWith("admin_set"))
	{
		StringTokenizer st = new StringTokenizer(command);
		String[] cmd=st.nextToken().split("_");
		try
		{
			String[] parameter = st.nextToken().split("=");
			String pName = parameter[0].trim();
			String pValue = parameter[1].trim();
			if (Config.setParameterValue(pName, pValue))
				activeChar.sendMessage("parameter "+pName+" succesfully set to "+pValue);
			else
				activeChar.sendMessage("Invalid parameter!");
		}
		catch(Exception e)
		{
			if (cmd.length ==2)
				activeChar.sendMessage("Usage: //set parameter=vaue");
		}
		finally
		{
			if (cmd.length ==3)
			{
				if (cmd[2].equalsIgnoreCase("menu"))
					AdminHelpPage.showHelpPage(activeChar, "settings.htm");
				else if (cmd[2].equalsIgnoreCase("mod"))
					AdminHelpPage.showHelpPage(activeChar, "mods_menu.htm");
			}
		}
	}
+		else if(command.startsWith("admin_aio"))
+		{
+	        L2Object target = activeChar.getTarget();
+	        if (target == null) 
+	        	target = activeChar;
+	        L2PcInstance player = null;
+	        if (target instanceof L2PcInstance)
+	            player = (L2PcInstance) target;
+	        else
+	        {
+	            activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
+	            return false;
+	        }
+			if (player != null)
+			{
+				AioPackage.getInstance().AioEquipable(player);
+				AioPackage.getInstance().AioSkills(player);
+			}
+		}
+

 

  • 0
Posted

its no custom folder so what i need to do? and how to name 1 script?. And maybe someone know how to put ANTI-BUFF shield ? i try not working :/ maybe someone have another skript?

  • 0
Posted

error:

 

    [javac] D:\Users\xxx\workspace\xxx\CORE\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:272: cannot find symbol
   [javac] symbol  : variable AioPackage
   [javac] location: class net.sf.l2j.gameserver.handler.admincommandhandlers.AdminAdmin
   [javac] 				AioPackage.getInstance().AioEquipable(player);
   [javac] 				^
   [javac] D:\Users\xxx\workspace\xxx\CORE\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:273: cannot find symbol
   [javac] symbol  : variable AioPackage
   [javac] location: class net.sf.l2j.gameserver.handler.admincommandhandlers.AdminAdmin
   [javac] 				AioPackage.getInstance().AioSkills(player);
   [javac] 				^

  • 0
Posted

Edit the topic title to any other which makes more sense or thread will be locked

 

Edited, so someone know?

 

   [javac] D:\Users\xxx\workspace\xxx\CORE\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:272: cannot find symbol
    [javac] symbol  : variable AioPackage
    [javac] location: class net.sf.l2j.gameserver.handler.admincommandhandlers.AdminAdmin
    [javac] 				AioPackage.getInstance().AioEquipable(player);
    [javac] 				^
    [javac] D:\Users\xxx\workspace\xxx\CORE\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:273: cannot find symbol
    [javac] symbol  : variable AioPackage
    [javac] location: class net.sf.l2j.gameserver.handler.admincommandhandlers.AdminAdmin
    [javac] 				AioPackage.getInstance().AioSkills(player);
    [javac] 				^

 

where is that problem i can't fix it ;( someone help me please.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 🚀 IronLock Shield - Closed Beta Update Hello everyone, Since our first announcement, IronLock Shield has received several major protection upgrades. IronLock Shield is a security platform developed specifically for Lineage II Interlude servers, focused on launcher integrity, runtime protection, session security, and anti-bot hardening. Current protection features: ✓ Secure Launcher Architecture ✓ HWID-Based Licensing ✓ Signed Launcher Session System ✓ Gateway Session Verification ✓ Automatic Session Revoke on Critical Detection ✓ Replay Protection with Nonce Validation ✓ Runtime Integrity Verification ✓ Secure Update System Client-side protections: ✓ Anti-Debug Protection ✓ Anti-Dump Protection ✓ DLL Injection Detection ✓ Manual Map Detection ✓ Remote Thread Detection ✓ Runtime Patch Detection ✓ Suspicious Handle Detection ✓ Memory Read / Write Guard ✓ Strict DLL Hash / Allowlist Control ✓ Launcher Self-Protection ✓ Watchdog Protection Bot and automation hardening: ✓ Adrenaline / Memory Reader Hardening ✓ Runtime Decoy Memory Regions ✓ Fake Pointer-Chain / Offset Noise ✓ Per-Build Mutation System ✓ Pointer Scan Disruption ✓ Virtual Keyboard Input Detection ✓ Hookless Virtual Mouse Click Detection ✓ Raw Input Based Mouse Verification Server and gateway security: ✓ Signed Launcher-to-Server Requests ✓ Build ID Binding ✓ HWID Binding ✓ IP / Session Binding ✓ Expired Session Blocking ✓ Revoked Session Blocking ✓ Gateway Runtime Session Checks ✓ Critical Detection Reporting Panel Recent improvements: ✓ Improved protection against memory-reading bots ✓ Added decoy pointer-chain memory traps ✓ Added per-build mutation data ✓ Added stricter process handle policy ✓ Added hookless virtual mouse click detection ✓ Improved watchdog stability to reduce false positives ✓ Improved session revoke logic for critical detections ✓ Updated website and protection feature list IronLock Shield is currently in closed beta. Selected Lineage II Interlude server owners can receive 1 month of free access in exchange for testing and feedback. Website: https://ilshield.com If you are interested, feel free to send me a private message or contact me through Discord. Thank you.
    • Contacts for communication. Telegram https://t.me/a_dvertising_man Telegram short link @a_dvertising_man   Delta Chat https://i.delta.chat/#11D46642C67CF6BDD4BD6430EB8AE99106CC54D7&v=3&i=u1npSLMZpUfcnWi5FGHNBn-1&s=GjBgI7oXKcuCXGl1acvt0tcp&a=p2norrc0e%40nine.testrun.org&n=advertisingman Hello. I participate in "forum deal" in role middleman. Paid services in graphic design,garant service(https link to profile) is provided only from buyer. Please write me in messenger for contact who are you by nationality and in which country you live.   I will not conduct deals with buyers and sellers from Ukraine. I do not cooperate with country Ukraine. If you Ukrainian by nationality or live in Ukraine,ignore this topic. If you other nationality: paid service from garant service buyer pays using own money.   Garant service(https link to profile) provided only from buyer. Buyer provides address guarantor service(https link to profile) or multiple addresses guarantors services. If seller don't like this garant service address(seller may doubt whether he will receive money from this garant service),then buyer offers another address garant service or multiple addresses guarantors services. If neither address seller doesn't like,then buyer is leaving from me.   Buyer deposits full amount to payment details guarantor service, plus my commission(my percent above amount for service in graphic design). In "forum questionnaire" buyer writes: payment details from seller,payment details seller i will send to buyer in advance via messenger.   Paid creation avatar and banner(price depends from complexity work). Paid creation visuals for music releases,for promo art(price depends from complexity work). Original posters using stock images(price depends from complexity work). Design for social media:covers,previews(price depends from complexity work). Other paid services in graphic design(price depends from complexity work).  
  • 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..