Jump to content

EzEraL

Members
  • Posts

    345
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Everything posted by EzEraL

  1. the bad thing on that hack is that it has been fixed in the last l2jrevs...so don't even try it on Off servers..
  2. Thank you!!!!!I have already added one in my sig! NIce
  3. I know that l2joff do that but it works on old rev not the final.The code is similar but not the same.And the patches stop work right know man.You must do that by yourselfe if you want to mae a code This announce by l2joff and l2jfree
  4. Nice but we need developers to be the team completly
  5. If we find members we will create this team but i dint see anyone exept you
  6. Ok you have right in most things but man domuk has not team.Neither his pack.Domuk takes l2jfree rev and make it preconfigure.He didint create anything And we will mix the codes so we will have the most stable pack and most features
  7. You will be in oneo solution but make a maxbastards team will make the forum community raise
  8. I have an idea.I think it would be good to create maxbastards l2j dev team. This team will mix up all the codes for example l2jfree and oneo dev team We will have our forum,our svn and our trac All the members will have their jobs for example some will be the developers of the java Other for datapack,others for customs and finally others to find bugs such as l2joff which there are ppl who are bug finders Do you like this idea?And if yes plz post if you want to be a member of the team and what you will do such as java Currently Memebers so Far 1)EzEraL java-datapack developer 2)Solution custom developer 3)Evo Bug Finder 4)Venom Datapack Developer 5)Dragoon Datapack Developer 6)Evo Datapack Developer
  9. i was wrong kaspersky slowdown only the wireless connections
  10. re des tin trac mas.Den eine etima 8eloun mia pdate sta xml kai tha eine.Ama thes mporeis na perimeneis alios pigene sta xmls kai vale apo passive se active Den eine diskolo
  11. This code will paralyze all the players before the server restarts (15 seconds before the server restarts/shuts down by default but you can change it), and unparalyze them if the server restart is cancelled. I create this because many ppl when server restarted or shutdown they cheat such us safe enchanting,buffs stucking and more So the code is the following: Index: D:/#PROJECT/l2jserver_IntGS_Clean/java/net/sf/l2j/gameserver/Shutdown.java =================================================================== --- D:/#PROJECT/l2jserver_IntGS_Clean/java/net/sf/l2j/gameserver/Shutdown.java +++ D:/Workspace/GameServer_Clean/java/net/sf/l2j/gameserver/Shutdown.java @@ -52,8 +52,35 @@ public static final int GM_RESTART = 2; public static final int ABORT = 3; private static String[] _modeText = {"SIGTERM", "shutting down", "restarting", "aborting"}; - /** + * Don't allow players to do anything while server is Restarting/Shuting down + * this way they won't be able tu use any exploit during restart procedure. + */ + private void paralyzeAllCharacters() + { + for (L2PcInstance player : L2World.getInstance().getAllPlayers()) + { + //Stop movement for every character connected + player.setTarget(null); // Delete it's target + player.stopMove(null); // Stop it's movement + player.setIsParalyzed(true); // Deny movement + player.setIsInvul(true); // Make it invul (this way they won't get killed by a mob) + } + } + /** + * Allow players to move again and erase their invul status + */ + private void unparalyzeAllCharacters () + { + for (L2PcInstance player: L2World.getInstance().getAllPlayers()) + { + //Restore movement for every char connected + player.setIsParalyzed(false); //Unparalize + player.setIsInvul(false); //Make vulnerable once again + } + } + + /** * This function starts a shutdown countdown from Telnet (Copied from Function startShutdown()) * * @param ip IP Which Issued shutdown command @@ -100,7 +127,8 @@ Announcements _an = Announcements.getInstance(); _log.warning("IP: " + IP + " issued shutdown ABORT. " + _modeText[shutdownMode] + " has been stopped!"); _an.announceToAll("Server aborts " + _modeText[shutdownMode] + " and continues normal operation!"); - + //Restore movement in case shutdown/restart are cancelled + unparalyzeAllCharacters(); if (_counterInstance != null) { _counterInstance._abort(); } @@ -310,6 +338,9 @@ LoginServerThread.getInstance().setServerStatus(ServerStatus.STATUS_DOWN); //avoids new players from logging in _an.announceToAll("The server is " + _modeText[shutdownMode] + " in 1 minute.");break; case 30:_an.announceToAll("The server is " + _modeText[shutdownMode] + " in 30 seconds.");break; + case 15: + paralyzeAllCharacters(); + _an.announceToAll("The players will now be inmobilized to prevent Exploits during the "+ _modeText[shutdownMode] +" procedure");break; case 5:_an.announceToAll("The server is " + _modeText[shutdownMode] + " in 5 seconds, please delog NOW !");break; } Index: D:/#PROJECT/l2jserver_IntGS_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminShutdown.java =================================================================== --- D:/#PROJECT/l2jserver_IntGS_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminShutdown.java (revision 669) +++ D:/#PROJECT/l2jserver_IntGS_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminShutdown.java (working copy) @@ -53,7 +53,15 @@ try { int val = Integer.parseInt(command.substring(22)); - serverShutdown(activeChar, val, false); + //A restart procedure HAS to be issued at least 60 seconds before it takes effect + if (val >= 60) + { + serverShutdown(activeChar, val, false); + } + else + { + sendHtmlForm(activeChar); + } } catch (StringIndexOutOfBoundsException e) { @@ -64,7 +72,15 @@ try { int val = Integer.parseInt(command.substring(21)); - serverShutdown(activeChar, val, true); + //A restart procedure HAS to be issued at least 60 seconds before it takes effect + if (val >= 60) + { + serverShutdown(activeChar, val, true); + } + else + { + sendHtmlForm(activeChar); + } } catch (StringIndexOutOfBoundsException e) { @@ -111,7 +127,7 @@ replyMSG.append("<tr><td>Game Time: " + format.format(cal.getTime()) + "</td></tr>"); replyMSG.append("</table><br>"); replyMSG.append("<table width=270>"); - replyMSG.append("<tr><td>Enter in seconds the time till the server shutdowns bellow:</td></tr>"); + replyMSG.append("<tr><td>Enter in seconds the time till the server shutdowns bellow (min. 60 sec.):</td></tr>"); replyMSG.append("<br>"); replyMSG.append("<tr><td><center>Seconds till: <edit var=\"shutdown_time\" width=60></center></td></tr>"); replyMSG.append("</table><
  12. Configurable 1st,2nd,3rd Class Prizes if ClassMaster enabled... Index: D:/#PROJECT/l2jserver_IntGS/java/config/altsettings.properties =================================================================== --- D:/#PROJECT/l2jserver_C5GS/java/config/altsettings.properties +++ D:/#PROJECT/l2jserver_C5GS/java/config/altsettings.properties @@ -103,6 +103,16 @@ # Default = False AllowClassMasters = False +#------------------------------------------------------------- +# Class Master Proof Change prizes +#------------------------------------------------------------- +# 1st class prize +ProofPrize1 = 300000 +# 2nd class prize +ProofPrize2 = 3000000 +# 3nd class prize +ProofPrize3 = 30000000 + # Spell Book needed to learn skills SpBookNeeded = True Index: D:/#PROJECT/l2jserver_IntGS/java/net/sf/l2j/Config.java =================================================================== --- D:/#PROJECT/l2jserver_C5GS/java/net/sf/l2j/Config.java (revision 703) +++ D:/#PROJECT/l2jserver_C5GS/java/net/sf/l2j/Config.java (working copy) @@ -499,8 +499,13 @@ public static int MAX_DRIFT_RANGE; /** Allow fishing ? */ - public static boolean ALLOWFISHING; + public static boolean ALLOWFISHING; + /** Proof change prizes */ + public static int PROOF_PRIZE1; + public static int PROOF_PRIZE2; + public static int PROOF_PRIZE3; + /** Jail config **/ public static boolean JAIL_IS_PVP; public static boolean JAIL_DISABLE_CHAT; @@ -1538,6 +1543,10 @@ ALT_DEV_NO_QUESTS = Boolean.parseBoolean(altSettings.getProperty("AltDevNoQuests", "False")); ALT_DEV_NO_SPAWNS = Boolean.parseBoolean(altSettings.getProperty("AltDevNoSpawns", "False")); + PROOF_PRIZE1 = Integer.parseInt(altSettings.getProperty("ProofPrize1", "300000")); + PROOF_PRIZE2 = Integer.parseInt(altSettings.getProperty("ProofPrize2", "3000000")); + PROOF_PRIZE3 = Integer.parseInt(altSettings.getProperty("ProofPrize3", "30000000")); + } catch (Exception e) { Index: D:/#PROJECT/l2jserver_IntGS/java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java =================================================================== --- D:/#PROJECT/l2jserver_IntGS/java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 703) +++ D:/#PROJECT/l2jserver_IntGS/java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (working copy) @@ -19,12 +19,13 @@ package net.sf.l2j.gameserver.model.actor.instance; import javolution.text.TextBuilder; + import net.sf.l2j.Config; +import net.sf.l2j.gameserver.datatables.CharTemplateTable; import net.sf.l2j.gameserver.ai.CtrlIntention; -import net.sf.l2j.gameserver.datatables.CharTemplateTable; import net.sf.l2j.gameserver.model.base.ClassId; +import net.sf.l2j.gameserver.model.base.PlayerClass; import net.sf.l2j.gameserver.model.base.ClassLevel; -import net.sf.l2j.gameserver.model.base.PlayerClass; import net.sf.l2j.gameserver.model.quest.Quest; import net.sf.l2j.gameserver.serverpackets.ActionFailed; import net.sf.l2j.gameserver.serverpackets.MyTargetSelected; @@ -34,12 +35,13 @@ import net.sf.l2j.gameserver.templates.L2NpcTemplate; + //private static Logger _log = Logger.getLogger(L2ClassMasterInstance.class.getName()); private static int[] _secondClassIds = {2,3,5,6,9,8,12,13,14,16,17,20,21,23,24,27, 28,30,33,34,36,37,40,41,43,46,48,51,52,55,57}; @@ -90,19 +92,22 @@ case Second: jobLevel = 2; break; + case Third: + jobLevel = 3; + break; default: - jobLevel = 3; + jobLevel = 4; } if (!Config.ALLOW_CLASS_MASTERS) - jobLevel = 3; - - if (((level >= 20 && jobLevel == 1 ) || - (level >= 40 && jobLevel == 2 )) && Config.ALLOW_CLASS_MASTERS) + jobLevel = 4; + + if (((level >= 20 && jobLevel == 1 && player.getAdena() >= Config.PROOF_PRIZE1 ) || + (level >= 40 && jobLevel == 2 && player.getAdena() >= Config.PROOF_PRIZE2 )) && Config.ALLOW_CLASS_MASTERS) { showChatWindow(player, classId.getId()); } - else if (level >= 76 && Config.ALLOW_CLASS_MASTERS && classId.getId() < 88) + else if (level >= 76 && player.getAdena() >= Config.PROOF_PRIZE3 && Config.ALLOW_CLASS_MASTERS && classId.getId() < 88) { for (int i = 0; i < _secondClassIds.length; i++) { @@ -114,8 +119,6 @@ sb.append("<tr><td><center>"+CharTemplateTable.getClassNameById(classId.getId())+" Class Master:</center></td></tr>"); sb.append("<tr><td><br></td></tr>"); sb.append("<tr><td><a action=\"bypass -h npc_"+getObjectId()+"_change_class "+(88+i)+"\">Advance to "+CharTemplateTable.getClassNameById(88+i)+"</a></td></tr>"); - sb.append("<tr><td><br></td></tr>"); - sb.append("<tr><td><a action=\"bypass -h npc_"+getObjectId()+"_upgrade_hatchling\">Upgrade Hatchling to Strider</a></td></tr>"); sb.append("</table></body></html>"); html.setHtml(sb.toString()); player.sendPacket(html); @@ -131,14 +134,17 @@ switch (jobLevel) { case 1: - sb.append("Come back here when you reached level 20 to change your class.<br>"); + sb.append((new StringBuilder("Come back here when you reached <font color=\"LEVEL\">level 20</font> to change your class.<br>Also you'll need <font color=\"LEVEL\">")).append(Config.PROOF_PRIZE1).append(" adena</font> to change your class.").toString()); break; case 2: - sb.append("Come back here when you reached level 40 to change your class.<br>"); + sb.append((new StringBuilder("Come back here when you reached <font color=\"LEVEL\">level 40</font> to change your class.<br>Also you'll need <font color=\"LEVEL\">")).append(Config.PROOF_PRIZE2).append(" adena</font> to change your class.").toString()); break; case 3: - sb.append("There is no class changes for you any more.<br>"); + sb.append((new StringBuilder("Come back here when you reached <font color=\"LEVEL\">level 76</font> to change your class.<br>Also you'll need <font color=\"LEVEL\">")).append(Config.PROOF_PRIZE3).append(" adena</font> to change your class.").toString()); break; + case 4: + sb.append("You are on 3rd occupation now.<br>"); + break; } for (Quest q : Quest.findAllEvents()) @@ -175,12 +181,15 @@ { case First: jobLevel = 1; + player.reduceAdena("LvlUp", Config.PROOF_PRIZE1, this, true); break; case Second: jobLevel = 2; + player.reduceAdena("LvlUp", Config.PROOF_PRIZE2, this, true); break; case Third: jobLevel = 3; + player.reduceAdena("LvlUp", Config.PROOF_PRIZE3, this, true); break; default: jobLevel = 4; @@ -223,7 +232,7 @@ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); TextBuilder sb = new TextBuilder(); sb.append("<html><head><body>"); - sb.append("You have now become a <font color=\"LEVEL\">" + CharTemplateTable.getClassNameById(player.getClassId().getId()) + "</font>."); + sb.append("You have now become a <font color=\"0033AA\">" + CharTemplateTable.getClassNameById(player.getClassId().getId()) + "</font>."); sb.append("</body></html>"); html.setHtml(sb.toString()); @@ -247,4 +256,4 @@ player.broadcastUserInfo(); } -} +} \ No newline at end of file
  13. Is Kapersky a heavy antivirus? for me no.But kaspersky slowdown the internet connection But it is the best especially kaspersky internet security
  14. SeLL SiLvEr RaNgEr 74LvL aT bNb cORe Gender: Female Equipment: Zubeis Full Set(+3) Black Ore Set(+3,+3,+4,+4,+3) Red Party Mask 10MiL AdeNa Weapon: Carnage Bow[A Grade]+3. Special Gift: 55LvL BouNty hUnTeR } ALL THIS WITH A GREAT PRICE. If you are intresting...then contact me in my MsN...: nas0sgr@hotmail.com <
  15. I In oneo rev 560 work the buffer man.So check if you make something wrong. Also check if you write in the init.py
  16. I answer to you in your thread about gve server and to created.Anyway there is no need ro make a server because i dont like so much the custom things.I prefer the retail Morrows job was the best custom anyway
  17. Yes man look.Go to a svn of your desire for example l2oneo.Download the source code with eclipse. Open eclipse and in your left hand there will be the package explorer with the source codes that you have download it.Select l2oneo and it will show you all the files Make a code preview and in the main code there are all things that needed to have a gve server.To be honest you can make as more fanctions you like with your names.Just make a code preview and you will see Finaly the addons,skills for example there are in db site.Only these must created by you
  18. Nemes1s is right... there is no other way...:/
  19. an kai oxi i kaliteri mera... kalimera...
×
×
  • Create New...