Jump to content

Urbanhack

Membro
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Normal

About Urbanhack

  • Rank
    ForeverAlone

Recent Profile Visitors

470 profile views
  1. l2jserver no tem config.java poque cambio el codigo de configuracion entonce iso varios tipo de projetos nao funciona mais. https://bitbucket.org/l2jserver/l2j-server-game/src/develop/src/main/java/com/l2jserver/gameserver/
  2. oi ... estou tentando inserir esse código para l2jserver última rev h5. mas o pcstat.java não é o mesmo. então, alguém pode me ajudar a fazer isso? desde já, obrigado: Eu testei esse comando no jogo e está funcionando bem, mas preciso do lado do núcleo do pcstat funcionando. hi... im trying to insert this code to l2jserver last develop rev. but the pcstat.java isnt the same. so, anyone can helpme to do this? thx in advance: i test that command ingame and is working fine but i need the pcstat core side working. Core: +++ java/com/l2jserver/gameserver/model/actor/stat/PcStat.java (working copy) { return false; } + + // Check, if exp gain isn't disabled by voiced command + if (activeChar.canOverrideCond(PcCondOverride.DISABLE_EXP_GAIN)) + { + return false; + } if (!super.addExp(value)) { { return false; } - + + // Check, if exp gain isn't disabled by voiced command + if (activeChar.canOverrideCond(PcCondOverride.DISABLE_EXP_GAIN)) + { + addToExp = 0; + } + long baseExp = addToExp; int baseSp = addToSp; datapack: Index: dist/game/data/scripts/handlers/MasterHandler.java =================================================================== import handlers.voicedcommandhandlers.Lang; import handlers.voicedcommandhandlers.StatsVCmd; import handlers.voicedcommandhandlers.TvTVoicedInfo; +import handlers.voicedcommandhandlers.UserOptions; import handlers.voicedcommandhandlers.Wedding; /** @@ -601,6 +602,7 @@ { // Voiced Command Handlers StatsVCmd.class, + UserOptions.class, // TODO: Add configuration options for this voiced commands: // CastleVCmd.class, // SetVCmd.class, Index: dist/game/data/scripts/handlers/voicedcommandhandlers/UserOptions.java =================================================================== --- dist/game/data/scripts/handlers/voicedcommandhandlers/UserOptions.java (revision 0) +++ dist/game/data/scripts/handlers/voicedcommandhandlers/UserOptions.java (working copy) @@ -0,0 +1,44 @@ +package handlers.voicedcommandhandlers; + +import com.l2jserver.gameserver.handler.IVoicedCommandHandler; +import com.l2jserver.gameserver.model.PcCondOverride; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; + +/** + * @author GKR, Mr.Deff + */ +public class UserOptions implements IVoicedCommandHandler +{ + private static final String[] _voicedCommands = + { + "expon", + "expoff", + }; + + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (activeChar == null) + { + return false; + } + + switch(command) + { + case "expoff": + activeChar.addOverrideCond(PcCondOverride.DISABLE_EXP_GAIN); + activeChar.sendMessage("Exp gain disabled."); + break; + case "expon": + activeChar.removeOverridedCond(PcCondOverride.DISABLE_EXP_GAIN); + activeChar.sendMessage("Exp gain restored."); + break; + } + + return true; + } + + public String[] getVoicedCommandList() + { + return _voicedCommands; + } +}
  3. any vote reward working for l2jserver last h5 rev? they update the config code and i cant adapt one for it. if someone know any votereward working on last l2jserver revision working pls tell me. hola, necesito un votereward para la ultima version de l2jserver h5, ellos actualizaron el codigo de configuracion y yo no se como aplicar los votereward con esta nueva forma. por favor si alguien tiene un votereward funcionando para l2jserver h5 ultima revision por favor me puede compartir? gracias.
  4. [ENG]hello guys i need a aio buffer maker for gracia final if some1 have pls tell me [ESP]necesito un aio buffer creador para gracia final si alguien tiene se lo agradesco precisa de um aio buffer criador para a graça final :)
×
×
  • Create New...