Jump to content

Vkouk

Legendary Member
  • Posts

    4,676
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Vkouk

  1. dokimase panta to teleuteo.kai pes m
  2. traba admin->Attachments and Avatars->avatar settings kai gia size vale 100x100 kai des kai pes m
  3. 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
  4. It was my second code.What did you exept from me?I am not professional java dev. Anyway i am waiting for a feedback. c/p?what did you drink?drugs or what?check my two codes and tell me if they are leeched
  5. 1.http://custom.simplemachines.org/mods/index.php?mod=1117 2.http://custom.simplemachines.org/mods/index.php?mod=111
  6. i make it,more easier anyway i am waiting for someone to give me feedback. i need more practise.but thanks for your good words about me.
  7. 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
  8. thanks a lot CE and welcome back ;)
  9. auto me to activechar.setpvp/pk kills se pio line ine?oste na to valo
  10. kostas good news tio :)
  11. morning babies
  12. Kalimerizo ta members tou Maxcheaters.Loipon,aytes tis meres exo 2 problhmata.Trade boroun na kanoun mono oi gm kai oxi kai oi kanoniki players,kai ta pvp/pk dn anevenoun ka8e fora pou kapios perni pk. Exi kanis kamia idea?Me ton coyote ta exoume kani ola.Perimeno.Thanks ek ton proteron.
  13. <3 axaxaxa
  14. do you want me bitch?
  15. angry for what?aahaha come on.i am not angry :)
  16. relax.i am joking
  17. i don't care what do you think about my english. i know grisom.btw all of us know it
  18. hello ladies and gentlemans
  19. gt esy eise sto video re toublo?
  20. se exi faei h mlkia
  21. ne orea.8a htan kalutero an pm ena global mod para na anoiges sunexia topic.
  22. http://www.maxcheaters.com/forum/index.php?topic=105338.0 oloklhro sticy topic den to vlepis? Edit:Are psile me prolaves
  23. hello moderator.guys stop spamming or he will ban us ;O
×
×
  • 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..