Jump to content

Recommended Posts

Posted

Just a small flashy one that came in mind a minute ago. Instead of writting in your server what commands are available, you can get that automatic by the following patch. By using the .commandhelp , you get all the available voiced commands.

 

Beta state, report bugs.

 

Core:

 

Index: java/com/l2jserver/extensions/VoicedCommands.java
===================================================================
--- java/com/l2jserver/extensions/VoicedCommands.java	(revision 0)
+++ java/com/l2jserver/extensions/VoicedCommands.java	(revision 0)
@@ -0,0 +1,76 @@
+/*
+ * 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.l2jserver.extensions;
+
+import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+
+import javolution.util.FastList;
+
+/**
+ * @author Issle
+ *
+ */
+public class VoicedCommands implements IVoicedCommandHandler
+{
+	public  FastList<String> commands = new FastList<String>();
+	
+	
+	public void reload()
+	{
+		commands = new FastList<String>();
+	}
+	
+	private volatile static VoicedCommands singleton;
+	
+	private VoicedCommands()
+	{
+		commands = new FastList<String>();
+	}
+	
+	public static VoicedCommands getInstance()
+	{
+		if (singleton == null)
+		{
+			synchronized (VoicedCommands.class)
+			{
+				if (singleton == null)
+					singleton = new VoicedCommands();
+			}
+		}
+		return singleton;
+	}
+
+	@Override
+	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
+	{
+		String output = "Available commands:";
+		for(String s: commands)
+		{
+			output += (" ."+s);
+		}
+		
+		activeChar.sendMessage(output);
+		return false;
+	}
+
+	@Override
+	public String[] getVoicedCommandList()
+	{
+		String[] command = new String[1];
+		command[0] = "commandhelp";
+		return command;
+	}
+}
Index: java/com/l2jserver/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- java/com/l2jserver/gameserver/handler/VoicedCommandHandler.java	(revision 4469)
+++ java/com/l2jserver/gameserver/handler/VoicedCommandHandler.java	(working copy)
@@ -19,6 +19,7 @@
import java.util.logging.Logger;

import com.l2jserver.Config;
+import com.l2jserver.extensions.VoicedCommands;

/**
 * This class ...
@@ -39,6 +40,7 @@
	private VoicedCommandHandler()
	{
		_datatable = new TIntObjectHashMap<IVoicedCommandHandler>();
+		VoicedCommands.getInstance().reload();
	}

	public void registerVoicedCommandHandler(IVoicedCommandHandler handler)
@@ -49,6 +51,7 @@
			if (Config.DEBUG)
				_log.fine("Adding handler for command " + ids[i]);
			_datatable.put(ids[i].hashCode(), handler);
+			VoicedCommands.getInstance().commands.add(ids[i]);
		}
	}


 

Datapack:

 


Index: data/scripts/handlers/MasterHandler.java
===================================================================
--- data/scripts/handlers/MasterHandler.java	(revision 7732)
+++ data/scripts/handlers/MasterHandler.java	(working copy)
@@ -244,6 +244,7 @@
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Debug;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.TvTVoicedInfo;
import handlers.voicedcommandhandlers.Wedding;
import handlers.voicedcommandhandlers.stats;
@@ -251,6 +252,7 @@
import java.util.logging.Logger;

import com.l2jserver.Config;
+import com.l2jserver.extensions.VoicedCommands;
import com.l2jserver.gameserver.handler.ActionHandler;
import com.l2jserver.gameserver.handler.AdminCommandHandler;
import com.l2jserver.gameserver.handler.BypassHandler;
@@ -550,6 +552,8 @@
			VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Lang());
		if (Config.L2JMOD_DEBUG_VOICE_COMMAND)
			VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Debug());
+		
+		VoicedCommandHandler.getInstance().registerVoicedCommandHandler(VoicedCommands.getInstance());
		_log.config("Loaded " + VoicedCommandHandler.getInstance().size() + " VoicedHandlers");
	}

Posted

i did , but you said good job, not me ;) I just placed there a share ....

ahh i didnt see the author , anyway i will test it.
Posted

i did , but you said good job, not me ;) I just placed there a share ....

 

You are Issle right? :p

 

You got ur pvp-unlock system shared too? :p

I really loved that feature in Relapse,, and im thinking of opening just a little server, just for friends xD

Posted

You are Issle right? :p

 

You got ur pvp-unlock system shared too? :p

I really loved that feature in Relapse,, and im thinking of opening just a little server, just for friends xD

 

Ill share that too, when i rewrite it cause its not l2j-compatible. Yes , im Issle.

Posted

http://img195.imageshack.us/i/shot00008rc.png/

 

There in the systemmessage is the command list after using .commandhelp

 

PS: That could part of a bigger project, making a complete system that html-shows the info of the server. Rates/most populated zones/commands etc etc.

Posted

I like it but it shows not enabled voice commands as well. :/

 

And what about formatting it a bit more (meaning not every command next to the other one, more like a table) and an additional quick info to the appropriate voice command?

 

Or maybe a html file is better then a sys-message full of voice commands (if you have many of them)..?

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

    • [center] [img]https://l2asagonium.eu/gallery/raidbosses/CustomRaidBoss1.png[/img] [size=6][color=#d4af37][b]L2 ASAGONIUM[/b][/color][/size] [size=4][color=#d4af37]High Five · Fully Custom · OPEN BETA[/color][/size] [size=4][b][url=https://l2asagonium.eu]» l2asagonium.eu «[/url][/b][/size] [/center] [hr] [center][size=4][color=#d4af37][b]— QUICK FACTS —[/b][/color][/size][/center] [list] [*][b]Chronicle:[/b] High Five (Mobius core, fully customised) [*][b]Client:[/b] ~40 GB custom build — required to connect (free download, hosted by us) [*][b]Status:[/b] [color=#33cc66]OPEN BETA[/color] — server is live, balance and content patched continuously [*][b]Monetisation:[/b] [color=#d4af37]Zero P2W.[/color] No donation shop. Ever. [*][b]Website:[/b] [url=https://l2asagonium.eu]l2asagonium.eu[/url] [*][b]Account panel:[/b] [url=https://panel.l2asagonium.eu]panel.l2asagonium.eu[/url] [/list] [hr] [size=4][color=#d4af37][b]THE PITCH[/b][/color][/size] Think of Asagonium as a D&D-style hero power-fantasy stretched across an MMORPG. You start at level 1 with [b]50 HP[/b] and almost no damage. By level 85 your stats are in the [b]billions[/b]. Every step of that climb has been hand-tuned — not retail formulas, not a re-skinned pack — by a single developer with 15+ years of L2 and 10+ years of building custom servers. This is not another "x9999 PvP fest". This is a hardcore custom High Five world: 350+ custom monsters, 50+ elites, 10+ raid bosses, Grand Bosses, six enchant grades, hand-written skill scripts, and a death penalty that actually matters. Every item, skill and material carries its own custom lore right in the in-game description. You will learn boss patterns. You will time your heals. You will die. You will come back stronger. [hr] [size=4][color=#d4af37][b]WHY ASAGONIUM IS DIFFERENT[/b][/color][/size] [list] [*][b]Fully customised High Five client[/b] — every armor set, mount, monster, raid boss and UI tweak lives in our 40 GB build. All assets are free-share or personally licensed; reuse anything you want in your own projects. [*][b]Balanced PvP from level 1 to 85[/b] — class meta shifts with your level and the passives you stack. No "best class", no "trash class". Bring the build [i]and[/i] the brain. [*][b]Autofarm-friendly by design[/b] — built-in autofarm tailored to the server's mechanics. Keeps running with your PC powered off. Working adults shouldn't have to pick between a job and a competitive character. [b]Catch:[/b] PKing offline farmers and AFK bots is fully allowed. Leave your character unattended at your own risk. [*][b]18 melee/ranged classes, zero mages[/b] — deliberate balance call: classic L2 magic does not fit this server's stat ranges. Gladiator, Warlord, Paladin, Dark Avenger, TH, Hawkeye, Eva's Templar, SwS, PW, SR, ShT, BD, AW, PR, Destroyer, Tyrant, BH, Warsmith. All auto-learned skills — no skill-book scavenger hunts. [*][b]Six enchant tiers up to S85 +65,535[/b] — D (+500) → C (+1,000) → B (+2,500) → A (+5,000) → S (+10,000) → [color=#d4af37]S85 (+65,535)[/color]. The true endgame grind. [*][b]Signature touches:[/b] bows have lifesteal, dying to PvP/PvE costs EXP, adult community (chat is not censored, behave accordingly). [/list] [center][img]https://l2asagonium.eu/gallery/armor/CustomArmor4.png[/img][/center] [hr] [size=4][color=#d4af37][b]LIVE LEADERBOARDS — YOUR PROGRESS IS PUBLIC[/b][/color][/size] The website is wired straight into the live game database. The Leaderboards page is not a daily dump — it is the server. Every name on the board is fetched in real time: [list] [*][b]Status pills:[/b] [color=#33cc66]Online[/color] · [color=#ffaa33]Offline Farming[/color] · [color=#aaaaaa]Offline[/color] · [color=#ff3344]You Died[/color] (a Dark-Souls-style flag that appears when an offline-farming character is killed and goes offline) [*][b]Death counter[/b] — a small black tombstone tally that ticks up every time your HP hits 0 [*][b]Hover a weapon enchant[/b] → ornate card with the weapon's name, set glyph and P.Atk [*][b]Hover a character name[/b] → their equipped armor set + custom Asagonium passives, each with its in-game icon [*][b]Level column[/b] shows level [i]and[/i] exact % to next level, with correct multi-key sorting [*][b]Played time, PvP kills (matrix green), PK kills (blood red), Max HP, Adena[/b] — all live [*]Filter by Online / Offline / Farming, sort by class, fully responsive on mobile [/list] [center][img]https://l2asagonium.eu/promo/leaderboards-preview.png[/img] [size=3][b][url=https://l2asagonium.eu/leaderboards]» View the live leaderboards «[/url][/b][/size][/center] [hr] [size=4][color=#d4af37][b]OPEN BETA — AND HONEST ABOUT IT[/b][/color][/size] We launched on [b]26.06.2026[/b]. The homepage countdown ticked over and the world opened. We are in Open Beta — that means: [list] [*]The server is [b]live, stable, and you keep everything you earn[/b]. No wipes planned. [*]Population is small but [b]growing every week[/b] — every player who joins right now lands at the top of the ladder while the world is still being shaped. [*]Feedback loops close [b]fast[/b]: one developer, one decision-maker. Bug reported in the evening is usually a fix by morning. [*]Patches land continuously — new raids, new elites, new seasonal events, new enchant rewards. The roadmap is visible in every patch note. [*]The account panel is [b]already live[/b] at [url=https://panel.l2asagonium.eu]panel.l2asagonium.eu[/url]. [/list] [b]The vision:[/b] grow Asagonium into the destination for players who miss the [i]hardcore custom High Five[/i] feel — long horizon, real progression, real consequences, a tight community that actually knows each other. Not a 3-month-rush-then-die server. Not a launder cycle. A world that lives. [center][img]https://l2asagonium.eu/gallery/mounts/CustomMount3.png[/img] [img]https://l2asagonium.eu/gallery/raidbosses/CustomRaidBoss3.png[/img][/center] [hr] [size=4][color=#d4af37][b]NO PAY-TO-WIN — FULL STOP[/b][/color][/size] There is [b]no donation shop[/b]. There never will be. The only thing you can ever buy is [b]VIP status[/b], which is a thank-you for helping cover hosting costs that are otherwise paid out of the dev's pocket. [list] [*][b]VIP grants:[/b] +50% EXP and +50% Drop. That is the entire bonus. [*]Free players are never locked out of any feature, item, area or boss. [*]The admin character — [b]Asagina[/b] — is [b]fully public[/b]. Profile and inventory are open to anyone who wants to verify the dev isn't sneaking themselves free gear. [*]Honest disclosure: most regulars out-play the admin on his own server. (Looking at you, Forbidden and Riven.) [/list] [hr] [size=4][color=#d4af37][b]HOW TO JOIN — 3 STEPS[/b][/color][/size] [list=1] [*]Create an account at [url=https://panel.l2asagonium.eu]panel.l2asagonium.eu[/url] [*]Download the custom client + the 64-bit mini patch from [url=https://l2asagonium.eu/how-to-connect]l2asagonium.eu/how-to-connect[/url] (full step-by-step guide on that page) [*]Launch, log in, pick your class — the world starts at level 1, you take it from there [/list] [hr] [center] [size=5][color=#d4af37][b]» ENTER THE WORLD «[/b][/color][/size] [size=4][b][url=https://l2asagonium.eu]l2asagonium.eu[/url][/b][/size] [size=2][color=#888888]Asagonium — Custom High Five, hand-built, no P2W, growing every day.[/color][/size] [/center]
    • Please note:i will provide you with forum address for registration once buyer sends money(my commission) to forum guarantor's payment details. You can register on forum in any day and in any time,which are convenient for you,send code word in private message to forum guarantor(you will receive code word from buyer). If buyer does not purchase your product,you will need to wait private message(answer) from forum guarantor to compare code word. I will invite you in "forum deal". I will add your name,which you registered on forum,in "forum deal". Then you write in "forum deal": "buyer did not purchase product" and add code word(you will have this right according to clause in forum questionnaire). Forum guarantor will refund buyer((in full amount). If buyer purchases your product,buyer notifies forum guarantor and forum guarantor will send money to my payment details.   Sports exercise machines,jacuzzi,building materials,cosmetics,perfumes,shoes,clothing,furniture,bags,televisions,music centers,telephones,laptops,tablet computers,refrigerators,washing machines,microwaves,fans.  
    • Here is a L2JMobius Classic Interlude FULL server. The share includes full server source+datapack, patch, interface and the P110 client. The original build is L2JMobius. However it was bought from a user called "ClassicLude (https://classic-lude.org/)" which is also a huge scammer, selling free Mobius files for $500. I could not believe someone actually bought this, yet here we are.    Unfortunately the admin is a scammer and refused to pay his remaining balance of over $150 to me since he is too busy "working for Bill Gates" and opening the next big mega mall in ChatGPT city therefore not having enough money. The server itself garnered a massive 30 players so I can't really tell you if this is usable. Knowing its backstory and that it is Mobius based i can surmise that it is NOT suitable for serious users. This build is the result of typical AI slop and vibecode "admins" thinking they just "one shotted L2J" because they discovered how to prompt an agent.   I have made the following changes, some of which were regrettably butchered by the admin after he discovered how to download Cursor. Not much more was done due to the absolute displeasure and misery of having to work on a Mobius server.   - Updated files to JDK 22 - Added l2 reborn community board - Added preview system for skins including mounts/agathions - Added AIO npc (buffer/store/teleporter) - Added QuickVar system - Added Ranking system (pvp/pk/online/level and moar) - Added raid boss list on community board - Added drop search+shift click with itemtooltip on community board and npc - Added l2 reborn styled flash windows and window borders and L2UI_CT1 - Added custom donate coin icon in the store swf - Fixed some random bugs like Hot Springs monsters not giving the disease     Links Source+Datapack: https://drive.google.com/file/d/1uMaTzSxKtnLxXC-VoZyHYW_OXq7Oof5L/view?usp=sharing Interface+Compiler+Client tools: https://drive.google.com/file/d/14IJWyYSDOjMycHnJ749H9dRXuv2JeYK3/view?usp=sharing Full Client: https://drive.google.com/file/d/1P7Yd9wI0XcWlLMFDPSdfTZgWhW_9JEii/view?usp=sharing
  • 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..