Jump to content

kuriku

Members
  • Posts

    120
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by kuriku

  1. You can translate the htmls an use the folder "lang" to redirect it, and also you need a "language voicecommand handler".

    /*
    * 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 handlers.voicedcommandhandlers;
    
    import java.util.StringTokenizer;
    
    import com.l2jserver.Config;
    import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
    import com.l2jserver.util.StringUtil;
    
    public class Lang implements IVoicedCommandHandler
    {
    private static final String[] VOICED_COMMANDS =
    {
    	"lang"
    };
    
    /**
     * 
     * @see com.l2jserver.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, com.l2jserver.gameserver.model.actor.instance.L2PcInstance, java.lang.String)
     */
    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
    {
    	if (!Config.L2JMOD_MULTILANG_ENABLE
    			|| !Config.L2JMOD_MULTILANG_VOICED_ALLOW)
    		return false;
    
    	NpcHtmlMessage msg = new NpcHtmlMessage(1);
    
    	if (params == null)
    	{
    		final StringBuilder html = StringUtil.startAppend(100);
    		for (String lang : Config.L2JMOD_MULTILANG_ALLOWED)
    		{
    			StringUtil.append(html,
    					"<button value=\"",
    					lang.toUpperCase(),
    					"\" action=\"bypass -h voice .lang ",
    					lang,
    					"\" width=60 height=21 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"><br>"
    			);
    		}
    
    		msg.setFile(activeChar.getHtmlPrefix(), "data/html/mods/Lang/LanguageSelect.htm");
    		msg.replace("%list%", html.toString());
    		activeChar.sendPacket(msg);
    		return true;
    	}
    
    	StringTokenizer st = new StringTokenizer(params);
    	if (st.hasMoreTokens())
    	{
    		final String lang = st.nextToken().trim();
    		if (activeChar.setLang(lang))
    		{
    			msg.setFile(activeChar.getHtmlPrefix(), "data/html/mods/Lang/Ok.htm");
    			activeChar.sendPacket(msg);
    			return true;
    		}
    		else
    		{
    			msg.setFile(activeChar.getHtmlPrefix(), "data/html/mods/Lang/Error.htm");
    			activeChar.sendPacket(msg);
    		}
    	}
    
    	return false;
    }
    
    /**
     * 
     * @see com.l2jserver.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList()
     */
    public String[] getVoicedCommandList()
    {
    	return VOICED_COMMANDS;
    }
    }
    

     

    If you wanna to change de skills,  npc, quests... information you must to edit skillname-e.dat, npcname-e... It's a hard work, maybe there is a translated system somewhere.

     

    The rest (annoucment...) you can change it from the core.

  2. I think an arrow is not a enchantable item. It would be like trying to enchant a HP Potion, they are countable items in the same stack, and if it would be possible you must to enchant every arrow of your inventory (1000 arrows, 1000 enchants). That's crazy. It would be more easy if you create an special arrow and you must add a bonus for use it.

  3. I wish to change the Territory War Calendar. TW every 2 weeks (like castle sieges) but interspersed.

    The week that Castle sieges are on, there will not be TW.

    And the week that Castle siege aren't on, there will be TW.

     

    I've searched in core-side in com.l2jserver.gameserver.instancemanager.TerritoryWarManager, and I've searched in DP in quests.TerritoryWarScripts.TerritoryWarSuperClass.java, but any change that I've made, it doesn't change the TW day/hour.

     

    There is any way to change it¿?

  4. Do you have an updated guide to make this¿? I searched and searchedand all that I found was a guides since 2009. Like LauQ guide.

     

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

     

    If I follow this guide, the weapons still floating.

    I use this guide too:

     

    http://allcheats.ru/t91326/

     

    I use this guide and the problem is the same:

    http://login.3dgames.com.ar/login?service=http%3A%2F%2Fforos.3dgames.com.ar%2Fnewreply.php%3Fdo%3Dnewreply%26noquote%3D1%26p%3D14235479

     

    And weapons still floating.

     

    If you have a correct guide about make weapons correctly I'll be very grateful, but I'm afraid the "Search Option" and "Google" hates me.

×
×
  • Create New...