Du kodai apsaugos

    
  1. Atsijungęs

    daibetikas

    Pranešimai: 0

    2 Kovo 2013 - 19:29 / #1
  2. 
  3. Atsijungęs

    maugllis

    Administratorius

    Pranešimai: 542

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


    With this menu, players can be healed, can get all skills reused, enchant weapon etc. You will set the item and price of each service, so u can very easy get money like that from your players ^^

    Players can see this menu by clicking .donate

    There is combat page:


    And Town page:


    Core:http://pastebin.com/1sPSuXx4

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


    Well i say on l2jfree forum a code... not exactly like that but about the walker protection... and i make some change for option like enable/disable and other correction.

    I see on l2j for this fix and don't exist ...!

    So here we go, This is latest l2j core;

    Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties
    ===================================================================
    --- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties	(revision 2796)
    +++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/config/l2jmods.properties	(working copy)
    @@ -161,4 +161,9 @@
     #----------------------------------
     EnableWarehouseSortingClan = False
     EnableWarehouseSortingPrivate = False
    -EnableWarehouseSortingFreight = False
    \ No newline at end of file
    +EnableWarehouseSortingFreight = False
    +
    +#---------------------------------
    +# Walker Protection (By Cobra)
    +#---------------------------------
    +L2WalkerProtection = False
    \ No newline at end of file
    Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java
    ===================================================================
    --- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java	(revision 2796)
    +++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/Config.java	(working copy)
    @@ -80,6 +80,7 @@   /******************************************************************************************************************************************************/
         /** L2J Property File Definitions End Here**/
     	/******************************************************************************************************************************************************/
    @@ -560,6 +561,8 @@
         public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;
         public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE;
         public static boolean	L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
    +    // L2WalkerProtection
    +    public static boolean      KICK_L2WALKER;
         
         /** ************************************************** **/
     	/** L2JMods Settings -End                              **/
    @@ -1767,6 +1770,8 @@
     	                L2JMOD_ENABLE_WAREHOUSESORTING_CLAN     = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
     	                L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE  = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
     	                L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT  = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
    +	                // L2Walker Protection
    +	                KICK_L2WALKER                           = Boolean.parseBoolean(L2JModSettings.getProperty("L2WalkerProtection", "False"));
     	
     	                if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
     	                {
    Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java
    ===================================================================
    --- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java	(revision 2796)
    +++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/network/clientpackets/MoveBackwardToLocation.java	(working copy)
    @@ -23,6 +23,9 @@
     import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
     import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
     import net.sf.l2j.gameserver.network.serverpackets.PartyMemberPosition;
    +import net.sf.l2j.gameserver.network.SystemMessageId;
    +import net.sf.l2j.gameserver.util.IllegalPlayerAction;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -71,6 +74,12 @@
     		catch (BufferUnderflowException e)
     		{
     			// ignore for now
    +			 if(Config.KICK_L2WALKER)
    +				 {
    +				 L2PcInstance activeChar = getClient().getActiveChar();
    +				 activeChar.sendPacket(SystemMessageId.HACKING_TOOL);
    +				 Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " trying to use l2walker!", IllegalPlayerAction.PUNISH_KICK);
    +				 }
     		}
     	}
     
    Index: C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
    ===================================================================
    --- C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 2796)
    +++ C:/Documents and Settings/Cobra/workspace/L2J_NewCore/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
    @@ -11971,4 +11971,13 @@
         		}
         	}
         }
    +
    +	/**
    +	 * @param hacking_tool
    +	 */
    +	public void sendPacket(SystemMessageId hacking_tool)
    +	{
    +		sendMessage("Please try again after closing unnecessary programs!.");
    +		
    +	}
     }


    I'll put the diff file wen i have time.

    Test it and feed back for any bug.

    Regards Cobra.

    For Interlude Users Do what KidZor Say's .
    Quote from: KidZoR on March 21, 2009, 09:32:56 AM

    u mean:
    activeChar.sendPacket(new SystemMessage(SystemMessageId.HACKING_TOOL));
    

    and ofc if u have interlude..:
    add that shit...after the closest nr to it..
    	/**
    	 * ID: 769<br>
    	 * Message: A hacking tool has been discovered. Please try again after closing unnecessary programs.
    	 */
    	HACKING_TOOL(769),
    


    and delete that bro..

    +	/**
    +	 * @param hacking_tool
    +	 */
    +	public void sendPacket(SystemMessageId hacking_tool)
    +	{
    +		// TODO Auto-generated method stub
    +		
    +	}
     }
    


    Version 1.1 Untested! At Gracia! Removed sisnce no one don't want to test it!
    Paskutinį kartą redagavo: maugllis 2 Kovo 2013 - 23:31
    2 Kovo 2013 - 23:27 / #2
  4. 
  5. Atsijungęs

    gerardas

    Pranešimai: 0

    sitas geras :D
    4 Kovo 2013 - 01:31 / #3