Jump to content

madarismenos

Members
  • Posts

    133
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by madarismenos

  1. sell the events phoenix engine 18 events fixed bug and npe errors add skype:la2neon1 for info and features and adapt for acis last rev...merry christmas Soon and Updates and new photo. Updates: Npe Error Fix Bug give the reward and tie match. and more Photo: credit:Rizel
  2. add me la2neon1 skype to talk!
  3. I do not know that was shared and that maker myself do not do leached go away You are too cheap!!!
  4. My haters is individuals are all my children ;)
  5. Hello Member to mxc i create one easy code for check last login from account!Soory for bad Engilsh dont test this and i dont know if work retail :) :) Updated ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -15,8 +15,10 @@ package net.sf.l2j.gameserver.model.actor.instance; import java.sql.Connection; +import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; +import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; @@ -10705,4 +10707,32 @@ break; } } + + public long cklastlogin() + { + long chklogin = 0; + try (Connection con = L2DatabaseFactory.getInstance().getConnection()) + { + PreparedStatement statement = con.prepareStatement("SELECT lastactive FROM accounts WHERE login=?"); + statement.setString(1, getAccountName()); + ResultSet rset = statement.executeQuery(); + + // Go though the recordset of this SQL query + while (rset.next()) + { + chklogin = rset.getLong("lastactive"); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + Date date = new Date(chklogin); + sendMessage("Last Login:"+dateFormat.format(date)); + } + + rset.close(); + statement.close(); + } + catch (Exception e) + { + _log.warning("Could not restore Last Login: " + e); + } + return chklogin; + } } \ No newline at end of file Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 5) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy) @@ -79,7 +79,7 @@ getClient().closeNow(); return; } - + activeChar.cklastlogin(); if (activeChar.isGM()) { if (Config.GM_STARTUP_INVULNERABLE && AdminCommandAccessRights.getInstance().hasAccess("admin_invul", activeChar.getAccessLevel()))
  6. Τραβα φτιαξε κανα Banner Hater πουλλας και ειρωνια σκουπιδι δεν εχεις ιδεα τι εχεις ανεβασει...
  7. poso xazos pezei na eisai gia na kaneis auto to post????
  8. yes do you know better...
  9. this is code create from fofas...:/
  10. Hello Member to Mxc Sell Ready server:www.l2stevia.com Ready stable files not bug and etc... L2JGuard-Site-Dedicated PPL Online on the server 80 Players For Info and etc add skype la2neon1 FeaturesServer platform: L2j Interlude, all known bugs fixed within. Basic server rates: EXP x5000 amount SP x5000 amount Party SP x5000 amount Party XP x5000 amount Drop Item Karma x15 Adena x5000 amount Event Engine: DeathMatch Team vs Team Unique Events (including epic ones) from our Team Custom Items: L2Stevia Weapon(Like Gold Weapon) L2Stevia Armor(Like Intact Armor) L2Stevia Accessories GamePlay: Automated Vote Reward System with Vote Coins All items on GM Shop And Special Shop Flawless Geodata Auto Loot No Auto Loot on Raids Auto Learn all Skills Grade Penalty On * Ingame Announcement when a Raid spawns Wedding System Farm Zones Custom Mage & Fighter Tattoo 2 Custom Shields No weight limit Subclass without quest Subclass starting lvl = 40 Max Subclasses = 5 You can add any subclass in Maximilian [ALL IN ONE] Max Clans in Alliance = 3 All active/passive augments are fully working! 1 Active And 1 Passive Lifestone Skill Chance : 30% Custom red screen effect when a player dies Reworked all Skills / Items & Class Balance Heavy / Robe / Light System , players who don't have the mastery for it can't wear it PvP / PK Announcer PvP Color System Anti - Feed System Castle Sieges Economy System Max Level 80 Cursed weapons Weapon Augmentations Dueling System Offline Shop NoStore System in Giran (shops allowed only in center) Spawn Protection 30 secs Olympiad system fully working Heroes every 1 week NPC: Full GM Shop up to S grade with Consumables for free Special Shop Global Gatekeeper Global Buffer with Resists Exchanger Top 20 PvP / PK / Clan etc. Class Changer (or change your class with the Pop-Up Window) Boss Manager Augmenter Skill Enchanter Vote Manager Castle Manager Password Changer Enchant: Max Enchant Armor & Jewels = +25 With Blessed Scrolls Max Enchant Weapon = +25 With Blessed Scrolls Max Enchant Armor & Jewels = +30 With Crystall Scrolls Max Enchant Weapon = +30 With With Crystall Scrolls Safe Enchant = +7 Normal enchant scroll rate = 70% Blessed enchant scroll rate = 80% Crystal scrolls rate = 50% Normal Scroll - If Enchant fails item broke Raid Bosses: Custom 7 Bosses Droping Shift Cick on RaidBoss, Respawn Time = 3 hours Custom Areas: Main Town: Giran Solo PVP ZONE [Random] : FLAG ZONE And many more zones! Buffs: Max buffs: 100 Buffs Duration: 2 hours Commands: .repair - Fixes your char (moved to Floran Village) .menu - Opens a menu with commands .votebuff - view your time Vote Buff .vote - Opens a Vote Personal Panel with commands .solozone - View Solo Zone PvP
  11. Hello Member to mxc...i sell that code .menu Command. For acis and frozen i test that code.... The Personal Menu Contains:Character Top List,Register Siege,Character Repair,Change Password,Security Pin Code The Personal Menu Contains:Message Refusal,Trade Refusal,Death Panel Refusal,Auto Potion Refusal The Menu Contains:TvT,Death Match Register and information for Features and Price add Skype:la2neon1
  12. add you skype:la2neon1 thanks
  13. will be cost 25 euro for features and etc add skype Thanks...
  14. yes...Add me on skype to talk Thanks
  15. scammed idea from me the l2sandora...this is system from the l2short ;)
  16. Hello Members to mxc sell donate shop for interlude l2jfrozen,acis pack it works perfect 100% i test on the live server! Config File: # Disabled || Enabled Donate Shop Npc AllowDonateShop = False # Donate Shop ItemId DonateShopItemId = 57 Photo of Disabled Npc Photo of Enabled Npc that he bought one player stored in logs Skype:la2neon1
  17. Hello i Create one Easy code for your server's this is code for Fake player real time is have items and clan crest. He got the idea from the L2mafia, L2reality Soory for bad English Index: java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- java/net/sf/l2j/gameserver/GameServer.java (revision 4) +++ java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -99,6 +99,7 @@ import net.sf.l2j.gameserver.instancemanager.games.MonsterRace; import net.sf.l2j.gameserver.model.L2Manor; import net.sf.l2j.gameserver.model.L2World; +import net.sf.l2j.gameserver.model.entity.FakeOnline; import net.sf.l2j.gameserver.model.entity.Hero; import net.sf.l2j.gameserver.model.olympiad.Olympiad; import net.sf.l2j.gameserver.model.olympiad.OlympiadGameManager; @@ -300,7 +301,7 @@ if (Config.ALT_FISH_CHAMPIONSHIP_ENABLED) FishingChampionshipManager.getInstance(); - + FakeOnline.restoreFakePlayers(); Util.printSection("System"); TaskManager.getInstance(); Runtime.getRuntime().addShutdownHook(Shutdown.getInstance()); Index: java/net/sf/l2j/gameserver/model/L2Clan.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Clan.java (revision 4) +++ java/net/sf/l2j/gameserver/model/L2Clan.java (working copy) @@ -2186,7 +2186,7 @@ member.broadcastUserInfo(); } - private void checkCrests() + public void checkCrests() { if (_crestId != 0) { Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 4) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -3118,7 +3118,7 @@ L2GameClient client = _client; if (client != null) { - if (client.isDetached()) + if (client.isDetached()|| client.isFakePlayer()) client.cleanMe(true); else { @@ -8890,6 +8890,17 @@ _validBypass2.add(bypass); } + public boolean fakeplayer = false; + + public boolean getfakeplayer() + { + return fakeplayer; + } + public void setfakeplayer(boolean fake) + { + fakeplayer = fake; + } + public synchronized boolean validateBypass(String cmd) { for (String bp : _validBypass) Index: java/net/sf/l2j/gameserver/model/entity/FakeOnline.java =================================================================== --- java/net/sf/l2j/gameserver/model/entity/FakeOnline.java (revision 0) +++ java/net/sf/l2j/gameserver/model/entity/FakeOnline.java (revision 0) @@ -0,0 +1,92 @@ +package net.sf.l2j.gameserver.model.entity; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.logging.Level; +import java.util.logging.Logger; + +import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.LoginServerThread; +import net.sf.l2j.gameserver.model.L2Clan; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.model.itemcontainer.ItemContainer; +import net.sf.l2j.gameserver.network.L2GameClient; +import net.sf.l2j.gameserver.network.L2GameClient.GameClientState; + +/** + * @author FOFAS + * + */ +public class FakeOnline +{ + private static Logger _log = Logger.getLogger(FakeOnline.class.getName()); + //select fake player + private static final String LOAD_OFFLINE_STATUS = "SELECT * FROM fakeplayer"; + //insert fake player + private static final String SET_OFFLINE_STATUS = "INSERT INTO fakeplayer (charId) VALUES (?)"; + + public static void restoreFakePlayers() + { + int nfakeplayer = 0; + try (Connection con = L2DatabaseFactory.getInstance().getConnection()) + { + PreparedStatement stm = con.prepareStatement(LOAD_OFFLINE_STATUS); + ResultSet rs = stm.executeQuery(); + while (rs.next()) + { + L2PcInstance player = null; + try + { + L2GameClient client = new L2GameClient(null); + client.setFakePlayer(true); + player = L2PcInstance.restore(rs.getInt("charId")); + client.setActiveChar(player); + player.setOnlineStatus(true, false); + client.setAccountName(player.getAccountName()); + client.setState(GameClientState.IN_GAME); + player.setClient(client); + player.spawnMe(player.getX(), player.getY(), player.getZ()); + LoginServerThread.getInstance().addGameServerLogin(player.getAccountName(), client); + ItemContainer items = player.getInventory(); + items.restore(); + L2Clan clan = player.getClan(); + clan.checkCrests(); + player.setfakeplayer(true); + player.setOnlineStatus(true, true); + player.restoreEffects(); + player.broadcastUserInfo(); + nfakeplayer++; + } + catch (Exception e) + { + _log.log(Level.WARNING, "FakePlayer: Error loading trader: "+player,e); + if (player != null) + { + player.deleteMe(); + } + } + } + rs.close(); + stm.close(); + _log.info("Loaded: " +nfakeplayer+ " Fake player(s)"); + } + catch (Exception e) + { + _log.log(Level.WARNING, "FakePlayer: Error while loading FakePlayer: ",e); + } + } + + public static void setfakeplayers(L2PcInstance player) + { + try (Connection con = L2DatabaseFactory.getInstance().getConnection()) + { + PreparedStatement statement = con.prepareStatement(SET_OFFLINE_STATUS); + statement.setInt(1, player.getObjectId()); + statement.execute(); + statement.close(); + } + catch (Exception e) + {} + } +} Index: java/net/sf/l2j/gameserver/network/L2GameClient.java =================================================================== --- java/net/sf/l2j/gameserver/network/L2GameClient.java (revision 4) +++ java/net/sf/l2j/gameserver/network/L2GameClient.java (working copy) @@ -194,7 +194,7 @@ public void sendPacket(L2GameServerPacket gsp) { - if (_isDetached) + if (_isDetached || _isfakeplayer) return; getConnection().sendPacket(gsp); @@ -291,6 +291,18 @@ } } + private boolean _isfakeplayer = false; + + public boolean isFakePlayer() + { + return _isfakeplayer; + } + + public void setFakePlayer(boolean b) + { + _isfakeplayer = b; + } + public static void deleteCharByObjId(int objid) { if (objid < 0) @@ -489,6 +501,9 @@ public void closeNow() { _isDetached = true; // prevents more packets execution + + _isfakeplayer = true; + close(ServerClose.STATIC_PACKET); synchronized (this) { @@ -538,7 +553,7 @@ try { - if (getActiveChar() != null && !isDetached()) + if (getActiveChar() != null && !isDetached() || !isFakePlayer()) { setDetached(true); fast = !getActiveChar().isInCombat() && !getActiveChar().isLocked(); @@ -633,7 +648,7 @@ */ public boolean dropPacket() { - if (_isDetached) // detached clients can't receive any packets + if (_isDetached || _isfakeplayer) // detached clients can't receive any packets return true; // flood protection @@ -756,7 +771,7 @@ if (packet == null) // queue is empty return; - if (_isDetached) // clear queue immediately after detach + if (_isDetached || _isfakeplayer) // clear queue immediately after detach { _packetQueue.clear(); return; Index: Roar_gameserver/java/com/l2jfresh/gameserver/handler/VoicedCommandHandler.java =================================================================== --- Roar_gameserver/java/com/l2jfresh/gameserver/handler/VoicedCommandHandler.java (revision 62) +++ Roar_gameserver/java/com/l2jfresh/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -22,6 +22,7 @@ import com.l2jfresh.gameserver.handler.voicedcommandhandlers.BankingCmd; import com.l2jfresh.gameserver.handler.voicedcommandhandlers.DMVoicedInfo; import com.l2jfresh.gameserver.handler.voicedcommandhandlers.Donator; +import com.l2jfresh.gameserver.handler.voicedcommandhandlers.FakePlayerOnline; import com.l2jfresh.gameserver.handler.voicedcommandhandlers.Leave; import com.l2jfresh.gameserver.handler.voicedcommandhandlers.OnlinePlayers; import com.l2jfresh.gameserver.handler.voicedcommandhandlers.Pin; @@ -67,6 +68,7 @@ + registerHandler(new FakePlayerOnline()); } public void registerHandler(IVoicedCommandHandler handler) Index: Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java =================================================================== --- Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java (revision 0) +++ Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java (revision 0) @@ -0,0 +1,35 @@ +package com.l2jfresh.gameserver.handler.voicedcommandhandlers; + +import com.l2jfresh.gameserver.handler.IVoicedCommandHandler; +import com.l2jfresh.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfresh.gameserver.model.custom.FakeOnline; + +/** + * @author FOFAS + * + */ +public class FakePlayerOnline implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = {"fakeplayer"}; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance player, String target) + { + if (command.equalsIgnoreCase("fakeplayer")) + { + if (player != null) + { + FakeOnline.setfakeplayers(player); + player.setfakeplayer(true); + player.deleteMe(); + player.logout(); + } + } + return true; + } + @Override + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} Index: Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java =================================================================== --- Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java (revision 0) +++ Roar_gameserver/java/com/l2jfresh/gameserver/handler/voicedcommandhandlers/FakePlayerOnline.java (revision 0) @@ -0,0 +1,35 @@ +package com.l2jfresh.gameserver.handler.voicedcommandhandlers; + +import com.l2jfresh.gameserver.handler.IVoicedCommandHandler; +import com.l2jfresh.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfresh.gameserver.model.custom.FakeOnline; + +/** + * @author FOFAS + * + */ +public class FakePlayerOnline implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = {"fakeplayer"}; + + @Override + public boolean useVoicedCommand(String command, L2PcInstance player, String target) + { + if (command.equalsIgnoreCase("fakeplayer")) + { + if (player != null) + { + FakeOnline.setfakeplayers(player); + player.setfakeplayer(true); + player.deleteMe(); + player.logout(); + } + } + return true; + } + @Override + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +}
  18. Finally, I am glad to announce the opening The grand opening will be on 12/2/16 Time : 18:00 GMT +2 Be there! http://l2short.com/f...-event/#entry11
  19. eistai gia ton poutso buy fofas :) :) :)
  20. hahahaha frozen retail fail fail
  21. Thanks you very match soon new features balance work 2 month and work 100%
×
×
  • Create New...