
Vago
Legendary Member-
Posts
682 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Vago
-
1. Total english failure 2. C4...Fail 3. Try installing the latest java version 4. Check the way you configured the connections...
-
For hero voice to GMs replace in clientpackets.say2.java at line 314 if (activeChar.isHero()) with this if (activeChar.isHero() || (activeChar.isGM())) Also if you wanna disable the flood protector go to the next line and set the flood protection to 1...Like here This will make the flood protection 1 milisecond... have fun ^^
-
These russians are god damn fast =) Do they code day and night?:D
-
[Share]Security fix on enchants!
Vago replied to Vago's topic in Server Development Discussion [L2J]
This is enabled when you equip an item! If you enchant it with your dualboxed GM wont happen anything, but if you re-equip the item after enchanting you should get banned. About the other, more complex patch...I dont have a l2jfree version yet...I may make it whenever I get some free time...At the moment Im working to get interlude 100% fixed...lotta work :D -
[Share]Security fix on enchants!
Vago replied to Vago's topic in Server Development Discussion [L2J]
if (item.isEquipable()) { + if (!activeChar.isGM() && item.getEnchantLevel() > 50) + { + activeChar.setAccountAccesslevel(-666); + activeChar.sendMessage("You have been banned for using an item over +50!"); + activeChar.closeNetConnection(); + return; + } if (activeChar.isDisarmed()) return; In com.l2jfree.gameserver.network.clientpackets -
L2PcInstance.java...Line 1729 return (int)calcStat(Stats.MAX_LOAD, baseLoad*XYZ, this, null); Instead of XYZ add how much you want to multiply the weight limmit with. If you dont know how to complie or change a code, learn! Or quit having a server...I wont tell you how to do it! Go search
-
Not really a fix but its worth using if you got some real corrupt GMs ^^... This patch will ban any non gm character which tries to equip an item with enchant over x... go to gameserver.clientpackets.UseItem.java and after line 178 add this : if (!activeChar.isGM() && item.getEnchantLevel() > X) { activeChar.setAccountAccesslevel(-999); activeChar.sendMessage("You have been banned for using an item over +X!"); activeChar.closeNetConnection(); return; } NOTE! X is your max enchant! Ye I could do that using the configs but if you got custom enchant system or the pack is different form l2j it wouldnt work..So its better to hardcode it :) ============================================================ Index: E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java =================================================================== --- E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (revision 2252) +++ E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/skills/funcs/FuncEnchant.java (working copy) @@ -19,6 +19,7 @@ package net.sf.l2j.gameserver.skills.funcs; import net.sf.l2j.gameserver.model.L2ItemInstance; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.skills.Env; import net.sf.l2j.gameserver.skills.Stats; import net.sf.l2j.gameserver.templates.L2Item; @@ -38,11 +39,18 @@ { if (cond != null && !cond.test(env)) return; L2ItemInstance item = (L2ItemInstance) funcOwner; + int cristall = item.getItem().getCrystalType(); Enum itemType = item.getItemType(); if (cristall == L2Item.CRYSTAL_NONE) return; int enchant = item.getEnchantLevel(); + + if (env.player != null && env.player instanceof L2PcInstance) + { + if (!((L2PcInstance)env.player).isGM() && enchant > x) + enchant = x; + } int overenchant = 0; if (enchant > 3) Index: E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEnchant.java =================================================================== --- E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEnchant.java (revision 2252) +++ E:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminEnchant.java (working copy) @@ -18,6 +18,8 @@ */ package net.sf.l2j.gameserver.handler.admincommandhandlers; +import java.util.logging.Logger; + import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IAdminCommandHandler; import net.sf.l2j.gameserver.model.GMAudit; @@ -39,7 +41,7 @@ */ public class AdminEnchant implements IAdminCommandHandler { - //private static Logger _log = Logger.getLogger(AdminEnchant.class.getName()); + private static Logger _log = Logger.getLogger(AdminEnchant.class.getName()); private static final String[] ADMIN_COMMANDS = {"admin_seteh",//6 "admin_setec",//10 "admin_seteg",//9 @@ -187,6 +189,15 @@ // log GMAudit.auditGMAction(activeChar.getName(), "enchant", player.getName(), itemInstance.getItem().getName() + " from " + curEnchant + " to " + ench); + + if (!player.isGM() && ench > x) + { + _log.warning("GM: " + activeChar.getName() + " enchanted " + player.getName() + " item over the Limit."); + activeChar.setAccountAccesslevel(-100); + player.setAccountAccesslevel(-100); + player.closeNetConnection(); + activeChar.closeNetConnection(); + } } } NOTE! X is your max enchant! Ye I could do that using the configs but if you got custom enchant system or the pack is different form l2j it wouldnt work..So its better to hardcode it :) This is a second pack which is ment to be quite the same thing! If a GM enchants a player's item over X, it will ban both! Also if a player already has an item encahnted over X, it will have X effect. I mean if he has wep+100 and max is 50, the glow will be 100 but the status +50 ^^ Credits to nBd from l2j team ^^
-
Well this is for l2j ... Youre using l2jfree...so you need few touches... I'll try that event I dont use l2jfree :D
-
With this patch you will be able to set colors at an adjustable amount of pvp/pk points... Name color changes depend on pvp points and title color changes on pk points Index: /java/config/l2jmods.properties =================================================================== --- /java/config/l2jmods.properties (revision 174) +++ /java/config/l2jmods.properties (working copy) @@ -161,4 +161,62 @@ #---------------------------------- EnableWarehouseSortingClan = False EnableWarehouseSortingPrivate = False -EnableWarehouseSortingFreight = False \ No newline at end of file +EnableWarehouseSortingFreight = False + +# --------------------------------------- +# Section: PvP Title Color Change System by Level +# --------------------------------------- +# Each Amount will change the name color to the values defined here. +# Example: PvpAmmount1 = 500, when a character's PvP counter reaches 500, their name color will change +# according to the ColorForAmount value. +# Note: Colors Must Use RBG format +EnablePvPColorSystem = false + +# Pvp Amount & Name color level 1. +PvpAmount1 = 500 +ColorForAmount1 = CCFF00 + +# Pvp Amount & Name color level 2. +PvpAmount2 = 1000 +ColorForAmount2 = 00FF00 + +# Pvp Amount & Name color level 3. +PvpAmount3 = 1500 +ColorForAmount3 = 00FF00 + +# Pvp Amount & Name color level 4. +PvpAmount4 = 2500 +ColorForAmount4 = 00FF00 + +# Pvp Amount & Name color level 5. +PvpAmount5 = 5000 +ColorForAmount5 = 00FF00 + +# --------------------------------------- +# Section: PvP Nick Color System by Level +# --------------------------------------- +# Same as above, with the difference that the PK counter changes the title color. +# Example: PkAmmount1 = 500, when a character's PK counter reaches 500, their title color will change +# according to the Title For Amount +# WAN: Colors Must Use RBG format +EnablePkColorSystem = false + +# Pk Amount & Title color level 1. +PkAmount1 = 500 +TitleForAmount1 = 00FF00 + +# Pk Amount & Title color level 2. +PkAmount2 = 1000 +TitleForAmount2 = 00FF00 + +# Pk Amount & Title color level 3. +PkAmount3 = 1500 +TitleForAmount3 = 00FF00 + +# Pk Amount & Title color level 4. +PkAmount4 = 2500 +TitleForAmount4 = 00FF00 + +# Pk Amount & Title color level 5. +PkAmount5 = 5000 +TitleForAmount5 = 00FF00 \ No newline at end of file Index: /java/net/sf/l2j/Config.java =================================================================== --- /java/net/sf/l2j/Config.java (revision 174) +++ /java/net/sf/l2j/Config.java (working copy) @@ -544,6 +546,28 @@ public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_CLAN; public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE; public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT; + public static boolean PVP_COLOR_SYSTEM_ENABLED; + public static int PVP_AMOUNT1; + public static int PVP_AMOUNT2; + public static int PVP_AMOUNT3; + public static int PVP_AMOUNT4; + public static int PVP_AMOUNT5; + public static int NAME_COLOR_FOR_PVP_AMOUNT1; + public static int NAME_COLOR_FOR_PVP_AMOUNT2; + public static int NAME_COLOR_FOR_PVP_AMOUNT3; + public static int NAME_COLOR_FOR_PVP_AMOUNT4; + public static int NAME_COLOR_FOR_PVP_AMOUNT5; + public static boolean PK_COLOR_SYSTEM_ENABLED; + public static int PK_AMOUNT1; + public static int PK_AMOUNT2; + public static int PK_AMOUNT3; + public static int PK_AMOUNT4; + public static int PK_AMOUNT5; + public static int TITLE_COLOR_FOR_PK_AMOUNT1; + public static int TITLE_COLOR_FOR_PK_AMOUNT2; + public static int TITLE_COLOR_FOR_PK_AMOUNT3; + public static int TITLE_COLOR_FOR_PK_AMOUNT4; + public static int TITLE_COLOR_FOR_PK_AMOUNT5; /** ************************************************** **/ /** L2JMods Settings -End **/ @@ -1654,6 +1678,34 @@ 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")); + + // PVP Name Color System configs - Start + PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false")); + PVP_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "500")); + PVP_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "1000")); + PVP_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "1500")); + PVP_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "2500")); + PVP_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "5000")); + NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00")); + NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00")); + NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00")); + NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00")); + NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00")); + // PvP Name Color System configs - End + + // PK Title Color System configs - Start + PK_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePkColorSystem", "false")); + PK_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PkAmount1", "500")); + PK_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PkAmount2", "1000")); + PK_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PkAmount3", "1500")); + PK_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PkAmount4", "2500")); + PK_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PkAmount5", "5000")); + TITLE_COLOR_FOR_PK_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount1", "00FF00")); + TITLE_COLOR_FOR_PK_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount2", "00FF00")); + TITLE_COLOR_FOR_PK_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount3", "00FF00")); + TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount4", "00FF00")); + TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount5", "00FF00")); + //PK Title Color System configs - End if (TVT_EVENT_PARTICIPATION_NPC_ID == 0) { Index: /java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- /java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 174) +++ /java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) @@ -177,6 +177,16 @@ Quest.playerEnter(activeChar); activeChar.sendPacket(new QuestList()); loadTutorial(activeChar); + + // ================================================================================= + // Color System checks - Start ===================================================== + // Check if the custom PvP and PK color systems are enabled and if so ============== + // check the character's counters and apply any color changes that must be done. === + if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvpKills()); + if (activeChar.getPkKills()>=(Config.PK_AMOUNT1) && (Config.PK_COLOR_SYSTEM_ENABLED)) activeChar.updatePkColor(activeChar.getPkKills()); + // Color System checks - End ======================================================= + // ================================================================================= + if (Config.PLAYER_SPAWN_PROTECTION > 0) activeChar.setProtection(true); @@ -3660,7 +3661,75 @@ DuelManager.getInstance().broadcastToOppositTeam(this, update); } } - + + // Custom PVP Color System - Start + public void updatePvPColor(int pvpKillAmount) + { + if (Config.PVP_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().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT1); + } + else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3))) + { + getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2); + } + else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4))) + { + getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3); + } + else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5))) + { + getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4); + } + else if (pvpKillAmount >= (Config.PVP_AMOUNT5)) + { + getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5); + } + } + } + } + //Custom PVP Color System - End + + // Custom Pk Color System - Start + public void updatePkColor(int pkKillAmount) + { + if (Config.PK_COLOR_SYSTEM_ENABLED) + { + //Check if the character has GM access and if so, let them be, like above. + if (isGM()) + return; + { + if ((pkKillAmount >= (Config.PK_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1); + } + else if ((pkKillAmount >= (Config.PK_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2); + } + else if ((pkKillAmount >= (Config.PK_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3); + } + else if ((pkKillAmount >= (Config.PK_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5))) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4); + } + else if (pkKillAmount >= (Config.PK_AMOUNT5)) + { + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5); + } + } + } + } + //Custom Pk Color System - End + @Override public final void updateEffectIcons(boolean partyOnly) { @@ -4996,6 +5065,10 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + //Update the character's name color if they reached any of the 5 PvP levels. + updatePvPColor(getPvpKills()); + broadcastUserInfo(); + // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } @@ -5047,6 +5120,10 @@ setPkKills(getPkKills() + 1); setKarma(getKarma() + newKarma); + //Update the character's title color if they reached any of the 5 PK levels. + updatePkColor(getPkKills()); + broadcastUserInfo(); + // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } Once again..if you dont know how to complie or how to apply a patch this isnt the right place for you! Get out of this topic and go find a guide for compling xD Credits to sauron3256 from L2J forum
-
Ok first of to make it clear...If you dont know what eclipse means, how to complie or how to change the code then leave this topic and go here...http://www.maxcheaters.com/forum/index.php?topic=3400.0 I will use L2j interlude pack for this but you can use any, of any revision with no changes... Okay go to gameserver.model.actor.instance.L2PcInstance.java Here comes to reward for PVP kill Go to line 4538...You should see something like this // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); Okay now add this after it... // Give x y for a pvp kill addItem("Loot", x, y, this, true); sendMessage("You won y x for a pvp kill!"); NOTE! x IS THE ITEM ID AND y IS THE AMMOUNT! ============================================================ Okay now reward for PK kill Go to line 4605...You should see this // Add karma to attacker and increase its PK counter setPkKills(getPkKills() + 1); setKarma(getKarma() + newKarma); Add the same code as above and players are gonna get reward for PK kill! Note! PvP kill means when a player kills a flagged player and gets a pvp point and PK kill means when a player kills a while player and gets a PK point and karma! There is a huge difference Funny for high rate servers... Cheers ^^
-
[Share][Guide]Color your name by Npc!
Vago replied to fdLP.'s topic in Server Development Discussion [L2J]
Could be made permanent too but need more java knowledge and more changes. When you set the color name, it should update in the database. Add a code to reset your name color to the one in database in EnterWorld and youre done! You got permanent too xD...But as I said it needs more code and one more column in the character table in the database ^^ -
[Share][Guide]Color your name by Npc!
Vago replied to fdLP.'s topic in Server Development Discussion [L2J]
youre welcome pal ^^ I see some cool real java shares from you last days...No more npcs, changed items stat and other shit...some cool shares at least ^^ -
[Share][Guide]Color your name by Npc!
Vago replied to fdLP.'s topic in Server Development Discussion [L2J]
Import this... import net.sf.l2j.gameserver.serverpackets.UserInfo; and use this code else if (command.startsWith("change_namecolor")) { player.getAppearance().setNameColor(Integer.decode("0x"+command.substring(16, 22).trim())); player.broadcastUserInfo(); } I have no idea if this works! Havent tested...Give it a try and let us know if it works! -
[Share] L2j Configurator
Vago replied to Tony Montana's topic in Server Development Discussion [L2J]
Not useful at all. If you have any custom config different from what it can see, it bugs up! Also because of the custom commands added by developing teams it dosent work on most packs... -
[Share][Guide]Color your name by Npc!
Vago replied to fdLP.'s topic in Server Development Discussion [L2J]
Dosent need support at RequestBypassToServer too?...Or the change_namecolor command is declared already for the admin commands? :) -
[Share][Guide]New Command For Player Stats
Vago replied to fdLP.'s topic in Server Development Discussion [L2J]
Cant do pretty much with it but its a great example of how voicecommands work.. -
[Help] KvN mode
Vago replied to ~!M@R@SL@K0SsS!~'s question in Request Server Development Help [L2J]
I suggest you making ur own GvE patch anyway :)kinda more up-to-date -
[Share]Unique Weapons (L2 Pride) [Updated]
Vago replied to Warning's topic in Client Development Discussion
Karma should be a number of respect! If you look at someone's karma and u see something over 5 that guy should REALLY know what client side/ server side/ java means...Thats how I get it..Anyway end of story...we start the flames again and aint nice for mods ^^ -
That's what I call a real share ^^ How you exactly did it?...Got the textures from lineagetex, put them in a different utx and then added the address to the wepgrp?:S
-
[Share]Unique Weapons (L2 Pride) [Updated]
Vago replied to Warning's topic in Client Development Discussion
Its weapongrp =)... +1?...MxC is going crazy :) There are shares that are really worth sticky and karma in here...He just changed one fucking line in the wepgrp =) (I actually think he just got the ones from L2pride rofl...) Anyway Im not the one who should take care of this...just said my point of view :) -
[Share]Unique Weapons (L2 Pride) [Updated]
Vago replied to Warning's topic in Client Development Discussion
Not much of a thing...You probablly used L2Pride's client files rofl... -
Tell us please who we gave items to and I belive :) I bet you didnt event enter...Doh. Or you entered, got pked by players and left crying or somthing..Seriously grow up. PLay for some days to get an impresion and then post People are too stupid for this post. Close or even delete please...I prefer to dont advertise it than get bad reputiation form kids who get pked and say gms are corrupted :) Tyvm
-
Very good point about the donation..Thank you for support. About the titaniums..When we get bigger we will make weekly TvT tournaments with titanium/pure prizes :). So once a week...If we get in the event at least 50 people (when we'll have them) you can get those tit without any donation ^^...As I said before...I wont let it run out of control :)...