Jump to content

˚کp4g0®4m4NoS™

Members
  • Posts

    96
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by ˚کp4g0®4m4NoS™

  1. Gia sas 8elw boi8ia se l2jteon pack deite ti m leei molis anoigw to game server: RL] Xrisimopoiw afto to pack: http://www.sendspace.com/file/xk33f2 http://rapidshare.com/files/397020018/strict.rar.html
  2. Plz Move this: http://www.maxcheaters.com/forum/index.php?topic=152482 to: http://www.maxcheaters.com/forum/index.php?board=64.0
  3. try to help me and don't say only "wrong section" ok sm1 move it to the correct section
  4. I don't think so ... you see, LOCKED because it wasn't working stop spamming...xD
  5. gia polo0s opos kai gia emena to provlima den einai to poso alla o tropos plirwmis....
  6. db.php 1. <?php 2. function db_connect() 3. { 4. if (mysql_connect('localhost', 'user','password')) 5. { 6. if(mysql_select_db('db_name')){ 7. return true; 8. } else { 9. return false; 10. } 11. } else { 12. return false; 13. } 14. } 15. 16. ?> castles.php 1. 2. <?php 3. include_once('includes/db.php'); 4. include_once('header.php'); 5. echo ("<META HTTP-EQUIV=Refresh CONTENT='300; URL=castles.php'>"); 6. ?> 7. <div id="page_content"> 8. <div class="spacer"> 9. <table align="center" id="tabel_continut"> 10. <tr> 11. <td class="leftcol"> 12. <h1 align="center">Castle Control</h1><br><br> 13. <p align="left"> <font color="red">Updated every 5 minutes</font></p> 14. <br/><br/> 15. <?php 16. $rowdata = mysql_query("select a.clan_name, a.clan_level, a.clan_id, a.ally_name, a.leader_id, b.char_name, b.accesslevel, c.siegeDate, c.taxPercent, c.id as idcastel, c.name FROM clan_data as a, characters as b, castle as c WHERE ((a.clan_id = b.clanId) AND (b.accesslevel = 0) AND (c.id = a.hasCastle)) ORDER BY name ASC"); 17. //echo $rowdata; 18. 19. $img_castele = array(1 => "Gludio.bmp", 20. 2 => "Dion.bmp", 21. 3 => "Giran.bmp", 22. 4 => "Oren.bmp", 23. 5 => "Aden.gif", 24. 6 => "Innadril.gif", 25. 7 => "Goddard.gif", 26. 8 => "Rune.gif", 27. 9 => "Schuttgart.gif"); 28. //print_r ($img_castele); 29. 30. $i = 1;//set a variable to identify images 31. if(mysql_num_rows($rowdata) > 0 ) { 32. echo "<table id='castel_status' cellpadding='5'>"; 33. while($row = mysql_fetch_array($rowdata)) { 34. 35. 36. echo "<tr><td style='width:230px;'><img src='images/castle/".$img_castele[$row['idcastel']]."' /></td>"; 37. echo "<td style='width:310px;'>"; 38. echo "<h2 style='font-size:14px; color:#F63; margin:0; padding:0; font-weight:bold; margin-bottom:5px;'>".$row['name']." Castle</h2>"; 39. echo "<strong>Next Siege : </strong>".date('D\ j M Y H\:i',$row['siegeDate']/1000)."<br />"; 40. echo "<strong>Clan Owner : </strong>". $row['clan_name']."<br />"; 41. echo "<strong>Clan Level : </strong>".$row['clan_level']."<br />"; 42. echo "<strong>Leader : </strong>". $row['char_name']."<br />"; 43. echo "<strong>Tax : </strong>".$row['taxPercent']."%<br />"; 44. echo "<strong>Alliance : </strong>". $row['ally_name']."<br /></td></tr>"; 45. $i++; 46. } 47. echo "</table>"; 48. 49. } else { 50. echo "<br />No records in the database."; 51. } 52. ?> 53. </table> 54. </div> 55. </div> 56. Original Poster: nimeni from l2jforum Elpizw na mn exei ksanaginei Share
  7. //agree exei poly wraia pragmata sto wix try it
  8. C:/Workspace/GameServer_Clean/java/config/options.properties
  9. He Said : Hi I Finish With Mynew tool V Dos 1.0.3b Is A Dos Program To Set Offline People!
  10. Original Poster: LurkerElf From G-Hamster Forum Γενικά : μολις ενας char φτάσει στα κατάληλα lvl (20.40.76) τότε αυτόματα ενα window με menu ιδιο με αυτο του roy the cat εμφανίζετε και ο Char μπορεί να κάνει ClassChange. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (revision 2705) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java (working copy) @@ -18,9 +18,11 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.datatables.CharTemplateTable; +import net.sf.l2j.gameserver.datatables.NpcTable; import net.sf.l2j.gameserver.model.base.ClassId; import net.sf.l2j.gameserver.model.base.ClassLevel; import net.sf.l2j.gameserver.model.base.PlayerClass; +import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.quest.Quest; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; @@ -40,7 +42,11 @@ //private static Logger _log = Logger.getLogger(L2ClassMasterInstance.class.getName()); private static final int[] SECONDN_CLASS_IDS = {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}; - + public static L2ClassMasterInstance ClassMaster = new L2ClassMasterInstance(31228, NpcTable.getInstance().getTemplate(31228)); + static + { + L2World.getInstance().storeObject(ClassMaster); + } /** * @param template */ @@ -52,8 +58,8 @@ @Override public void onAction(L2PcInstance player) { - if (!canTarget(player)) return; - + //if (!canTarget(player)) return; +/* // Check if the L2PcInstance already target the L2NpcInstance if (getObjectId() != player.getTargetId()) { @@ -73,7 +79,7 @@ player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); return; } - +*/ if (Config.DEBUG) _log.fine("ClassMaster activated"); @@ -94,19 +100,16 @@ jobLevel = 3; } - if (!Config.ALLOW_CLASS_MASTERS) - jobLevel = 3; - if(player.isGM()) { showChatWindowChooseClass(player); } - else if (((level >= 20 && jobLevel == 1 ) || - (level >= 40 && jobLevel == 2 )) && Config.ALLOW_CLASS_MASTERS) + else if ((level >= 20 && jobLevel == 1 ) || + (level >= 40 && jobLevel == 2 )) { showChatWindow(player, classId.getId()); } - else if (level >= 76 && Config.ALLOW_CLASS_MASTERS && classId.getId() < 88) + else if (level >= 76 && classId.getId() < 88) { for (int i = 0; i < SECONDN_CLASS_IDS.length; i++) { @@ -126,7 +129,7 @@ } } } - else if (level >= 76 && Config.ALLOW_CLASS_MASTERS && ((classId.getId() >= 123 && classId.getId() < 131 ) || classId.getId() == 135)) // this is for Kamael Race 3rd Transfer + else if (level >= 76 && ((classId.getId() >= 123 && classId.getId() < 131 ) || classId.getId() == 135)) // this is for Kamael Race 3rd Transfer { showChatWindow(player, classId.getId()); } @@ -155,7 +158,7 @@ html.setHtml(sb.toString()); player.sendPacket(html); } - } + //} player.sendPacket(ActionFailed.STATIC_PACKET); } Index: java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (revision 2705) +++ java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (working copy) @@ -16,6 +16,7 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.model.L2Character; +import net.sf.l2j.gameserver.model.actor.instance.L2ClassMasterInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PetInstance; import net.sf.l2j.gameserver.model.base.Experience; @@ -151,6 +152,17 @@ if (getLevel() + value > Experience.MAX_LEVEL - 1) return false; boolean levelIncreased = super.addLevel(value); + + switch (getLevel()) + { + case 20: + case 40: + case 76: + L2ClassMasterInstance.ClassMaster.onAction(getActiveChar()); + break; + default: + break; + } if (levelIncreased) { Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java (revision 2705) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java (working copy) @@ -28,6 +28,7 @@ import net.sf.l2j.gameserver.model.L2CharPosition; import net.sf.l2j.gameserver.model.L2Object; import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.actor.instance.L2ClassMasterInstance; import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.entity.L2Event; @@ -113,9 +114,9 @@ try { L2Object object = L2World.getInstance().findObject(Integer.parseInt(id)); - + if (_command.substring(endOfId+1).startsWith("event_participate")) L2Event.inscribePlayer(activeChar); - else if (object instanceof L2NpcInstance && endOfId > 0 && activeChar.isInsideRadius(object, L2NpcInstance.INTERACTION_DISTANCE, false, false)) + else if (object instanceof L2ClassMasterInstance || (object instanceof L2NpcInstance && endOfId > 0 && activeChar.isInsideRadius(object, L2NpcInstance.INTERACTION_DISTANCE, false, false))) { ((L2NpcInstance)object).onBypassFeedback(activeChar, _command.substring(endOfId+1)); }
  11. Λοιπόν αυτό το code το βρίκα στο g-hamster forum ελπ'ιζω να μν εχει γραφτεί ξανά Original Poster : LurkerElf From G-Hamster forum(δεν είχε Original Poster οπότε υπέθεσα οτι ηταν δικό του) Γενικά : Αυτό το Code διακόπτει και κάνει ban τους GM οι οποιοι κάνουν EDIT δηλ. Exp/Sp/Adenas/Items/Enchants Index: D:/Workspace/GameServer_Clean/java/config/options.properties =================================================================== --- D:/Workspace/GameServer_Clean/java/config/options.properties (revision 708) +++ D:/Workspace/GameServer_Clean/java/config/options.properties (working copy) @@ -168,6 +168,8 @@ L2WalkerRevision = 552 # Ban account if account using l2walker and is not GM, AllowL2Walker = False AutobanL2WalkerAcc = False +# Ban Edited Player and Corrupt GM if a GM edits a NON GM character. +GMEdit = False # ================================================================= Index: D:/Workspace/GameServer_Clean/java/net/sf/l2j/Config.java =================================================================== --- D:/Workspace/GameServer_Clean/java/net/sf/l2j/Config.java (revision 708) +++ D:/Workspace/GameServer_Clean/java/net/sf/l2j/Config.java (working copy) @@ -520,6 +520,9 @@ public static boolean AUTOBAN_L2WALKER_ACC; /** Revision of L2Walker */ public static int L2WALKER_REVISION; + + /** GM Edit allowed on Non Gm players? */ + public static boolean GM_EDIT; /** Allow Discard item ?*/ public static boolean ALLOW_DISCARDITEM; @@ -1127,6 +1130,7 @@ ALLOW_L2WALKER_CLIENT = L2WalkerAllowed.valueOf(optionsSettings.getProperty("AllowL2Walker", "False")); L2WALKER_REVISION = Integer.parseInt(optionsSettings.getProperty("L2WalkerRevision", "537")); AUTOBAN_L2WALKER_ACC = Boolean.valueOf(optionsSettings.getProperty("AutobanL2WalkerAcc", "False")); + GM_EDIT = Boolean.valueOf(optionsSettings.getProperty("GMEdit", "False")); ACTIVATE_POSITION_RECORDER = Boolean.valueOf(optionsSettings.getProperty("ActivatePositionRecorder", "False")); Index: D:/Workspace/GameServer_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminExpSp.java =================================================================== --- D:/Workspace/GameServer_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminExpSp.java (revision 708) +++ D:/Workspace/GameServer_Clean/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminExpSp.java (working copy) @@ -29,6 +29,8 @@ import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.serverpackets.SystemMessage; +import net.sf.l2j.gameserver.util.IllegalPlayerAction; +import net.sf.l2j.gameserver.util.Util; /** * This class handles following admin commands: @@ -222,8 +224,24 @@ smA.addString("Wrong Number Format"); activeChar.sendPacket(smA); } - if(expval != 0 || spval != 0) + /** + * Anti-Corrupt GMs Protection. + * If GMEdit enabled, a GM won't be able to Add Exp or SP to any other + * player that's NOT a GM character. And in addition.. both player and + * GM WILL be banned. + */ + if(Config.GM_EDIT && (expval != 0 || spval != 0)&& !player.isGM()) { + //Warn the player about his inmediate ban. + player.sendMessage("A GM tried to edit you in "+expval+" exp points and in "+spval+" sp points.You will both be banned."); + Util.handleIllegalPlayerAction(player,"The player "+player.getName()+" has been edited. BAN!!", IllegalPlayerAction.PUNISH_KICKBAN); + //Warn the GM about his inmediate ban. + player.sendMessage("You tried to edit "+player.getName()+" by "+expval+" exp points and "+spval+". You both be banned now."); + Util.handleIllegalPlayerAction(activeChar,"El GM "+activeChar.getName()+" ha editado a alguien. BAN!!", IllegalPlayerAction.PUNISH_KICKBAN); + _log.severe("GM "+activeChar.getName()+" tried to edit "+player.getName()+". They both have been Banned."); + } + else if(expval != 0 || spval != 0) + { //Common character information SystemMessage sm = new SystemMessage(614); sm.addString("Admin is adding you "+expval+" xp and "+spval+" sp.");
  12. omg I've just realised ! 150 $ for a setup omg xD I also want to ask if this is a dedicated server company : http://www.tophost.gr/dedicated-servers/standard-servers-pack.htm
  13. working on l2jbrasil OMG AWSOME !
  14. Can you tall me with this : * AMD64 X2 4850E 2.5Ghz * 2048 MB DDR2 RAM * 250 GB 7.200 RPM * 2000 GB Traffic p/m How many ppl without lag??
  15. Hello! I would like to know some Cheap and good hosting companies for my server :D (send me the site or google key-words0 -Ty
  16. it is modifing the excisting mobs or creating new ones?
  17. http://www.maxcheaters.com/forum/index.php?topic=152285.0;topicseen <~~plz SM1 Fix for this!!!!(soz gia 2ble post alla taxw peksi)
  18. tested on l2 dominion //failed isos ekana kt la8os xD
×
×
  • Create New...