Jump to content

Recommended Posts

Posted
/*
* This program is a private software, based on java source code.
* To share, distribute or redistribute this software is forbidden,
* except if someone approve it from RaveN Network INC. team.
* 
* Copyrights (c) 2012 RaveN Network INC. All rights reserved.
*/
package handlers.voicedcommandhandlers;

import org.apache.commons.lang3.ArrayUtils;

import net.l2emuproject.gameserver.Announcements;
import net.l2emuproject.gameserver.config.L2Config;
import net.l2emuproject.gameserver.datatables.SkillTable;
import net.l2emuproject.gameserver.gameobjects.L2Player;
import net.l2emuproject.gameserver.handler.IVoicedCommandHandler;
import net.l2emuproject.gameserver.handler.VoicedCommandHandler;
import net.l2emuproject.tools.random.Rnd;

/**
* @author lord_rex
*/
public final class FunnyCommandsPack implements IVoicedCommandHandler
{
private final int[][] BUFFS = { { // Fighter Buffs
6803, 6804, 6808, 6809, 6811, 6812 }, { // Mage Buffs
6804, 6805, 6806, 6807, 6812 } };

private static final String[] COMMANDS = { "suicide", "online", "jail", "buff", "buffme" };

private static final String[] ONLINE_TEXTS_GENERAL = { "Online Players: Same as your IQ!", "Online Players: Why you want to know it? Go and play instead of watching online counter in every second!", "Online Players: Secret. But you will be able to know it if you donate us." };

@Override
public boolean useVoicedCommand(String command, L2Player activeChar, String target)
{
	if (command.equals(COMMANDS[0]))
	{
		// A command for players that doesn't like their in-game life, not enough Adena, starving, etc...
		// I am sure it helps them!
		Announcements.getInstance().announceToAll(activeChar.getName() + " rest in peace!");

		activeChar.stopAllEffects();
		activeChar.reduceCurrentHp(activeChar.getMaxHp() + activeChar.getMaxCp() + 1, activeChar);
	}
	else if (command.equals(COMMANDS[1]))
	{
		// How many times we see in our chat.log that player 
		// press '.online' voiced command and when he/she doesn't get his/her wanted result
		// and simply closes the game without checking server's features or just looking around...
		// This command is made for them, let's make suck these players!

		String[] onlineTextFemale = { "Online Players: Same as your boobs size!", "Online Players: Same as how many time you spend in the shop!" };
		String[] onlineTextMale = { "Online Players: Same as your cock size!", "Online Players: Same as how many time you spend with masturbation!" };

		onlineTextFemale = ArrayUtils.addAll(onlineTextFemale, ONLINE_TEXTS_GENERAL);
		onlineTextMale = ArrayUtils.addAll(onlineTextFemale, ONLINE_TEXTS_GENERAL);

		if (activeChar.getAppearance().getSex())
			activeChar.sendMessage(onlineTextFemale[Rnd.get(onlineTextFemale.length)]);
		else
			activeChar.sendMessage(onlineTextMale[Rnd.get(onlineTextMale.length)]);
	}
	else if (command.equals(COMMANDS[2]))
	{
		// No comment, command name says everything.
		final int val = 60;

		activeChar.setInJail(true, val);
		activeChar.sendMessage("You are moved to Jail for " + val + " minute(s).");
	}
	else if (command.equals(COMMANDS[3]) || command.equals(COMMANDS[4]))
	{
		if (L2Config.RATE_XP <= 50)
		{
			// How many time we see that a player want NPC Buffer, buff voiced commands, etc in a low/mid rate server, let's make suck these players!
			Announcements.getInstance().announceToAll(activeChar.getName() + " is a lazy ass! This idiot wanted to buff " + (activeChar.getAppearance().getSex() ? "herself" : "himself") + " with buff voiced command on a " + L2Config.RATE_XP + "X server...");
			activeChar.sendMessage("Oh, comeon! You seriously want to buff yourself by a voiced command on a " + L2Config.RATE_XP + "X server?!");
		}
		else
		{
			// Well, I take these buff list from L2JDP ArenaBuffs, just for the example.
			for (int skillId : BUFFS[activeChar.isMageClass() ? 1 : 0])
			{
				activeChar.setTarget(activeChar);
				activeChar.doCast(SkillTable.getInstance().getInfo(skillId, 1));
			}
		}
	}

	return true;
}

@Override
public String[] getVoicedCommandList()
{
	return COMMANDS;
}

public static void main(String[] args)
{
	VoicedCommandHandler.getInstance().register(new FunnyCommandsPack());
}
}

Posted

L2Emu "Unique"? i only knew emuproject, yet, could you give us a link or something?

BTW nice code, peopel will go mad easier ingame now xD

I really don't want to disappoint you, because I know you was user of them. But this project is not for mortals. :( It's a private one only for two friends atm. Just my very good/near friends can have this project. Soz.

Posted

No problem dude, yet i hope you keep sharing stuff like this as I've been seen lately

Okey, ofc. I will continue.. :P Did u check .hentai and gender based GvE too ? :P

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Posts

    • never met a programmer that doesnt know english xD and as he said his knowledge and skills are beyond our imagination xD
    • nice work, welcome back to world of lineage development @melron 😄
    • He's likely baiting you to download his source full of backdoors indeed
    • Yeah inside router i had to enable udnp services 
    • Hello cheaters, As a team of avid developers and enthusiasts of Lineage 2, we are excited to present the L2 Control Hub, a groundbreaking plugin designed by myself and my collaborator, StinkyMadness. This innovative tool equips server administrators with powerful automation capabilities directly within the game's community board. L2 Control Hub simplifies the creation and management of automations, enabling you to customize your server operations without the need to modify the source code.   Key Features of L2 Control Hub: Robust Automation Triggers: Select from a plethora of triggers currently available, with continuous additions in the works to enhance your control options. Dynamic Conditions and Actions: Tailor your server operations with an extensive range of conditions and actions, ensuring flexible and precise control over game events and player interactions. Customizable Variables: Easily integrate server-specific variables from your database to further personalize and streamline your automations. Utilize these variables across various automation scenarios to cater to your specific server requirements. JavaScript Integration: Execute custom JavaScript codes that interact seamlessly with Java classes, bringing advanced functionalities to your server's ecosystem.   Explore L2 Control Hub in Action: We've prepared a series of video tutorials to demonstrate the capabilities of L2 Control Hub: Control Hub - Create a Simple Flow with 1 Condition and 1 Action: Get started with basic automations. Control Hub - Multiple Conditions with Multiple Actions: Explore more complex automations for detailed server management. Control Hub - Using Variables: Discover how to implement and use custom variables for tailored automations. Control Hub - Using JavaScript: Experience the power of custom scripts in enhancing your server functionality.   L2 Control Hub is currently about 70% complete, and we are actively developing and refining features. We invite you to join our ➡️ Discord community ⬅️ to engage with the development process, provide feedback, and be the first to test new features. Additionally, any updates or changes to the plugin are seamlessly delivered to all customers directly from our web server, ensuring your system is always up-to-date without the need for manual downloads.   Your game, your rules, automated. Join us in redefining server management in Lineage 2 and elevate your gaming community with unmatched automation capabilities. For more details, contact us directly to get started with L2 Control Hub.   Currently, the plugin is developed using aCis sources. We will continue with these sources until we finalize all the necessary details before proceeding to integrate with the more prominent sources available.       The L2 Control Hub is designed to extend beyond mere functional additions to your server. We are in the process of implementing a suite of advanced mechanisms, such as a vote manager capable of interfacing with any Lineage 2 voting site without requiring configuration, live statistics to provide admins with real-time insights, and an event engine that can generate any desired event within seconds. All these features will be seamlessly integrated into the module, enhancing your server management experience significantly.     Please note that L2 Control Hub will be a premium tool, reflecting the extensive features and benefits it offers. While we are finalizing the pricing structure, rest assured that we aim to deliver great value for your investment. We will announce the cost details soon on our platforms to ensure everyone is well-informed and can plan accordingly. Join us to take your server management to the next level with L2 Control Hub.     
  • Topics

×
×
  • Create New...