Assassina Posted June 12, 2010 Posted June 12, 2010 this is the best guide for compiling i mean maven is not good nothing is good only eclipse and this is the best guide for it ;) Quote
HardstyleMxc Posted June 14, 2010 Posted June 14, 2010 Usefull guide make video tutorial how to aplly java patch thnx !! :) Quote
pelopidas Posted June 15, 2010 Posted June 15, 2010 Very good Guide and easy to understand!!!Gj Quote
TheVision Posted June 16, 2010 Posted June 16, 2010 Hi! Guide is really good but can you please tell me becuase http://svn.assembla.com/svn/L2J-Archid doesn't work anymore ;( RA layer request failed svn: Server sent unexpected return value (405 Method Not Allowed) in response to PROPFIND request for '/svn/L2J-Archid' Is there other way to get Ready L2J-Archid file trhat i just need to add to DB set rates and connection and lauch ? Quote
Matim Posted June 16, 2010 Posted June 16, 2010 L2JArchid is private now, you can use Old Archid SVN[/ulr]. Quote
ExTrEmEDwarf Posted June 19, 2010 Author Posted June 19, 2010 THE NEXT ONE THAT IS GOING TO LEECH MY GUIDES FIRST PM ME AND ASK ME FOR MY PERMISSION. Quote
Matim Posted June 19, 2010 Posted June 19, 2010 amazing how i can send you +1 Karma?? Normal Memers are not able to add karma. Quote
removed_001 Posted June 21, 2010 Posted June 21, 2010 the whole thing is.... hmm anyone can tell me he svn from the L2J Gracia Final?? Only L2J not L2J-Free Neither L2J-BRASIL plz i am in grat need!!! Quote
Matim Posted June 21, 2010 Posted June 21, 2010 the whole thing is.... hmm anyone can tell me he svn from the L2J Gracia Final?? Only L2J not L2J-Free Neither L2J-BRASIL plz i am in grat need!!! I can hardly understand you, but take a look at branch folder from svn. Quote
dachi15 Posted June 27, 2010 Posted June 27, 2010 i have 1 question what to do with l2j server? lol same question for only l2j java server. wait i dont understand what to do next if i compile or something then i want to add something in this site all are for java things like pvp rewards and something like that how to add that things?? and where to add? Quote
Matim Posted June 27, 2010 Posted June 27, 2010 Next person which I can hardly understand. 1. Add your codes 2. Compile 3. Replace compiled files 4. If you wish to add another code in future - repeat these steps. Quote
dachi15 Posted June 27, 2010 Posted June 27, 2010 yeah where add codes? :D Index: D:/Aqua/mid-core/config/pvp.properties =================================================================== --- D:/Aqua/mid-core/config/pvp.properties (revision 5153) +++ D:/Aqua/mid-core/config/pvp.properties (working copy) @@ -41,4 +41,29 @@ # Length one stays in PvP mode after hitting a purple player (in ms) PvPVsPvPTime = 60000 -CursedWeaponNpcInteract = False \ No newline at end of file +CursedWeaponNpcInteract = False + +# ------------------------------------------------------------- +# Costum PVP/PK settings +# ------------------------------------------------------------- +# Costum pvp/pk message +# after pvp: "Good fight,enemy pwned:)" +# after pk: "Nice kill!You are so dangerous!" +AllowCostumPvPMessage = True +# Pvp reward system +AllowPvpRewardSystem = False +# Pvp reward itemId +PvpRewardItem = 57 +# Pvp reward amount +PvpRewardAmount = 1 +# Pk reward system +AllowPkRewardSystem = False +# Pk reward itemId +PkRewardItem = 57 +# Pk reward amount +PkRewardAmount = 1 +# Allow the default PK system(+1 pk,+karma) +UseDefaultSystem = True +# Allow costum pk system (pvp point for pk,no karma) +# UseDefaultSystem need to be False! +UseCostumSystem = False \ No newline at end of file Index: D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java (revision 5153) +++ D:/Aqua/mid-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -5325,7 +5325,16 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); - + if(Config.ALLOW_PVP_REWARD) + { + // Item Reward system + addItem("Loot", Config.PVP_REWARD_ITEM, Config.PVP_REWARD_COUNT, this, true); + sendMessage("You will be rewarded for pvp kill!"); + } + if(Config.COSTUM_MSG_ALLOWED) + { + sendMessage("Good fight,enemy pwned:)"); + } // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } @@ -5380,9 +5389,25 @@ newKarma = Integer.MAX_VALUE - getKarma(); // Add karma to attacker and increase its PK counter - setPkKills(getPkKills() + 1); - setKarma(getKarma() + newKarma); - + if(Config.DEFAULT_PK_SYSTEM) + { + setPkKills(getPkKills() + 1); + setKarma(getKarma() + newKarma); + } + if(Config.COSTUM_PK_SYSTEM) + { + setPvpKills(getPvpKills() + 1); + } + if(Config.ALLOW_PK_REWARD) + { + // Item Reward system + addItem("Loot", Config.PK_REWARD_ITEM, Config.PK_REWARD_COUNT, this, true); + sendMessage("You will be rewarded for pk kill!"); + } + if(Config.COSTUM_MSG_ALLOWED) + { + sendMessage("Nice kill!You are so dangerous!"); + } // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } Index: D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java =================================================================== --- D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java (revision 5153) +++ D:/Aqua/mid-core/src/main/java/com/l2jfree/Config.java (working copy) @@ -689,6 +689,16 @@ public static int PVP_PVP_TIME; // Duration (in ms) while a player stay in PVP mode // after hitting a purple player public static boolean CURSED_WEAPON_NPC_INTERACT; + + public static boolean COSTUM_MSG_ALLOWED; + public static boolean ALLOW_PVP_REWARD; + public static int PVP_REWARD_ITEM; + public static int PVP_REWARD_COUNT; + public static boolean ALLOW_PK_REWARD; + public static int PK_REWARD_ITEM; + public static int PK_REWARD_COUNT; + public static boolean DEFAULT_PK_SYSTEM; + public static boolean COSTUM_PK_SYSTEM; // ******************************************************************************************* public static void loadPvpConfig() @@ -732,6 +742,18 @@ PVP_PVP_TIME = Integer.parseInt(pvpSettings.getProperty("PvPVsPvPTime", "60000")); PVP_TIME = PVP_NORMAL_TIME; CURSED_WEAPON_NPC_INTERACT = Boolean.parseBoolean(pvpSettings.getProperty("CursedWeaponNpcInteract", "false")); + + //Costum PVP/PK Message - Start + COSTUM_MSG_ALLOWED = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowCostumPvPMessage", "True")); + ALLOW_PVP_REWARD = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowPvpRewardSystem", "False")); + PVP_REWARD_ITEM = Integer.parseInt(IntrepidSettings.getProperty("PvpRewardItem", "57")); + PVP_REWARD_COUNT = Integer.parseInt(IntrepidSettings.getProperty("PvpRewardAmount", "1")); + ALLOW_PK_REWARD = Boolean.parseBoolean(IntrepidSettings.getProperty("AllowPkRewardSystem", "False")); + PK_REWARD_ITEM = Integer.parseInt(IntrepidSettings.getProperty("PkRewardItem", "57")); + PK_REWARD_COUNT = Integer.parseInt(IntrepidSettings.getProperty("PkRewardAmount", "1")); + DEFAULT_PK_SYSTEM = Boolean.parseBoolean(IntrepidSettings.getProperty("UseDefaultSystem", "True")); + COSTUM_PK_SYSTEM = Boolean.parseBoolean(IntrepidSettings.getProperty("UseCostumSystem", "False")); + //Costum PVP/PK Message - End } catch (Exception e) please i want it very much explain where add this code then how to compile (i think i know how to do that) and then i think i know where files will be but just say anyways its just 1 problem i have compiled other version of server i have l2j and i have compiled OFF l2j i think :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.