Jump to content

Legend™

Members
  • Posts

    596
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Legend™

  1. I never said in my post that farming is hard,I said "farming was easy in part" as for events maybe we log in at different times,and as more than 200,from where the web page?I just logged out a few mins ago web page online 160

    how many you think are in game

    Im not here to critisize anyone ,I said it had a great potential

  2. After playing in the server from beta it looked it had potentials to become a nice server,yes it was a copy but that changed when it went live. Farming was easy in part,but it needed  a few small things changed so it would not be a boring server.Events were allways cancelled due to lack of players, Altars and instances noone or a few was participating due to the drops, Now i think its too late even if he fixes everything.All there is are about 20 ppl online and most of them are afk

  3. the imports are ok its this parts i have problem

    @@ -464,6 +469,8 @@
    		ItemHandler.getInstance().registerItemHandler(new ManaPotion());
    		ItemHandler.getInstance().registerItemHandler(new EnergyStarStone());
    		ItemHandler.getInstance().registerItemHandler(new EventItem());
    +		if(CustomConfig.AIOITEM_ENABLEME)
    +			ItemHandler.getInstance().registerItemHandler(new AIOItem());
    		_log.config("Loaded " + ItemHandler.getInstance().size() + " ItemHandlers");
    	}
    
    @@ -555,6 +562,28 @@
    		_log.config("Loaded " + VoicedCommandHandler.getInstance().size() + " VoicedHandlers");
    	}
    
    +	private static void loadAIOItemHandlers()
    +	{
    +		AIOItemHandler.getInstance().registerAIOItemHandler(new AIOChatHandler());
    +		if(CustomConfig.AIOITEM_ENABLESHOP)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOShopHandler());
    +		if(CustomConfig.AIOITEM_ENABLEGK)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOTeleportHandler());
    +		if(CustomConfig.AIOITEM_ENABLEWH)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOWarehouseHandler());
    +		if(CustomConfig.AIOITEM_ENABLEBUFF)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOBufferHandler());
    +		if(CustomConfig.AIOITEM_ENABLESERVICES)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOServiceHandler());
    +		if(CustomConfig.AIOITEM_ENABLESCHEMEBUFF)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOSchemeHandler());
    +		if(CustomConfig.AIOITEM_ENABLESUBCLASS)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOSubClassHandler());
    +		if(CustomConfig.AIOITEM_ENABLETOPLIST)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOTopList());
    +		_log.config("Loaded " + AIOItemHandler.getInstance().size() +" AIOItem bypass handlers");
    +	}
    +	
    	/**
    	 * @param args
    	 */
    @@ -570,6 +599,8 @@
    		loadSkillHandlers();
    		loadUserHandlers();
    		loadVoicedHandlers();
    +		if(CustomConfig.AIOITEM_ENABLEME)
    +			loadAIOItemHandlers();
    		_log.config("Handlers Loaded...");

     

    i tried several ways of registering them but the hanlers  are not loaded

  4. I have being trying to add into H5 masterhandler some imports but with no success ,if someone could hepl I will be most gratefull

    Index: dist/game/data/scripts/handlers/MasterHandler.java
    ===================================================================
    --- dist/game/data/scripts/handlers/MasterHandler.java	(revision 8445)
    +++ dist/game/data/scripts/handlers/MasterHandler.java	(working copy)
    @@ -100,6 +100,16 @@
    import handlers.admincommandhandlers.AdminUnblockIp;
    import handlers.admincommandhandlers.AdminVitality;
    import handlers.admincommandhandlers.AdminZone;
    +import handlers.aioitemhandler.AIOBufferHandler;
    +import handlers.aioitemhandler.AIOChatHandler;
    +import handlers.aioitemhandler.AIOSchemeHandler;
    +import handlers.aioitemhandler.AIOServiceHandler;
    +import handlers.aioitemhandler.AIOShopHandler;
    +import handlers.aioitemhandler.AIOSiegeHandler;
    +import handlers.aioitemhandler.AIOSubclassHandler;
    +import handlers.aioitemhandler.AIOTeleportHandler;
    +import handlers.aioitemhandler.AIOTopList;
    +import handlers.aioitemhandler.AIOWarehouseHandler;
    import handlers.bypasshandlers.Augment;
    import handlers.bypasshandlers.BloodAlliance;
    import handlers.bypasshandlers.Buy;
    @@ -151,6 +161,7 @@
    import handlers.chathandlers.ChatShout;
    import handlers.chathandlers.ChatTell;
    import handlers.chathandlers.ChatTrade;
    +import handlers.itemhandlers.AIOItem;
    import handlers.itemhandlers.BeastSoulShot;
    import handlers.itemhandlers.BeastSpice;
    import handlers.itemhandlers.BeastSpiritShot;
    @@ -256,6 +267,8 @@
    import java.util.logging.Logger;
    
    import com.l2jserver.Config;
    +import com.l2jserver.CustomConfig;
    +import com.l2jserver.gameserver.handler.AIOItemHandler;
    import com.l2jserver.gameserver.handler.ActionHandler;
    import com.l2jserver.gameserver.handler.AdminCommandHandler;
    import com.l2jserver.gameserver.handler.BypassHandler;
    @@ -477,6 +490,9 @@
    		ITEM.registerItemHandler(new ManaPotion());
    		ITEM.registerItemHandler(new EnergyStarStone());
    		ITEM.registerItemHandler(new EventItem());
    +		if(CustomConfig.AIOITEM_ENABLEME)
    +			ITEM.registerItemHandler(new AIOItem());
    +		
    		_log.config("Loaded " + ITEM.size() + " ItemHandlers");
    	}
    
    @@ -570,7 +586,32 @@
    			VOICE.registerVoicedCommandHandler(new ChangePassword());
    		_log.config("Loaded " + VOICE.size() + " VoicedHandlers");
    	}
    +
    +	private static void loadAIOItemHandlers()
    +	{
    +		AIOItemHandler.getInstance().registerAIOItemHandler(new AIOChatHandler());
    +		if(CustomConfig.AIOITEM_ENABLESHOP)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOShopHandler());
    +		if(CustomConfig.AIOITEM_ENABLEGK)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOTeleportHandler());
    +		if(CustomConfig.AIOITEM_ENABLEWH)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOWarehouseHandler());
    +		if(CustomConfig.AIOITEM_ENABLEBUFF)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOBufferHandler());
    +		if(CustomConfig.AIOITEM_ENABLESERVICES)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOServiceHandler());
    +		if(CustomConfig.AIOITEM_ENABLESCHEMEBUFF)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOSchemeHandler());
    +		if(CustomConfig.AIOITEM_ENABLETOPLIST)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOTopList());
    +		if(CustomConfig.AIOITEM_ENABLESIEGEREG)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOSiegeHandler());
    +		if(CustomConfig.AIOITEM_ENABLESUBCLASS)
    +			AIOItemHandler.getInstance().registerAIOItemHandler(new AIOSubclassHandler());
    +		_log.config("Loaded " + AIOItemHandler.getInstance().size() +" AIOItem bypass handlers");
    +	}
    
    +	
    	/**
    	 * @param args
    	 */
    
    @@ -586,6 +627,7 @@
    		loadSkillHandlers();
    		loadUserHandlers();
    		loadVoicedHandlers();
    +		loadAIOItemHandlers();
    		_log.config("Handlers Loaded...");
    	}
    }
    \ No newline at end of file

  5. hi, just wanna ask! what is the different to this mod?

    http://www.l2jserver.com/forum/viewtopic.php?f=73&t=12664&p=57923&hilit=Fakepc#p57923

     

    tested, and its not working to me. I don't know why.. I tried several fake_pc shared from l2jserver.. I still got error, since the original share is beta. and not update for the latest rev. of H5

    i just tried it and it works.you just have to change one import

    import com.l2jserver.gameserver.templates.chars.L2PcTemplate;

    to

    import com.l2jserver.gameserver.model.actor.templates.L2PcTemplate;

  6. try this autovotereward it gives me no errors in eclipse

    i use goldenboys share http://maxcheaters.com/forum/index.php?topic=206120.0

    /* 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 com.l2jserver.gameserver.model;
    
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.URL;
    import java.net.URLConnection;
    
    import com.l2jserver.Config;
    import com.l2jserver.gameserver.Announcements;
    import com.l2jserver.gameserver.GmListTable;
    import com.l2jserver.gameserver.ThreadPoolManager;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    
    public class AutoVoteRewardHandler
    {
    private int	lastVoteCount = 0;
    private int	initialCheck = 60 * 1000;														
    private int	delayForCheck = Config.DELAY_FOR_NEXT_REWARD * 1000;	
    
    private AutoVoteRewardHandler()
    
    {
    	if (Config.VOTE_REWARD_ENABLE)
    	{		
    	System.out.println("========= "+Config.SERVER_NAME_FOR_VOTES+" =========");
    	System.out.println("Vote Reward System activated");
    	System.out.println("========= "+Config.SERVER_NAME_FOR_VOTES+" =========");
    	ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck);
    	}
    }
    
    
    private class AutoReward implements Runnable
    {
    	public void run()		
    	{
    		if (Config.VOTE_REWARD_ENABLE)
    		{
    		System.out.println("");
    		System.out.println("==================");
    		System.out.println("Vote Count Check.");
    		if (Config.VOTE_REWARD1_ID == 0 || Config.VOTE_REWARD1_COUNT == 0 || Config.VOTE_REWARD2_ID == 0 || Config.VOTE_REWARD2_COUNT == 0)
    		{
    			GmListTable.broadcastMessageToGMs("The rewards aren't Identified. Please take a look.");
    			return;
    		}
    		int newVoteCount = getVotes(Config.VOTE_HTML_PATCH);
    		System.out.println("getLastVoteCount:"+getLastVoteCount());
    		System.out.println("newVoteCount:"+newVoteCount);
    		System.out.println("==================");
    		System.out.println("");
    		if (newVoteCount != 0 && getLastVoteCount() != 0 && newVoteCount >= getLastVoteCount() + Config.VOTES_FOR_REWARD)
    		{
    			for (L2PcInstance player : L2World.getInstance().getAllPlayersArray())
    			{
    				if (player != null)
    				{
    						L2ItemInstance item1 = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID);
    						if (item1 == null || item1.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM1)
    						{
    							if (player.getAppearance().getNameColor() != Config.OFFLINE_NAME_COLOR)
    							{
    								player.addItem("reward", Config.VOTE_REWARD1_ID, Config.VOTE_REWARD1_COUNT, player, true);
    							}
    						}
    						else
    						{
    							player.sendMessage("[" + Config.SERVER_NAME_FOR_VOTES+"]" + "You have reached our limit for vote reward items!!");
    						}
    						L2ItemInstance item2 = player.getInventory().getItemByItemId(Config.VOTE_REWARD2_ID);
    						if (item2 == null || item2.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM2)
    						{
    							if (player.getAppearance().getNameColor() != Config.OFFLINE_NAME_COLOR)
    							{
    								player.addItem("reward", Config.VOTE_REWARD2_ID, Config.VOTE_REWARD2_COUNT, player, true);
    							}
    						}
    						else
    						{
    							player.sendMessage("[" + Config.SERVER_NAME_FOR_VOTES+"]" + "You have reached our limit for vote reward items!!");
    						}
    				}
    			}	
    			setLastVoteCount(newVoteCount);
    		}
    		Announcements.getInstance().announceToAll("[" + Config.SERVER_NAME_FOR_VOTES+"]" + "Our Current vote count is: " + newVoteCount);
    		Announcements.getInstance().announceToAll("[" + Config.SERVER_NAME_FOR_VOTES+"]" + "The next reward will be given at " + (getLastVoteCount()+ Config.VOTES_FOR_REWARD) + " Votes.");
    		if (getLastVoteCount() == 0)
    		{
    			setLastVoteCount(newVoteCount);
    		}
    		}
    	}
    }
    
    private int getVotes(String urlString)
    {
    	InputStreamReader isr = null;
    	BufferedReader in = null;
    	try
    	{
    		URL url = new URL(urlString);
    		URLConnection con = url.openConnection();
    		con.addRequestProperty("User-Agent", "Mozilla/4.76"); 
    		isr = new InputStreamReader(con.getInputStream());
    		in = new BufferedReader(isr);
    		String inputLine;
    		int voteCount = 0;
    		while ((inputLine = in.readLine()) != null)
    		{
    			if (inputLine.contains("moreinfo_total_rank_text"))
    			{
    				int Sub = 12;
    				switch (inputLine.length())
    				{
    					case 116:
    						Sub = 13; 
    						break;
    					case 117:
    						Sub = 14; 
    						break;
    					case 118:
    						Sub = 15;
    						break;
    					case 119:
    						Sub = 16; 
    						break;
    				}
    				voteCount = Integer.parseInt(inputLine.substring(inputLine.length() - Sub, inputLine.length() - 11));
    				break;
    			}
    		}
    		return voteCount;
    	}
    	catch (IOException e)
    	{
    		e.printStackTrace();
    		return 0;
    	}
    	finally
    	{
    		try
    		{
    			in.close();
    		}
    		catch (IOException e)
    		{
    
    		}
    		try
    		{
    			isr.close();
    		}
    		catch (IOException e)
    		{
    
    		}
    	}
    }
    
    /**
     * @return
     */
    
    private void setLastVoteCount(int voteCount)
    {
    	lastVoteCount = voteCount;
    }
    
    private int getLastVoteCount()
    {
    	return lastVoteCount;
    }
    
    public static AutoVoteRewardHandler getInstance()
    {
    	return SingletonHolder._instance;
    }
    
    @SuppressWarnings("synthetic-access")
    private static class SingletonHolder
    {
    	protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler();
    }
    }

  7. l2jserver

    Freya

    core rev: 4952

    dp rev: 8398

    compile:
        [javac] Compiling 1547 source files to C:\Users\metro\workspace\L2J_Server\build\classes
        [javac] C:\Users\metro\workspace\L2J_Server\java\com\l2jserver\gameserver\instancemanager\AutoVoteRewardManager.java:55: error: cannot find symbol
        [javac]                Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
        [javac]                                                                                    ^
        [javac]   symbol:   method values()
        [javac]   location: class L2TIntObjectHashMap<L2PcInstance>
        [javac] 1 error
    BUILD FAILED
    

     

    :o??

     

    Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().valueCollection();

    worked for me

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock