Jump to content

[Share].record Voice Command


Fanky
 Share

Recommended Posts

a voicedcommandhandler would be a good idea (:

::)

Here you are guys.

 

make a new .java file at java/net/sf/l2j/gameserver/handler/voicedcommandhandlers

with name Record.java

and put into the file this

/*
* 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 net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.datatables.RecordTable;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;


public class record implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS =
{
	"record"
};

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
{
	if (!activeChar.isGM() && !Config.ENABLE_RECORD)
	{
		activeChar.sendMessage("Command Disabled");
		return false;
	}

	if (command.equalsIgnoreCase("record"))
	{
		int record = RecordTable.getInstance().getMaxPlayer();

		activeChar.sendMessage("Record of Players Online: " + record);
	}
	return true;
}

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

next go at GameServer.java

find this

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding;

and next from this put this

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Record;

next find this

if(Config.BANKING_SYSTEM_ENABLED)
			_voicedCommandHandler.registerVoicedCommandHandler(new Banking());

and next from this put this

if(Config.Record_PLAYERS) 			_voicedCommandHandler.registerVoicedCommandHandler(new Record());

next find this

public static int		L2JMOD_WEDDING_DIVORCE_COSTS;

and next from this put this

public static boolean       Record_PLAYERS;

next find this

 L2JMOD_WEDDING_DIVORCE_COSTS      = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));

and put this

Record_PLAYERS = Boolean.parseBoolean(L2JModSettings.getProperty("RecordPlayers", "False"));

After go at l2jmods.properties

and at the bottom put this

# Allows user to use .record Command
RecordPLayers = False

 

well thats all from me,

I dont remember where i found it,but when i test it have many bugs-erros + no config.If there is any error,wrong from my side pleaze let me know

Its not tested,so if someone te it pleaze give feedvack,if have any error or something let me know and i ll fix it.

 

kkthnxbai

 

 

Link to comment
Share on other sites

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Record;

 

In which universe should you ever import a handler in the core , when the core has no dependancy on the datapack ? From what i recall the handlers implement as a group an interface and are stored casted as interface in the core when reloading the handlers.

Link to comment
Share on other sites

O wait, now i noticed it. Why are the handlers inside the core in your pack ? Shouldnt they be in the datapack and loaded with scriptengines ?

well i guess you are true.

I will re-share it in some days,i must re-make it,cuz now i realised more things that they are wrong.

thank you for the notice.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Posts

    • Rapid Results Keto + ACV Gummies Scam Or Legit! Learn its Effective Working! Rapid Results ACV Keto Gummies have been formed to support weight reduction. The enhancement speeds up fat consuming a cycle known as ketosis. The fixings contained in the enhancement are 100 percent regular with no side effectsWeight misfortune is a touchy matter that the vast majority avoid examining. Individuals attempt various strategies to lose abundance weight. Individuals use practicing and eating fewer carbs as the most well-known strategies for weight reduction. In any case, these strategies expect one to have an elevated degree of discipline and devotion. Not following the legitimate activity or diet strategy makes them insufficient for weight reduction. https://groups.google.com/g/rapid-result-keto-acv-gummies/c/S8mD13S5Z_w https://groups.google.com/g/rapid-result-keto-acv-gummies/c/nm80BMI2gM4 https://sites.google.com/view/rapid-result-keto-acv-gummies/ https://sites.google.com/view/rapidresults-keto-acv-gummies/ https://infogram.com/rapid-results-keto-acv-gummies-reviews-worth-it-or-scam-real-customer-results-1hxr4zxrp058q6y https://www.agentpet.com/forum/discussion/general/rapid-results-keto-acv-gummies-reviews-real-results-or-fake-rapid-acv-keto-gummy-brand https://www.toyorigin.com/community/index.php?threads/rapid-results-keto-acv-gummies-review-does-it-work-or-scam-2023.30342/ https://infogram.com/rapid-results-keto-acv-gummies-does-it-really-work-or-scam-read-it-first-before-buy-1h7z2l8zp78wx6o https://www.facebook.com/profile.php?id=100090165663325 https://www.toyorigin.com/community/index.php?threads/rapid-results-keto-acv-gummies-reviews-weight-loss-gummies-scam-alert.30344/ https://www.agentpet.com/forum/discussion/general/rapid-results-keto-acv-gummies-reviews-its-really-fantastic-bear-us-2023-by-now-from-official-website https://in.pinterest.com/pin/910219774669045826 https://www.scoop.it/topic/rapid-results-keto-acv-gummies-usa https://www.scoop.it/topic/rapid-results-keto-acv-gummies-official https://www.sympla.com.br/produtor/rapidresultsketoacvgummiesofficial
    • ► Product Name— Divinity Labs CBD Gummies ► Rating — ⭐⭐⭐⭐⭐ Within the beyond year, Divinity Labs CBD Gummies obtained on the spot attention. Capsules containing 800mg of it are a pleasing touch. formulated through agencies primarily based totally withinside the United States the use of natural BHB salts (sodium BHB, calcium BHB, magnesium BHB, and potassium BHB, respectively). The BHB salts assist your frame input ketosis greater quick and resource in weight reduction greater quick. Divinity Labs CBD Gummies have obtained lots of high quality comments from clients, researchers, and fitness professionals, indicating that the product is greater useful in your frame. You will discover all the statistics that our company`s researchers have accumulated approximately Divinity Labs CBD Gummies here. ➢VISIT THE OFFICIAL WEBSITE TO BUY TODAY'S SPECIAL OFFER!! How do the Divinity Labs CBD Gummies paintings? Divinity Labs CBD Gummies is a food plan complement that enables you clearly shed pounds. Its number one goal is to sell ketosis withinside the frame, which usually is based on glucose (derived from carbohydrates) as its number one supply of electricity. Your frame makes use of ketones (stored fat) as electricity whilst glucose stages are low and also you do not devour any carbs. Ketones are produced whilst fat are damaged down through the liver. These ketones will flow into at some point of the frame and be applied as electricity. After ketosis begins, that is how our frame is based on ketones for energy. Now, combine this addition into your recurring for progressed outcomes. At first, the frame did now no longer produce enough ketones, so a keto complement is wanted to growth ketones withinside the frame. https://sites.google.com/view/divinity-labs-cbd-gummies-r/home https://www.facebook.com/people/Divinity-Labs-Cbd-Gummies-Benefits/100089732329563/ https://www.facebook.com/people/Divinity-Labs-CBD-Gummies/100089611404037/ https://www.facebook.com/people/Divinity-Labs-CBD-Gummies-Reviews/100089828085283/ https://sites.google.com/view/divinity-labs-cbd-g/home https://sites.google.com/view/divinity-labs-cbd-gummies-00/home https://sites.google.com/view/divinity-labs-cbd-gummies-1/home https://sites.google.com/view/greenhouse-cbd-gummies-usa-u/home   https://sites.google.com/view/greenhouse-cbd-gummies-usa-/home https://www.sympla.com.br/produtor/greenhousecbdgummiesusa https://www.sympla.com.br/produtor/greenhousepurecbd https://www.facebook.com/people/Greenhouse-CBD-Gummies-USA/100090097775643/ https://www.facebook.com/people/Greenhouse-Pure-CBD-Gummies/100089634355160/ https://www.dibiz.com/greenworld45 https://www.scoop.it/topic/greenhouse-cbd-gummies-greenhouse-cbd-gummies https://www.scoop.it/topic/divinity-labs-cbd-gummies-by-divinity-labs-cbd-gummies-reviews-6 https://www.facebook.com/people/Divinity-Labs-CBD/100089633186282/ https://www.facebook.com/people/Divinity-Labs/100089983241607/  
    • my name is Alice , yes , no problem , I hope my humor about star wars pleased you )   download link  https://cutt.ly/29NOVWz  <<<   😇 it is on this forum C6_System_Win10Supported Revision 746 ( protocol version ) 
    • Those are the initial release clients printed on CD/DVD versions. Here is a list of some protocol versions after updates were released:   [746] Interlude Update 3 [744] Interlude Update 2 [740] Interlude Update 1 [737] Interlude [709] C5 Oath Of Blood Update 2 [694] C5 Oath Of Blood Update 1 [693] C5 Oath Of Blood [660] C4 Scions Of Destiny Update 1 [656] C4 Scions Of Destiny [560] C3 Rise Of Darkness Update 3 [557] C3 Rise Of Darkness Update 2 [555] C3 Rise Of Darkness Update 1 [530] C3 Rise Of Darkness [485] C2 Age Of Splendor Update 1 [478] C2 Age Of Splendor [419] C1 Harbingers Of War [377] Prelude [336] Prelude PTS
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock