Jump to content

Recommended Posts

Posted

ok guys 1 simple Voicedcommand Noblesse

 

here for l2jfree

 

/*
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
*/
package com.l2emu.gameserver.handler.voicedcommandhandlers;

import com.l2emu.gameserver.handler.IVoicedCommandHandler;
import com.l2emu.gameserver.model.actor.instance.L2PcInstance;
import com.l2emu.gameserver.model.base.Experience;

/**
* @author LeVotuss
*/
public class Noblesse implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = {"noblesse"};

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	if (command.equalsIgnoreCase("noblesse"))
	{
	   if (activeChar.isNoble())
           		{
           	activeChar.sendMessage("You are allready Noblesse.");
           	return true;
           		}
           else if (activeChar.getLevel() < 76)
           		{
           	activeChar.sendMessage(" can't make you noblesse you have to be 75lvl .");
           	return true;
           		}
           else if (activeChar.getInventoryLimit() * 0.8 <= activeChar.getInventory().getSize())
		{
			activeChar.sendPacket(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT);
			return true;
		}
           else if (activeChar.getSubClasses().isEmpty())
           {
           	activeChar.sendMessage("Come back with SubClass.");
           	return true;
           }
           else if(activeChar.getInventory().getItemByItemId(57) != null && activeChar.getInventory().getItemByItemId(57).getCount() >= 500000000)
           {
           	activeChar.getInventory().destroyItemByItemId("Noblesse", 57, 500000000, activeChar, activeChar.getTarget());
               activeChar.setNoble(true);
               activeChar.addItem(command, 7694, 1, Target, true);
               activeChar.broadcastUserInfo();

            }
            else
            {
               	activeChar.sendMessage("i need 500 milions to make you noblesse.");
                return true;
            }
	}
	return false;
	}
public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

 

 

here l2jArchid

 

/*
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
*/
package com.l2jarchid.gameserver.handler.voicedcommandhandlers;

import com.l2jarchid.gameserver.handler.IVoicedCommandHandler;
import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance;
import com.l2jarchid.gameserver.network.SystemMessageId;

/**
* @author LeVotuss
*/
public class Nobles implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = {"noblesse"};

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	if (command.equalsIgnoreCase("noblesse"))
	{
	   if (activeChar.isNoble())
            		{
            	activeChar.sendMessage("You are allready Noblesse.");
            	return true;
            		}
            else if (activeChar.getLevel() < 76)
            		{
            	activeChar.sendMessage(" can't make you noblesse you have to be 75lvl .");
            	return true;
            		}
            else if (activeChar.GetInventoryLimit() * 0.8 <= activeChar.getInventory().getSize())
		{
			activeChar.sendPacket(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT);
			return true;
		}
            else if (activeChar.getSubClasses().isEmpty())
            {
            	activeChar.sendMessage("Come back with SubClass.");
            	return true;
            }
            else if(activeChar.getInventory().getItemByItemId(57) != null && activeChar.getInventory().getItemByItemId(57).getCount() >= 500000000)
            {
            	activeChar.getInventory().destroyItemByItemId("Noblesse", 57, 500000000, activeChar, activeChar.getTarget());
                activeChar.setNoble(true);
                activeChar.addItem(target, 7694, 1, activeChar, true);
                activeChar.broadcastUserInfo();

            }
            else
            {
               	activeChar.sendMessage("i need 500 milions to make you noblesse.");
                return true;
            }
	}
	return false;
	}
public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

Posted

the one that you said its for l2jfree, sctually got imports for l2emu, so i think you should make the title for l2emu

 

There isnt for l2jserver... maybe if you change the imports, put it in DB and register it in the masterhandler, its possible to work w/o any other changes...

Posted

ye , its cool i must say ,

 

i dont understand this part.

 

            else if (activeChar.getLevel() < 76)
            		{
            	activeChar.sendMessage(" can't make you noblesse you have to be 75lvl .");
            	return true;
            		}
            else if (activeChar.getInventoryLimit() * 0.8 <= activeChar.getInventory().getSize())
		{
			activeChar.sendPacket(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT);
			return true;
		}

 

why  76)

when on ur message says 75.

 

and

 

why to have the weight limit shit?

Posted

Hmm with this command you can take the quest for nobless when you have caradines letter and you are in sub 75 lvl???

 

No, you press .noblesse and you become a noblesse immidiately..

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

    • Fresh off my private server for inspiration.
    • Custom High Five server L2insolence will open 2026-06-17 21:00 GMT+2 ! ! ! Web: http://www.l2insolence.eu/ Discord: https://discord.gg/duMjnj3y9A We have custom: 10 diferent looking custom armor sets. 8 weapon sets, 2 weapons sets are upgradable. 6 jewel sets. ----------------------------------- All custom tatto, masks, cloaks, agathions, belts, bracelest, talismans and more. Everi single item have own custom stats like: +p.atk% , +m.atk% , +p/m.def% and mutch more. All items in game have own stats. With custom looks. Glowing etc. ----------------------------------- Rates XP, SP: 25x Spoil and Drop: 10x Server Hard Farm ----------------------------------- Enchantment Safe enchant: +20099 Max enchant: +20099 All scrolls: 100% ----------------------------------- You can use scrolls or item enchant NPC to make +++ abd life beter. NPC Buffer There's an NPC buffer in all of our main towns. We have custom self buffs learned with npc with custom stats. Global Gatekeeper. GM Shop with normal items and custom ones, Event NPC, item upgrader NPC. Raid Bosses, every zone have its own boss and drops for rare mats, respawn every 10 seconds.. Olympiad The olympiad is ongoing every two weeks.
    • I agree that kernel-level protection offers much deeper visibility and control, especially when it comes to advanced bots and bypass techniques. That said, I'm not trying to claim that a usermode solution is impossible to bypass. My goal is simply to increase the cost and complexity of bypassing the protection while keeping deployment simple, stable, and compatible for server owners. A lot of Interlude server operators don't want to install kernel drivers or deal with the risks and maintenance that come with them. That's why I'm currently focusing on a layered approach: secure launcher architecture, HWID licensing, session validation, anti-debugging, injection detection, integrity checks, replay protection, and heartbeat monitoring. I'm not ruling out kernel support in the future. Right now, my priority is gathering real-world feedback, improving the product, and learning how people attempt to bypass different protection layers. I appreciate the feedback and the discussion.
    • not true, you can change any bot program name so the ones that are injecting aint a problem any more, you can aswell bypass everything in a dll so his way of thinking isnt bad at all
  • 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..