Jump to content

[Share].res Command


Vkouk

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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... ;]

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt
    • Because the people they buy this files I share it for free because they give money for this shit 
    • HighFive [X15] - 22 November https://l2etina.com/ Discord   Exp/SP: x15  Adena: x8  Drop: x6  Spoil: x5 Quest Drop: x1 Quest Reward: x2 Manor: x1.5  Raid Boss Drop: x6  Epic RB Jewel Drop: x1  Safe Enchant: +4 Max Enchant: +16 Normal Scroll of Enchant Chance: 52% Blessed Scroll of Enchant Chance: 56% Elemental Stone chance: 50% Elemental Crystal chance: 30%    GAMEPLAY CONFIGURATION   Maximum Clients per PC: 3 2h duration on all buffs, dances, songs, summon, prophecies.  Buff slots: 24(+4 Divine Inspiration)  Dance/Song slots: 12 Skills are auto learn.  Automatic loot for monsters. Manual loot for raid bosses & epic bosses. 1st, 2nd, 3rd profession change for Adena on Class Master NPC. Sub-Class By Quest or Donation. Certification skills retail like (Quest required) Mana Potions: 1000 MP Restoration with 10 seconds cooldown.  Champion Monsters until Lv 75 (2% to chance to spawn)  Pride of Kamael buff is a SELF ONLY buff. You CAN NOT delevel to less than 70 Level. Control & click on an attribute or attribute crystal (adds them all together in 1 item)   BASIC FEATURES    NPC Buffer with all the important buffs.  GM shop up to S80 Dynasty & consumables.  Global Gatekeeper with all the important zones.  Ranking System in Community Board.  Item Auction House in Community Board.  Unique Auctioneer with a few clan halls release weekly.  Auction House with offers in Donation Pounds in Community Board.  Items, Monsters & Raid Bosses Database with many functions.  Character Control Panel with many functions accessible by .cfg command.  Donation Store with limited available options.     EXTRA FEATURES & USEFUL INFO Vote Reward System with  5 - 15 Festival Adena, cooldown usage & 12h duration  Vote Rune that increases your stats. Vote Rune: Increases your P. Def and M. Def by 6%, P. Attack by 4%, M. Attack by 4%, Movement Speed by 4% Automatic potions clicker system, setup window appears by typing .cp / .hp / .mp commands OLYMPIAD    Olympiad on 10 Days circle. (First Olympiad Period begins 11th of July)  New heroes every 1st,11th & 21st of each month.  Olympiad needs 9 minimum participants to begin.  Max Period Matches: 120  Class based option disabled.     Leveling Clan Cost & Required Members.    Clan Level 6: 5.000 Clan Reputation Points & 10+ members.  Clan Level 7: 10.000 Clan Reputation Points & 15+ members.  Clan Level 8: 20.000 Clan Reputation Points & 20+ members.  Clan Level 9: 40.000 Clan Reputation Points & 25+ members.  Clan Level 10: 40.000 Clan Reputation Points & 30+ members.  Clan Level 11: 75.000 Clan Reputation Points & 35+ members.     Unique Clan Hall Auction System - 1 Clan Hall per Village releases every week on Auction. - Clan Hall Auctions are finishing every Monday 18:00 (GMT+3). - Winning Bidder has to pay 25% of his total winning bid weekly to be able to maintain his Clan Hall. - 10% Loser's Tax on his total placed bid is applied. Grade #1 Clan Halls Requirements Clan Level 6+, Clan Members 15+, Average Level per member 70+. Grade #2 Clan Halls Requirements Clan Level 7+, Clan Members 20+, Average Level per member 74+. Grade #3 Clan Halls Requirements Clan Level 8+, Clan Members 30+, Average Level per member 78+.     DEATHMATCH Description: The goal in Deathmatch Event, also known as free-for-all, is to kill as many other players as you can in 10 minutes. After death, you will respawn in random location after 10 seconds. The one with the most kills wins the Event. TEAM VS TEAM Description: In Team vs Team Event all participating members are divided in two sides (Red - Blue) and the only goal is to kill as many players you can from the enemy side. Each kill brings score to your Team. Respawn takes 5 seconds. Event Duration: 10 minutes CAPTURE THE FLAG Description: Capture the Flag is a Team Event. Try to steal Flag that is placed near enemy spawn location and bring it to your territory. Don't forget to defend your flag, we don't want it to be hold by enemy hands! Event Duration: 10 minutes. TREASURE HUNT Description: Treasure Hunt is a free-for-all Event. Your goal is to find chests and open them! Focus on other players too, you are getting points for killing them. You get 1 Festival Adena per Chest.         KOREAN STYLE Description: Korean Style is a Team Event. All you need to do is defeat enemy Team in 1 VS 1 Fights. Prove you are the best and kill the enemy in a fair battle!   FIGHT FOR THRONE Description: Team Event. Protect the Castle from the Invaders and don't let them engrave the Seal of Ruler or Castle Throne will be theirs. Every invader is able to cast the Spell. Team which will possess the Castle after 10 minutes, will win the Event.          RAID BOSSES, EPIC BOSSES AND INSTANCES   Shilen's Messenger, Cabrio: 16-20h  Death Lord Hallate: 16-20h  Kernon: 16-20h Longhorn Golkonda: 16-20h       Ant Queen: 23.5-24.5h Ant Queen spawns every day at 19:00 - 20:00 CET     Baium: 120-124h Baium spawns every: 1st, 6th, 11th, 16th, 21st and 26th of each month at 20:00 - 22:00 CET     Antharas: 168-170h Antharas spawns every: 4th, 14th and 24th of each month at 20:00 - 22:00 CET     Beleth: 192-194h     Valakas: 240-242h Valakas spawns every: 8th, 18th and 28th of each month at 20:00 - 22:00 CET     Epidos: 2h      Instances: Frintezza Required players: 9  Zaken Daytime Lv 83 Required players: 9   Zaken Daytime Lv 60 Required players: 9   Zaken Nightly Lv 60 Required players: 27  Instances: Normal Freya Required players: 9  Instances: Hard Freya Required players: 18  Instances: TIAT Required players: 11  Instances: Beleth Required players: 18    
  • Topics

×
×
  • Create New...