Horus Posted September 10, 2009 Share Posted September 10, 2009 Alright. So I'm guessing most of you know I don't comply with Interlude Projects and I don't offer them help at all. But this time I decided to open an exception and give help to an old friend. Here's the result: Gracia Final: @Override protected void onForcedDisconnection() { if (_log.isDebugEnabled()) _log.info("Client " + toString() + " disconnected abnormally."); if(_activeChar.isInOlympiadMode()) { final String POINTS = "olympiad_points"; final int charId = _activeChar.getObjectId(); OlympiadGame game = Olympiad.getInstance().getOlympiadGames().get(_activeChar.getOlympiadGameId()); L2PcInstance _opponent = L2World.getInstance().getPlayer(_activeChar.getOlympiadOpponentId()); final StatsSet playerStat = Olympiad.getNobleStats(charId); final int playerPoints = playerStat.getInteger(POINTS); final int lostPoints = playerPoints / 3; playerStat.set(POINTS, playerPoints - lostPoints); Olympiad.updateNobleStats(charId, playerStat); SystemMessage sm = new SystemMessage(SystemMessageId.C1_HAS_LOST_S2_OLYMPIAD_POINTS); sm.addString(_activeChar.getName()); sm.addNumber(lostPoints); _opponent.sendPacket(sm); _log.info("Olympiad Fighter " + _activeChar.getName() + " has been Punished and Lost " + lostPoints + " Points."); } } Interlude: Well just click here since I made that lool. What does it do ? Basically if the player disconnects from Olympiad (Ctrl + Alt + Del) his Olympiad Points are reduced to 1 / 3 and displays the information to his opponent. The thing is you'll have to change the visibility of some methods however, if you don't want to do this the best way is to make a new method on OlympiadGame and just call it from L2GameClient. Hope you find it useful. Link to comment Share on other sites More sharing options...
razelinio7 Posted September 12, 2009 Share Posted September 12, 2009 very good thx Link to comment Share on other sites More sharing options...
disast3r Posted September 12, 2009 Share Posted September 12, 2009 great share :D Thanks ::) Link to comment Share on other sites More sharing options...
Neo1993k Posted September 12, 2009 Share Posted September 12, 2009 great share, thx Link to comment Share on other sites More sharing options...
Alexi Posted September 16, 2009 Share Posted September 16, 2009 i was searching for something like this thnx a lot Link to comment Share on other sites More sharing options...
politsopoulos Posted September 16, 2009 Share Posted September 16, 2009 nice thnx Link to comment Share on other sites More sharing options...
Nik Posted September 16, 2009 Share Posted September 16, 2009 hmm... refresh my memory, wasnt such thing applied to l2j long time ago (gracia pt 2 i think) Link to comment Share on other sites More sharing options...
Horus Posted September 28, 2009 Author Share Posted September 28, 2009 and i think that is dedis muteli da ormoci kachagi English only in this Section. Please don't make me punish you. Respect the rules and you'll be respected ;) Link to comment Share on other sites More sharing options...
~Greedy~ Posted September 28, 2009 Share Posted September 28, 2009 English only in this Section. Please don't make me punish you. Respect the rules and you'll be respected ;) Respect rules? i think he havent even tryed to read rules Link to comment Share on other sites More sharing options...
killer666 Posted October 2, 2009 Share Posted October 2, 2009 only usefull? thanx very much! if i was a platinum member i give +1 karma! someone must give you 100% thanx! Link to comment Share on other sites More sharing options...
Boorinio Posted May 29, 2010 Share Posted May 29, 2010 Well i was getting an error here:C1_HAS_LOST_S2_OLYMPIAD_POINTS until i changed it to that:S1_HAS_LOST_S2_OLYMPIAD_POINTS did i did something wrong? (interlude code latest l2j ) Link to comment Share on other sites More sharing options...
Guma! Posted May 30, 2010 Share Posted May 30, 2010 you added this code? java/net/sf/l2j/gameserver/network/SystemMessageId.java /** * ID: 782<br> * Message: $s1 Has Lost $s2 Olympiad Points. */ C1_HAS_LOST_S2_OLYMPIAD_POINTS(782); Link to comment Share on other sites More sharing options...
Boorinio Posted May 30, 2010 Share Posted May 30, 2010 you added this code? java/net/sf/l2j/gameserver/network/SystemMessageId.java /** * ID: 782<br> * Message: $s1 Has Lost $s2 Olympiad Points. */ C1_HAS_LOST_S2_OLYMPIAD_POINTS(782); nop i just did thanks guma :D Link to comment Share on other sites More sharing options...
Setekh Posted June 4, 2010 Share Posted June 4, 2010 This code can kill SelectorThread, DON'T USE IT! Locked. Link to comment Share on other sites More sharing options...
Recommended Posts