Jump to content

Recommended Posts

Posted

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.

  • 2 weeks later...
Posted

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 ;)

Posted

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

  • 7 months later...
Posted

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 )

Posted

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); 

Posted

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

Guest
This topic is now closed to further replies.


  • Posts

    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Okay, I understand. First, to get started by contributing to open projects and learning along the way. Then, when you mention starting my own project privately, do you mean taking a free datapack like L2jMobius and trying to make it functional for an online server? Great, thank you very much — all this information is really helpful. I’ve been reaching out to several server admins here in Argentina, but it seems like none of them have the time or interest to take on an intern or assistant. xd   P.S.: Are you the creator of Hopzone? Brings back memories of when I was a kid, downloading servers at the cyber café. For two dollars, I could spend the whole day playing and eating candy like crazy.   Another question: between L2jMobius, L2jServer, and aCis, which one has ALL of its code free? As you probably noticed, I'm using ChatGPT to help me translate things, lol, and it suggested the following: Project Status Open Source Accepts Juniors? Difficulty L2JMobius Very active Semi-closed Partially (with patches) Medium-High L2JServer Active Fully open Yes (directly on GitHub) Medium aCis Semi-active Unofficial Not very clear Low
    • @Logan22 Are you logan from mmo-dev forum?
  • Topics

×
×
  • Create New...