Jump to content

ZeroCool22

Members
  • Posts

    31
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ZeroCool22

  1. I m tired of getting the -beep-ing same error again and again:

     

    Error on: C:\server\gameserver\data\scripts\custom\555_NPCBUFFER\__init__.py.error.log

    Line: -1 - Column: -1

     

    Traceback (innermost last):

     File "__init__.py", line 4, in ?

    ImportError: no module named net

     

    I put all the files in the correct place i don't know why the hell get this error if somebody can help, thx.

     

    PD: I m working with last Rev. Epilogue.

     

    EDIT: FIXED.

     

    from net.sf.l2j. need be change for from com.l2jserver.

  2. Client:

     

    Gracia Final.

     

    Rates:

     

    Instant LVL 76!

     

    xp/sp=1000 Adena= Custom. (Better Drop from PVP's & Events).

     

    Enchants:

     

    safe +3 (Full Body +4), max +12. Rates (Normals Scrolls 66%, Blessed 75%).

     

    NPC Buffer:

     

    Only Basic buffs. Custom Scheme sytem, heal & remove buffs option.

    If you are one of that players who like go to fight SuperMega-Overbuffered with 22k of p.attack and M.attack, this server is not for you. Here if you wanna more buffs you need make "Team Play".

     

    Shop:

     

    Here you have only 2 Grade Gears, A & S.

    A Grade is FREE consumables included, (Not the Top Weapons, you will need a little ammount of adena).

    S Grade you need farm the Required items, you have 3 ways for make this, from the traditional killing mobs... and PVP's, Event. Offcorse you will get a much better drop from the last 2 than Mobs.

     

    GK:

     

    2 Custom Zones with Customs Mobs. (So you will find very fast PVP, not need searching for all map for someone to own).

     

    Others:

     

    * 1 Only Main Town (Giran). All classes start here.

     

    * TVT Event every 1h with nice rewards, with command "Join".

     

    * GK & MP Potions can't be used in "PVP" mode (flaged instance).

     

    * Announce PVP/PK system.

     

    * SubClasses start with LvL 76 and can get LvL 85 for a better PvP experience.

     

    * Customs "Rank Titles", Based on PVP points.

     

    * Players without "Heavy Mastery", can't use heavy armors, like Tyrants, Dagers, Archers etc.. (Balanced Things).

     

    * Spawn Protection: 25 Secs, Anti PK Guards.

     

    * Weight limit x50.

     

    * Dual Box NOT ALLOWED and is penalized with Jail/Ban.

     

     

    Site: =====> http://l2warmachine.ucoz.com/load

     

  3. nothing happened ingame?strange you sure you have the good jar file?

     

    Yes i m sure after i compile i take the JAR from where the eclipse compile this:

     

    [zip] Building zip: C:\Users\Chakl22\workspace\L2_GameServer\build\L2J_Server.zip
    BUILD SUCCESSFUL
    Total time: 17 seconds

     

    and then replace the .jar in C:\server\gameserver

     

     

    Have u enable them from configs or u just compiled and run the server? -.-"

     

    Yes i enable this from config with the GK disallowed in PVP and the PVP Ranks.

     

    And with the PVP Rewards i don't know this not have any config simply only java modify..

     

    PD: somebody try this with last Rev and confirm this really work? aleast with PVP Rewards and GK?

     

    version=${l2jdp.revision}

         builddate=20091112_1229

         detailed info:

                committed-rev="6774"

                name=""

                committed-date="2009-11-02T18:47:02.537745Z"

     

     

    version=${l2j.revision}

        builddate=20091112_1232

         detailed info:

                committed-rev="3694"

                name=""

                committed-date="2009-11-03T10:08:06.579692Z"

     

    Thx for respond..  :-\

     

     

  4. Hi to all good ppl.

    I have some time without trying to setup a server i will give a little description about what programs i m using for make more easy your help:

     

    SO: Windows 7 64Bits

     

    Navicat

     

    eclipse-SDK-3.5.1-win32 ( i m thinking if the 64 will be better than this..?)

     

    jdk-6u17-windows-i586 (thinking in get the 64 Bits to)

     

    mysql-essential-5.4.3-beta-winx64 (i need use this yes or yes why Win dows 7 have 2 folder in C: C:\Program Files "for 64 bits programs i think" and C:\Program Files (x86). So when i was trying to install the Database instaler (with MySQL 32 bits) for create the l2jdb i have a problem don't recognize the Directory of MySQL  32 Bits).

     

    Well after i install all this i can install the DB without any problem, i put up the server etc...

     

    Now i m interesting in this things for my server:

     

    PVP Rewards:

     

    http://www.maxcheaters.com/forum/index.php?topic=28058.0  (Compiled without any error but nothing happend in game)

     

     

    Disallowed GK for players in combat state (Purple instance):

     

    ### Eclipse Workspace Patch 1.0
    #P Aspeklarija v1.3
    Index: java/config/Character.properties
    ===================================================================
    --- java/config/Character.properties	(revision 2444)
    +++ java/config/Character.properties	(working copy)
    @@ -351,6 +351,8 @@
    # Retail: true
    AltKarmaPlayerCanUseWareHouse = True
    
    +AltFlagedPlayerCanUseGK = True
    +
    #============================================================#
    #                          Craft                             #
    #============================================================#
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java	(revision 2444)
    +++ java/net/sf/l2j/Config.java	(working copy)
    @@ -154,6 +154,8 @@
        public static boolean 	ALT_GAME_KARMA_PLAYER_CAN_SHOP;
        public static boolean 	ALT_GAME_KARMA_PLAYER_CAN_TELEPORT;
        public static boolean 	ALT_GAME_KARMA_PLAYER_CAN_USE_GK;
    +    public static boolean 	ALT_GAME_FLAGED_PLAYER_CAN_USE_GK;
        public static boolean 	ALT_GAME_KARMA_PLAYER_CAN_TRADE;
        public static boolean 	ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE;
        public static boolean	IS_CRAFTING_ENABLED;
    @@ -1186,6 +1188,8 @@
                    ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE	= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanBeKilledInPeaceZone", "false"));
                    ALT_GAME_KARMA_PLAYER_CAN_SHOP		= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanShop", "true"));
                    ALT_GAME_KARMA_PLAYER_CAN_TELEPORT	= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanTeleport", "true"));
    +                ALT_GAME_FLAGED_PLAYER_CAN_USE_GK	= Boolean.parseBoolean(Character.getProperty("AltFlagedPlayerCanUseGK", "false"));
                    ALT_GAME_KARMA_PLAYER_CAN_USE_GK	= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanUseGK", "false"));
                    ALT_GAME_KARMA_PLAYER_CAN_TRADE		= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanTrade", "true"));
                    ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE	= Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanUseWareHouse", "true"));
    @@ -2092,6 +2096,8 @@
            else if (pName.equalsIgnoreCase("AltKarmaPlayerCanShop")) ALT_GAME_KARMA_PLAYER_CAN_SHOP = Boolean.parseBoolean(pValue);
            else if (pName.equalsIgnoreCase("AltKarmaPlayerCanUseGK")) ALT_GAME_KARMA_PLAYER_CAN_USE_GK = Boolean.parseBoolean(pValue);
            else if (pName.equalsIgnoreCase("AltKarmaPlayerCanTeleport")) ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Boolean.parseBoolean(pValue);
    +        else if (pName.equalsIgnoreCase("AltFlagedPlayerCanUseGK")) ALT_GAME_FLAGED_PLAYER_CAN_USE_GK = Boolean.parseBoolean(pValue);
            else if (pName.equalsIgnoreCase("AltKarmaPlayerCanTrade")) ALT_GAME_KARMA_PLAYER_CAN_TRADE = Boolean.parseBoolean(pValue);
            else if (pName.equalsIgnoreCase("AltKarmaPlayerCanUseWareHouse")) ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(pValue);
            else if (pName.equalsIgnoreCase("AltRequireCastleForDawn")) ALT_GAME_REQUIRE_CASTLE_DAWN = Boolean.parseBoolean(pValue);
    Index: java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java	(revision 2444)
    +++ java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java	(working copy)
    @@ -227,6 +227,11 @@
    				player.sendPacket(new SystemMessage(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE));
    				return;
    			}
    +			else if (!Config.ALT_GAME_FLAGED_PLAYER_CAN_USE_GK && player.getPvpFlag() > 0)
    +			{
    +				player.sendMessage("Don't run from PvP!");
    +				return;
    +			}
    			else if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && player.getKarma() > 0) //karma
    			{
    				player.sendMessage("Go away, you're not welcome here.");

     

    (Compile without any errors but nothing happend in game).

     

    Ranks Titles Based on PVP Points:

     

     

    Index: /home/sauron3256/eclipse/workspace/L2_GameServer/java/config/l2jmods.properties
    ===================================================================
    --- /home/sauron3256/eclipse/workspace/L2_GameServer/java/config/l2jmods.properties	(revision 3178)
    +++ /home/sauron3256/eclipse/workspace/L2_GameServer/java/config/l2jmods.properties	(working copy)
    @@ -229,4 +229,63 @@
    # This option will enable core support for:
    # Mana Drug (item ID 726), using skill ID 9007.
    # Mana Potion (item ID 728), using skill ID 9008.
    -EnableManaPotionSupport = False
    \ No newline at end of file
    +EnableManaPotionSupport = False
    +
    +# ---------------------------------------
    +# Section: PvP Title Color Change System by Level
    +# ---------------------------------------
    +# Each Amount will change the title content and color to the values defined here.
    +# Example: PvpAmount1 = 20, when a character's PvP counter reaches 20
    +# their title color and content will change according to the ColorForAmount value.
    +# Note: Colors Must Be in RBG format.
    +EnablePvPColorSystem = false
    +
    +# Pvp Amount, Title & color level 1.
    +PvpAmount1 = 20
    +ColorForAmount1 = 00FF00
    +TitleForAmount1 = Warrior
    +
    +# Pvp Amount, Title & color level 2.
    +PvpAmount2 = 80
    +ColorForAmount2 = 00FF00
    +TitleForAmount2 = Soldier
    +
    +# Pvp Amount, Title & color level 3.
    +PvpAmount3 = 140
    +ColorForAmount3 = 00FF00
    +TitleForAmount3 = Elite Soldier
    +
    +# Pvp Amount, Title & color level 4.
    +PvpAmount4 = 190
    +ColorForAmount4 = 00FF00
    +TitleForAmount4 = Gladiator
    +
    +# Pvp Amount, Title & color level 5.
    +PvpAmount5 = 290
    +ColorForAmount5 = 00FF00
    +TitleForAmount1 = Veteran
    +
    +# Pvp Amount, Title & color level 6.
    +PvpAmount6 = 390
    +ColorForAmount6 = 00FF00
    +TitleForAmount6 = Champion
    +
    +# Pvp Amount, Title & color level 7.
    +PvpAmount7 = 500
    +ColorForAmount7 = 00FF00
    +TitleForAmount7 = Commander
    +
    +# Pvp Amount, Title & color level 8.
    +PvpAmount8 = 650
    +ColorForAmount8 = 00FF00
    +TitleForAmount8 = Master
    +
    +# Pvp Amount, Title & color level 9.
    +PvpAmount9 = 800
    +ColorForAmount9 = 00FF00
    +TitleForAmount9 = Assassin
    +
    +# Pvp Amount, Title & color level 10.
    +PvpAmount10 = 1000
    +ColorForAmount10 = 00FF00
    +TitleForAmount10 = Hero
    Index: /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/Config.java
    ===================================================================
    --- /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/Config.java	(revision 3178)
    +++ /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/Config.java	(working copy)
    @@ -576,6 +576,39 @@
    	public static int OFFLINE_NAME_COLOR;
    	public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
    
    +	/** Config options allowing the PvP name color Engine. */
    +	public static boolean	PVP_TITLE_AND_COLOR_SYSTEM_ENABLED;
    +	public static int		PVP_AMOUNT1;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT1;
    +	public static String	PVP1_TITLE;
    +	public static int		PVP_AMOUNT2;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT2;
    +	public static String	PVP2_TITLE;
    +	public static int		PVP_AMOUNT3;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT3;
    +	public static String	PVP3_TITLE;
    +	public static int		PVP_AMOUNT4;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT4;
    +	public static String	PVP4_TITLE;
    +	public static int		PVP_AMOUNT5;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT5;
    +	public static String	PVP5_TITLE;
    +	public static int		PVP_AMOUNT6;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT6;
    +	public static String	PVP6_TITLE;
    +	public static int		PVP_AMOUNT7;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT7;
    +	public static String	PVP7_TITLE;
    +	public static int		PVP_AMOUNT8;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT8;
    +	public static String	PVP8_TITLE;
    +	public static int		PVP_AMOUNT9;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT9;
    +	public static String	PVP9_TITLE;
    +	public static int		PVP_AMOUNT10;
    +	public static int		TITLE_COLOR_FOR_PVP_AMOUNT10;
    +	public static String	PVP10_TITLE;
    +	public static int		PVP_AMOUNT11;
    
    	//--------------------------------------------------
    	// NPC Settings
    @@ -1701,6 +1734,40 @@
    					L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
    					L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
    
    +		    		// PVP Title & Color System configs - Start
    +					PVP_TITLE_AND_COLOR_SYSTEM_ENABLED      = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false"));
    +	    			PVP_AMOUNT1                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "20"));
    +	    			TITLE_COLOR_FOR_PVP_AMOUNT1             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00"));
    +					PVP1_TITLE                              = L2JModSettings.getProperty("TitleForAmount1", "Warrior");
    +	            	PVP_AMOUNT2                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "80"));
    +	            	TITLE_COLOR_FOR_PVP_AMOUNT2             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00"));
    +					PVP2_TITLE                              = L2JModSettings.getProperty("TitleForAmount2", "Soldier");
    +	            	PVP_AMOUNT3                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "140"));
    +	            	TITLE_COLOR_FOR_PVP_AMOUNT3             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00"));
    +					PVP3_TITLE                              = L2JModSettings.getProperty("TitleForAmount3", "Elite Soldier");
    +	        		PVP_AMOUNT4                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "190"));
    +	        		TITLE_COLOR_FOR_PVP_AMOUNT4             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
    +					PVP4_TITLE                              = L2JModSettings.getProperty("TitleForAmount4", "Gladiator");
    +	        		PVP_AMOUNT5                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "290"));
    +	        		TITLE_COLOR_FOR_PVP_AMOUNT5             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount5", "00FF00"));
    +					PVP5_TITLE                              = L2JModSettings.getProperty("TitleForAmount5", "Veteran");
    +	    			PVP_AMOUNT6                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount6", "390"));
    +	    			TITLE_COLOR_FOR_PVP_AMOUNT6             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount6", "00FF00"));
    +					PVP6_TITLE                              = L2JModSettings.getProperty("TitleForAmount6", "Champion");
    +	            	PVP_AMOUNT7                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount7", "500"));
    +	            	TITLE_COLOR_FOR_PVP_AMOUNT7             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount7", "00FF00"));
    +					PVP7_TITLE                              = L2JModSettings.getProperty("TitleForAmount7", "Commander");
    +	            	PVP_AMOUNT8                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount8", "650"));
    +	            	TITLE_COLOR_FOR_PVP_AMOUNT8             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount8", "00FF00"));
    +					PVP8_TITLE                              = L2JModSettings.getProperty("TitleForAmount8", "Master");
    +	        		PVP_AMOUNT9                            = Integer.parseInt(L2JModSettings.getProperty("PvpAmount9", "800"));
    +	        		TITLE_COLOR_FOR_PVP_AMOUNT9            = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount9", "00FF00"));
    +					PVP9_TITLE                              = L2JModSettings.getProperty("TitleForAmount9", "Assassin");
    +	        		PVP_AMOUNT10                             = Integer.parseInt(L2JModSettings.getProperty("PvpAmount10", "1000"));
    +	        		TITLE_COLOR_FOR_PVP_AMOUNT10             = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount10", "00FF00"));
    +					PVP10_TITLE                              = L2JModSettings.getProperty("TitleForAmount10", "Hero");
    +	             	// PvP Title & Color System configs - End
    +
    					if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
    					{
    						TVT_EVENT_ENABLED = false;
    Index: /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
    ===================================================================
    --- /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 3178)
    +++ /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
    @@ -4119,7 +4119,70 @@
            	DuelManager.getInstance().broadcastToOppositTeam(this, update);
            }
    	}
    -    
    +
    +	// Custom PVP Color System - Start
    +	public void updatePvPTitleColor(int pvpKillAmount)
    +	{
    +		if (Config.PVP_TITLE_AND_COLOR_SYSTEM_ENABLED)
    +		{
    +			//Check if the character has GM access and if so, let them be.
    +			if (isGM())
    +				return;
    +			{
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount < (Config.PVP_AMOUNT2)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1);
    +					setTitle(Config.PVP1_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount < (Config.PVP_AMOUNT3)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2);
    +					setTitle(Config.PVP2_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount < (Config.PVP_AMOUNT4)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3);
    +					setTitle(Config.PVP3_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount < (Config.PVP_AMOUNT5)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4);
    +					setTitle(Config.PVP4_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT5)) && (pvpKillAmount < (Config.PVP_AMOUNT6)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5);
    +					setTitle(Config.PVP5_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT6)) && (pvpKillAmount < (Config.PVP_AMOUNT7)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT6);
    +					setTitle(Config.PVP6_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT7)) && (pvpKillAmount < (Config.PVP_AMOUNT8)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT7);
    +					setTitle(Config.PVP7_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT8)) && (pvpKillAmount < (Config.PVP_AMOUNT9)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT8);
    +					setTitle(Config.PVP8_TITLE);
    +				}
    +				if ((pvpKillAmount >= (Config.PVP_AMOUNT9)) && (pvpKillAmount < (Config.PVP_AMOUNT10)))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT9);
    +					setTitle(Config.PVP9_TITLE);
    +				}
    +				else if (pvpKillAmount >= (Config.PVP_AMOUNT10))
    +				{
    +					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT10);
    +				}
    +			}
    +		}
    +	}
    +	//Custom PVP Color System - End
    +
    	/**
    	 * Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers.<BR><BR>
    	 *
    @@ -5399,7 +5462,11 @@
        {
            // Add karma to attacker and increase its PK counter
            setPvpKills(getPvpKills() + 1);
    -
    +            
    +        //Update the character's title content and color if they reached any of the 10 PvP levels.
    +        updatePvPTitleColor(getPvpKills());
    +        broadcastUserInfo();
    +        
            // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
            sendPacket(new UserInfo(this));
            sendPacket(new ExBrExtraUserInfo(this));
    Index: /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
    ===================================================================
    --- /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(revision 3178)
    +++ /home/sauron3256/eclipse/workspace/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java	(working copy)
    @@ -300,7 +300,13 @@
    		Quest.playerEnter(activeChar);
    		activeChar.sendPacket(new QuestList());
    		loadTutorial(activeChar);
    -
    +		
    +        /* PvP color & title System checks - Start
    +           Check if the PvP color & title system is enabled and if so
    +           check the character's counters and apply any changes that must be done. =*/
    +        if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_TITLE_AND_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPTitleColor(activeChar.getPvpKills());
    +        /* PvP color & title System checks - End */
    +         
    		if (Config.PLAYER_SPAWN_PROTECTION > 0)
    			activeChar.setProtection(true);

     

    (Compile without errors but nothing happend in game).

     

    I m wroking with Last Rev getting from SVN with Eclipse, i m really interesting in this 3 things if somebody can help will great... thx for read.

     

    PD: I make the usual compile take the Java.jar from the wrkspace Build directory and paste it in C:/server/gamserver later i put up the server but nothing happend any of this things work, i m thinking maybe can be why need use Java JDK and Eclipse 64 Bits i don't know i m really fucked with this.

  5. Somebody have this working for the last Rev?

     

    version=${l2jdp.revision}

          builddate=20091111_1902

          detailed info:

                committed-rev="6774"

                name=""

                committed-date="2009-11-02T18:47:02.537745Z"

     

    version=${l2j.revision}

        builddate=20091111_1851

          detailed info:

                committed-rev="3694"

                name=""

                committed-date="2009-11-03T10:08:06.579692Z"

     

    With this code i compile without problems but in game not give any reward...  :-\

  6. Hi all, i was with my server up without problem this days but yesterday my bro buy a other PCP so now i m using a Router "ENCORE ENHI-G3".

     

    The method what i was isin brfore buy the ROUTER for connect to my server and the ppl was:

     

    1- I use NO-IP, Edit the l2.ini and put the direction in LOGIN AND SERVER:

     

    ggggggk.th.jpg

     

    ffffx.th.jpg

     

    With this method i always put up the server without problems, i can Join and my friends to, no need modify host why the ini is modify obviusly. But now with the -beep-ing Router the ini not work i mean the only way for i can Join in the server is changing ServerAddr=l2warmachine.no-ip.biz to ServerAddr=127.0.0.1 and offcorse my friends or any other ppl can't join -.-

     

    I don't undersand too much about Routers is the first time i have one i was learning some i put my screens (i have a MODEM ADSL "Ethernet" and this go conected to the Router and the Router give inet for every PC):

     

    nnnnm.th.jpg

     

    nnmmmm.th.jpg

     

    bbbbbx.th.jpg

     

    I think in open the ports but in the image seem to be desactivated the firewall..

     

    ----------------------------------------------------------------------------------------------------------------------------

     

    Edit: Problem Fixed! (was needed open the ports).

     

    PD: Specials thx to "CopyLeft".

     

  7. I try with:

     

    if (activeChar.isDisarmed())

                           {

                               activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));

                               return;

                           }

                           

                         //Begining the script

                                    if (activeChar.getClassId().getId() == 114)

                                    {

                                       if (item.getItemType() == L2ArmorType.HEAVY)

                                       {

                                          activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));

                                          return;

                                       }  

                                    }

                           

                           // Don't allow weapon/shield equipment if a cursed weapon is equiped

     

    Compile without problems but not work -.-

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

     

    with this i think u cant even wear it, but it works

    and u didnt post what server pack you have and what cronicle

     

    My Rev:

     

    l2jdp = committed-rev="6174"

    l2j = committed-rev="3102"

     

    Gracia Final.

     

    The code say:

     

    if (item.isEquipable())

         {

            if (activeChar.isDisarmed())

               return;

     

            if (!((L2Equip) item.getItem()).allowEquip(activeChar))  (This line is not in my code).

            {

               activeChar.sendPacket(new SystemMessage(SystemMessageId.NO_CONDITION_TO_EQUIP));

               return;

            }

     

    But in the mine:

     

    if (activeChar.isDisarmed())

                           {

                               activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));

                               return;

                           }

                           

                           // Don't allow weapon/shield equipment if a cursed weapon is equiped

                           if (activeChar.isCursedWeaponEquipped())

                           {

                               return;

                           }

                           

  9. My Rev.

     

    version=${l2jdp.revision} committed-rev="6174"

    version=${l2j.revision} committed-rev="3102"

           

     

    Somebody can shre the code but modify for change "TITLES", no nick.

     

    Example:

     

    portablebuffscv4.jpg

     

    I don't care the flute, i only wanna the customs titles, i really need this if someboady can help me will be great...

     

    i have this code but i get a lot of errors in eclipse:

     

    Index: L2PcInstance.java
    ===================================================================
    --- L2PcInstance.java   (revision 5686)
    +++ L2PcInstance.java   (working copy)
    @@ -294,7 +294,14 @@
        // Character Transformation SQL String Definitions:
        private static final String SELECT_CHAR_TRANSFORM           = "SELECT transform_id FROM characters WHERE charId=?";
        private static final String UPDATE_CHAR_TRANSFORM           = "UPDATE characters SET transform_id=? WHERE charId=?";
    +   
    +   // Custom Title settings for pvp kills
    +   private static final String title1 = "Title for 20 pvpkills";
    +   private static final String title2 = "Title for 80 pvpkills";
    +   private static final String title3 = "Title for 120 pvpkills";
    +   private static final String title4 = "Title for 190 pvpkills";
    +   private static final String title5 = "Title for 290 pvpkills";
    +   private static final String title6 = "Title for 390 pvpkills";
    +   private static final String title7 = "Title for 500 pvpkills";
    +   private static final String title8 = "Title for 650 pvpkills";
    +   private static final String title9 = "Title for 800 pvpkills";
    +   private static final String title10 = "Title for 1000 pvpkills";
    
    +   
        public static final int     REQUEST_TIMEOUT                 = 15;
    
        public static final int     STORE_PRIVATE_NONE              = 0;
    @@ -531,7 +538,15 @@
    
        private long                            _onlineTime;
        private long                            _onlineBeginTime;
    +   
    +   //Custom Title customization
    +   public int                              _pvppoints;
    +   int pvpamount1                          = 20;
    +   int pvpamount2                          = 80;
    +   int pvpamount3                          = 120;
    +   int pvpamount4                          = 190;
    +   int pvpamount5                          = 290;
    +   int pvpamount6                          = 390;
    +   int pvpamount7                          = 500;
    +   int pvpamount8                          = 650;
    +   int pvpamount9                          = 800;
    +   int pvpamount10                          = 1000;
    
    +
        //GM Stuff
        private boolean                         _isGm;
        private int                             _accessLevel;
    @@ -9276,6 +9291,7 @@
    
        public void updateNameTitleColor()
        {
    +       L2PcInstance player = null;
            if (isGM())
            {
                if (Config.GM_NAME_COLOR_ENABLED)
    @@ -9314,6 +9330,25 @@
                getAppearance().setNameColor(0xFFFFFF);
                getAppearance().setTitleColor(0xFFFF77);
            }
    +      
    +       _pvppoints = player.getPvPKills();
    +       if(_pvppoints >= pvpamount1)
    +       {
    +           activeChar.getAppearance().setTitle("Warrior");
    +       }
    +       if(_pvppoints >= pvpamount2)
    +       {
    +           activeChar.getAppearance().setTitle("Soldier");
    +       }
    +       if(_pvppoints >= pvpamount3)
    +       {
    +           activeChar.getAppearance().setTitle("Elite Soldier");
    +       }
    +       if(_pvppoints >= pvpamount4)
    +       {
    +           activeChar.getAppearance().setTitle("Gladiator");
    +       }
    +       if(_pvppoints >= pvpamount5)
    +       {
    +           activeChar.getAppearance().setTitle("Veteran");
    +       }
    +       if(_pvppoints >= pvpamount6)
    +       {
    +           activeChar.getAppearance().setTitle("Champion");
    +       }
    +       if(_pvppoints >= pvpamount7)
    +       {
    +           activeChar.getAppearance().setTitle("Commander");
    +       }
    +       if(_pvppoints >= pvpamount8)
    +       {
    +           activeChar.getAppearance().setTitle("Master");
    +       }
    +       if(_pvppoints >= pvpamount9)
    +       {
    +           activeChar.getAppearance().setTitle("Assassin");
    +       }
    +       if(_pvppoints >= pvpamount10)
    +       {
    +           activeChar.getAppearance().setTitle("Hero");
    +       }
    +
            broadcastUserInfo();
        }
    
    
    
    
    
    
    
    Index: EnterWorld.java
    ===================================================================
    --- EnterWorld.java (revision 5686)
    +++ EnterWorld.java (working copy)
    @@ -92,6 +92,15 @@
    {
        private static final String _C__03_ENTERWORLD   = "[C] 03 EnterWorld";
        private final static Log    _log                = LogFactory.getLog(EnterWorld.class.getName());
    +   int pvpoints = 0;
    +   int pvpamount1 = 20;
    +   int pvpamount2 = 80;
    +   int pvpamount3 = 120;
    +   int pvpamount4 = 190;
    +   int pvpamount5 = 290;
    +   int pvpamount6 = 390;
    +   int pvpamount7 = 500;
    +   int pvpamount8 = 650;
    +   int pvpamount9 = 800;
    +   int pvpamount10 = 1000;
    +   private static final String title1 = "Title for 20 pvpkills";
    +   private static final String title2 = "Title for 80 pvpkills";
    +   private static final String title3 = "Title for 120 pvpkills";
    +   private static final String title4 = "Title for 190 pvpkills";
    +   private static final String title5 = "Title for 290 pvpkills";
    +   private static final String title6 = "Title for 390 pvpkills";
    +   private static final String title7 = "Title for 500 pvpkills";
    +   private static final String title8 = "Title for 650 pvpkills";
    +   private static final String title9 = "Title for 800 pvpkills";
    +   private static final String title10 = "Title for 1000 pvpkills";
    
        public TaskPriority getPriority()
        {
    @@ -184,6 +193,24 @@
                if (Config.CHAR_VIP_COLOR_ENABLED)
                    activeChar.getAppearance().setNameColor(Config.CHAR_VIP_COLOR);
            }
    +      
    +       pvppoints = activeChar.getPvPKills();
    +       if(pvppoints >= pvpamount1)
    +       {
    +           activeChar.getAppearance().setTitle("Warrior");
    +       }
    +       if(pvppoints >= pvpamount2)
    +       {
    +           activeChar.getAppearance().setTitle("Soldier");
    +       }
    +       if(pvppoints >= pvpamount3)
    +       {
    +           activeChar.getAppearance().setTitle("Elite Soldier");
    +       }
    +       if(pvppoints >= pvpamount4)
    +       {
    +           activeChar.getAppearance().setTitle("Gladiator");
    +       }
    +       if(pvppoints >= pvpamount5)
    +       {
    +           activeChar.getAppearance().setTitle("Veteran");
    +       }
    +       if(pvppoints >= pvpamount6)
    +       {
    +           activeChar.getAppearance().setTitle("Champion");
    +       }
    +       if(pvppoints >= pvpamount7)
    +       {
    +           activeChar.getAppearance().setTitle("Commander");
    +       }
    +       if(pvppoints >= pvpamount8)
    +       {
    +           activeChar.getAppearance().setTitle("Master");
    +       }
    +       if(pvppoints >= pvpamount9)
    +       {
    +           activeChar.getAppearance().setTitle("Assasin");
    +       }
    +       if(pvppoints >= pvpamount10)
    +       {
    +           activeChar.getAppearance().setTitle("Hero");
    +       }
    
    
            if (activeChar.getStatus().getCurrentHp() < 0.5) // is dead
                activeChar.setIsDead(true);
    
    

  10. Ok what think about this?

     

     

    Index: L2PcInstance.java
    ===================================================================
    --- L2PcInstance.java   (revision 5686)
    +++ L2PcInstance.java   (working copy)
    @@ -294,7 +294,14 @@
        // Character Transformation SQL String Definitions:
        private static final String SELECT_CHAR_TRANSFORM           = "SELECT transform_id FROM characters WHERE charId=?";
        private static final String UPDATE_CHAR_TRANSFORM           = "UPDATE characters SET transform_id=? WHERE charId=?";
    +   
    +   // Custom Title settings for pvp kills
    +   private static final String title1 = "Title for 20 pvpkills";
    +   private static final String title2 = "Title for 80 pvpkills";
    +   private static final String title3 = "Title for 120 pvpkills";
    +   private static final String title4 = "Title for 190 pvpkills";
    +   private static final String title5 = "Title for 290 pvpkills";
    +   private static final String title6 = "Title for 390 pvpkills";
    +   private static final String title7 = "Title for 500 pvpkills";
    +   private static final String title8 = "Title for 650 pvpkills";
    +   private static final String title9 = "Title for 800 pvpkills";
    +   private static final String title10 = "Title for 1000 pvpkills";
    
    +   
        public static final int     REQUEST_TIMEOUT                 = 15;
    
        public static final int     STORE_PRIVATE_NONE              = 0;
    @@ -531,7 +538,15 @@
    
        private long                            _onlineTime;
        private long                            _onlineBeginTime;
    +   
    +   //Custom Title customization
    +   public int                              _pvppoints;
    +   int pvpamount1                          = 20;
    +   int pvpamount2                          = 80;
    +   int pvpamount3                          = 120;
    +   int pvpamount4                          = 190;
    +   int pvpamount5                          = 290;
    +   int pvpamount6                          = 390;
    +   int pvpamount7                          = 500;
    +   int pvpamount8                          = 650;
    +   int pvpamount9                          = 800;
    +   int pvpamount10                          = 1000;
    
    +
        //GM Stuff
        private boolean                         _isGm;
        private int                             _accessLevel;
    @@ -9276,6 +9291,7 @@
    
        public void updateNameTitleColor()
        {
    +       L2PcInstance player = null;
            if (isGM())
            {
                if (Config.GM_NAME_COLOR_ENABLED)
    @@ -9314,6 +9330,25 @@
                getAppearance().setNameColor(0xFFFFFF);
                getAppearance().setTitleColor(0xFFFF77);
            }
    +      
    +       _pvppoints = player.getPvPKills();
    +       if(_pvppoints >= pvpamount1)
    +       {
    +           activeChar.getAppearance().setTitle(Warrior);
    +       }
    +       if(_pvppoints >= pvpamount2)
    +       {
    +           activeChar.getAppearance().setTitle(Soldier);
    +       }
    +       if(_pvppoints >= pvpamount3)
    +       {
    +           activeChar.getAppearance().setTitle(Elite Soldier);
    +       }
    +       if(_pvppoints >= pvpamount4)
    +       {
    +           activeChar.getAppearance().setTitle(Gladiator);
    +       }
    +       if(_pvppoints >= pvpamount5)
    +       {
    +           activeChar.getAppearance().setTitle(Veteran);
    +       }
    +       if(_pvppoints >= pvpamount6)
    +       {
    +           activeChar.getAppearance().setTitle(Champion);
    +       }
    +       if(_pvppoints >= pvpamount7)
    +       {
    +           activeChar.getAppearance().setTitle(Commander);
    +       }
    +       if(_pvppoints >= pvpamount8)
    +       {
    +           activeChar.getAppearance().setTitle(Master);
    +       }
    +       if(_pvppoints >= pvpamount9)
    +       {
    +           activeChar.getAppearance().setTitle(Assassin);
    +       }
    +       if(_pvppoints >= pvpamount10)
    +       {
    +           activeChar.getAppearance().setTitle(Hero);
    +       }
    +
            broadcastUserInfo();
        }

     

     

     

     

    Index: EnterWorld.java
    ===================================================================
    --- EnterWorld.java (revision 5686)
    +++ EnterWorld.java (working copy)
    @@ -92,6 +92,15 @@
    {
        private static final String _C__03_ENTERWORLD   = "[C] 03 EnterWorld";
        private final static Log    _log                = LogFactory.getLog(EnterWorld.class.getName());
    +   int pvpoints = 0;
    +   int pvpamount1 = 20;
    +   int pvpamount2 = 80;
    +   int pvpamount3 = 120;
    +   int pvpamount4 = 190;
    +   int pvpamount5 = 290;
    +   int pvpamount6 = 390;
    +   int pvpamount7 = 500;
    +   int pvpamount8 = 650;
    +   int pvpamount9 = 800;
    +   int pvpamount10 = 1000;
    +   private static final String title1 = "Title for 20 pvpkills";
    +   private static final String title2 = "Title for 80 pvpkills";
    +   private static final String title3 = "Title for 120 pvpkills";
    +   private static final String title4 = "Title for 190 pvpkills";
    +   private static final String title5 = "Title for 290 pvpkills";
    +   private static final String title6 = "Title for 390 pvpkills";
    +   private static final String title7 = "Title for 500 pvpkills";
    +   private static final String title8 = "Title for 650 pvpkills";
    +   private static final String title9 = "Title for 800 pvpkills";
    +   private static final String title10 = "Title for 1000 pvpkills";
    
        public TaskPriority getPriority()
        {
    @@ -184,6 +193,24 @@
                if (Config.CHAR_VIP_COLOR_ENABLED)
                    activeChar.getAppearance().setNameColor(Config.CHAR_VIP_COLOR);
            }
    +      
    +       pvppoints = activeChar.getPvPKills();
    +       if(pvppoints >= pvpamount1)
    +       {
    +           activeChar.getAppearance().setTitle(Warrior);
    +       }
    +       if(pvppoints >= pvpamount2)
    +       {
    +           activeChar.getAppearance().setTitle(Soldier);
    +       }
    +       if(pvppoints >= pvpamount3)
    +       {
    +           activeChar.getAppearance().setTitle(Elite Soldier);
    +       }
    +       if(pvppoints >= pvpamount4)
    +       {
    +           activeChar.getAppearance().setTitle(Gladiator);
    +       }
    +       if(pvppoints >= pvpamount5)
    +       {
    +           activeChar.getAppearance().setTitle(Veteran);
    +       }
    +       if(pvppoints >= pvpamount6)
    +       {
    +           activeChar.getAppearance().setTitle(Champion);
    +       }
    +       if(pvppoints >= pvpamount7)
    +       {
    +           activeChar.getAppearance().setTitle(Commander);
    +       }
    +       if(pvppoints >= pvpamount8)
    +       {
    +           activeChar.getAppearance().setTitle(Master);
    +       }
    +       if(pvppoints >= pvpamount9)
    +       {
    +           activeChar.getAppearance().setTitle(Assasin);
    +       }
    +       if(pvppoints >= pvpamount10)
    +       {
    +           activeChar.getAppearance().setTitle(Hero);
    +       }
    
    
            if (activeChar.getStatus().getCurrentHp() < 0.5) // is dead
                activeChar.setIsDead(true);

     

    How can i make a copy of my files in wrokspace why maybe something go worng i not wanna lose all and need make a ll again -.-

     

    or like you say ZUNIX if i made a new .java in l2PCinstance and i put all this there? please some clearify is the first time i will try to modify the GS in eclipse.

×
×
  • Create New...