Jump to content

Recommended Posts

Posted

Hello mates.Again a new code by me.Also thanks Coyote for his help :-*

So i didn't find any code for this,so i decided to make it.It's more simple than my previous code.So let's see what i did.

Index: java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- java/net/sf/l2j/gameserver/GameServer.java	(revision 160)
+++ java/net/sf/l2j/gameserver/GameServer.java	(working copy)
@@ -210,6 +210,7 @@
import net.sf.l2j.gameserver.handler.usercommandhandlers.Time;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Banking;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Online;
+import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Res;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.ServerInfos;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding;
import net.sf.l2j.gameserver.handler.voicedcommandhandlers.stats;
@@ -633,6 +634,9 @@

		if(Config.ENABLE_INFOS_VC)
			_voicedCommandHandler.registerVoicedCommandHandler(new ServerInfos());
+		
+		if(Config.RES_COMMAND)
+		   _voicedCommandHandler.registerVoicedCommandHandler(new Res());

		_log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers.");

Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 160)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -965,6 +965,7 @@
    public static int           TRADE_UNITS;
    public static boolean       ONLINE_PLAYERS;
    public static boolean		ENABLE_INFOS_VC;
+    public static boolean       RES_COMMAND;
    /** Custom Project Modifications - End */
    
    /** FloodProtector - Start */
@@ -2073,6 +2074,7 @@
                TRADE_UNITS                        = Integer.parseInt(L2JModSettings.getProperty("TradeUnits", "250"));
                ONLINE_PLAYERS     = Boolean.parseBoolean(L2JModSettings.getProperty("OnlinePLayers", "False"));
                ENABLE_INFOS_VC     = Boolean.parseBoolean(L2JModSettings.getProperty("InfosVoicedCommand", "False"));
+                RES_COMMAND         =Boolean.parseBoolean(L2JModSettings.getProperty("ResVoicedCommand" , "False"));
                /** Custom Project Modifications - End */

                
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 160)
+++ java/config/l2jmods.properties	(working copy)
@@ -295,8 +295,11 @@
# Default : False
OnlinePLayers = False

# Allow the use of .info command?
# An html window pops up and shows infos to the player
# the admin sets what the html window will show from
# the file at data/html/ServerInfos.htm
InfosVoicedCommand = False
+
+# Allow the use of .res command?
+ResVoicedCommand = False
Index: java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Res.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Res.java	(revision 0)
+++ java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Res.java	(revision 0)
@@ -0,0 +1,55 @@
+/*
+ * 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.handler.voicedcommandhandlers;
+
+import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+
+
+/**
+ * @author Ventic
+ */
+
+public class Res implements IVoicedCommandHandler
+{
+	private static final String[] VOICED_COMMANDS = { "res" };
+	
+	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+    {
+		
+        if (command.startsWith("res"))
+        {
+        	if (activeChar.isInOlympiadMode())
+        	{
+        		activeChar.sendMessage("Res in oly? Forget it bro!");
+        		return false;
+        	}
+        	
+        	activeChar.doRevive();
+        	activeChar.sendMessage("Revived!");
+        }
+        return true;
+    }
+	
+	public String[] getVoicedCommandList()
+	{
+		return VOICED_COMMANDS;
+	}
+}

Give me feedback plz.

-Ventic

Posted

i make it,more easier anyway i am waiting for someone to give me feedback.

another good job to you my friend we have a new java coder in team :D gl

i need more practise.but thanks for your good words about me.

Posted

what is the defferent between this? http://www.maxcheaters.com/forum/index.php?topic=34221.0

 

Only you remove the checks and the consumable item?

 

And what you check only the olympiad mode?

 

If it is on castle siege... or fort siege?

 

Wen you try to make something make something new... ;]

Posted

what is the defferent between this? http://www.maxcheaters.com/forum/index.php?topic=34221.0

 

Only you remove the checks and the consumable item?

 

And what you check only the olympiad mode?

 

If it is on castle siege... or fort siege?

 

When you try to make something make something new... ;]

It was my second code.What did you exept from me?I am not professional java dev.

Anyway i am waiting for a feedback.

lol...you think we're stupid? Your both shares are just c/p and you just change some things! ok ok you know now how to make a custom command! gratz :)

c/p?what did you drink?drugs or what?check my two codes and tell me if they are leeched

 

 

Posted

It was my second code.What did you exept from me?I am not professional java dev.

Anyway i am waiting for a feedback.

 

 

what second code...?? x[ is just a c/p and not a second code next time write the proper credits!

 

~Locked

Posted

what second code...?? x[ is just a c/p and not a second code next time write the proper credits!

 

~Locked

http://www.maxcheaters.com/forum/index.php?topic=122994.0

It's c/p and this?I didn't c/p any code and this i made it by myself.Anyway i won't continue it

re-locked

Posted

http://www.maxcheaters.com/forum/index.php?topic=122994.0

It's c/p and this?I didn't c/p any code and this i made it by myself.Anyway i won't continue it

re-locked

 

Write the proper credits!!!

 

You just remove some lines ....you add nothing NOTHING!

 

 

 

Guest
This topic is now closed to further replies.


  • Posts

    • Selling for 35 us umodel that opens any ukx , utx and static meshes from samurai updat 542 protocol . Leave me a pm if needed. 
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • It’s time for something new to rise. In a world filled with short-lived projects and empty promises, Emerge was created with a different vision — a vision built on experience, precision, and long-term commitment. This is not just another server launch. This is the beginning of something that is meant to last. 🌑 Eclipse x10 – A New Beginning Eclipse x10 is designed for players who seek more than just fast progression. It is built for those who value competition, balance, and a real Lineage II experience. From the very first day, every system has been carefully adjusted to provide a smooth and fair journey — where both solo players and clans can thrive. No shortcuts. No chaos. Only a structured and competitive world. ⚔️ What Awaits You • A balanced mid-rate environment (x10 core progression) • Stable and optimized gameplay • Fair systems with focus on long-term play • Competitive PvP and rewarding PvE • Active and dedicated administration • A project built with vision, not temporary hype 📊 Server Rates Basic: EXP/SP: x10 Adena: x5 Drop: x5 Spoil: x5 Secondary: Quests: x1 Seal Stones: x5 Life Stone Drop: x1 Enchant Scroll Drop: x1 Bosses: Raid Boss EXP/SP: x1 Raid Boss Drop: x1 Epic Boss EXP/SP: x1 Epic Boss Drop: x1 Enchant: Safe: +3 Max: +16 📅 Launch Information Grand Opening: 5 June 2026 The countdown has already begun. Clans are forming. Strategies are being prepared. The question is — will you be ready? 🔗 Join the Community Every strong server begins with a strong community. Be part of it from the very start. 💬 Discord: https://discord.gg/l2emerge 🌐 Website: https://www.l2emerge.com  
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • 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..