Jump to content

Recommended Posts

Posted

Very cool code also ponyrider always god :P

 

Why you tell 'god'? You and Extreamer? :P  (I am in "what's going here" situation xd)

Posted
anyway thats just the basics. To work normally without bugs you have to add restrictions and new damage message system in olympiad to cover the names completely.

Author noticed it too , I just saw it lol :P , anyway the way can be helpfull so.. good luck :P

Posted

We need such of ideas. :)

Gj.

It's already shared like 2 times(?), so it's nothing new, but well.. :P

Posted

 

62    protected String _playerOneName;
63    protected String _playerTwoName;
64 +    protected String _try1;
65 +    protected String _try2;

100            _players = list;
101            _playerOne = list.get(0);
102            _playerTwo = list.get(1);
103            
104            try
105            {
106    +            _try1 = _playerOne.getClassId().name();
107    +            _try2 = _playerTwo.getClassId().name();

921    protected String getTitle()
922    {
923        String msg = "";
924    -    msg += _playerOneName + " / " + _playerTwoName;
924 + msg += _try1 + " vs " + _try2;
925        return msg;
926    }

 

where to add this ? Acis :S :S 

Posted

Interesting. I think yes it could be done something like this:

### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java	(revision 1)
+++ java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java	(working copy)
@@ -151,7 +151,18 @@
 				SystemMessage smsg;
 				// Send a System Message to the L2PcInstance
 				smsg = SystemMessage.getSystemMessage(SystemMessageId.S1_GAVE_YOU_S2_DMG);
-				smsg.addCharName(attacker);
+				if(attacker instanceof L2PcInstance)
+				{
+					L2PcInstance atcker = (L2PcInstance) attacker;
+					if(atcker.isInOlympiadMode())
+						smsg.addString("Chalenger");
+					else
+						smsg.addPcName(atcker);
+				}
+				else
+				{
+					smsg.addCharName(attacker);
+				}
 				smsg.addNumber(fullValue);
 				getActiveChar().sendPacket(smsg);
 				

But I think it's not all , these systemmessages are available in more than this class. That's only the way. So to be "pro" , this part needs to be added of course :P

 

You should do that with PetStatus & L2Skill as well.

Posted

You should do that with PetStatus & L2Skill as well.

 

Ofc, I know I just gave the way :P

Anyway Ivan Pires gave the best answer, ready code.

  • 2 weeks later...
Posted

It's already shared like 2 times(?), so it's nothing new, but well.. :P

well i didn't know that is shared already.. i actually was working on this when i had no internet so i didn't know about dat. anyway ;p

  • 11 months later...
Posted

Interesting. I think yes it could be done something like this:

### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java	(revision 1)
+++ java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java	(working copy)
@@ -151,7 +151,18 @@
 				SystemMessage smsg;
 				// Send a System Message to the L2PcInstance
 				smsg = SystemMessage.getSystemMessage(SystemMessageId.S1_GAVE_YOU_S2_DMG);
-				smsg.addCharName(attacker);
+				if(attacker instanceof L2PcInstance)
+				{
+					L2PcInstance atcker = (L2PcInstance) attacker;
+					if(atcker.isInOlympiadMode())
+						smsg.addString("Chalenger");
+					else
+						smsg.addPcName(atcker);
+				}
+				else
+				{
+					smsg.addCharName(attacker);
+				}
 				smsg.addNumber(fullValue);
 				getActiveChar().sendPacket(smsg);
 				

But I think it's not all , these systemmessages are available in more than this class. That's only the way. So to be "pro" , this part needs to be added of course :P

dont forget the sumon's damage

 

if (tDmg > 0)
				{
					smsg = SystemMessage.getSystemMessage(SystemMessageId.SUMMON_RECEIVED_DAMAGE_S2_BY_S1);
				-	smsg.addCharName(attacker);
				+	if(attacker instanceof L2PcInstance)
				+	{
				+		L2PcInstance atcker = (L2PcInstance) attacker;
				+		if(atcker.isInOlympiadMode())
				+			smsg.addString("Chalenger");
				+		else
				+			smsg.addPcName(atcker);
				+	}
				+	else
				+	{
				+		smsg.addCharName(attacker);
				+	}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock