Lioy Posted August 5, 2014 Posted August 5, 2014 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) Quote
Extreamer Posted August 5, 2014 Posted August 5, 2014 Instead of chat do something like this ShowScreenMessage( "S1_GAVE_YOU_S2_DMG"", 10000); or something along those lines, maybe.. Quote
Lioy Posted August 5, 2014 Posted August 5, 2014 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 Quote
Extreamer Posted August 5, 2014 Posted August 5, 2014 hahaha * oh well we could always improve it! Quote
SweeTs Posted August 6, 2014 Posted August 6, 2014 We need such of ideas. :) Gj. It's already shared like 2 times(?), so it's nothing new, but well.. :P Quote
MeVsYou Posted August 6, 2014 Posted August 6, 2014 (edited) Really?? Ok but it is my first time seeing it, so it is a gj. :D Edited August 6, 2014 by MeVsYou Quote
Ivan Pires Posted August 7, 2014 Posted August 7, 2014 (edited) Already have it on antifeed oly. :) Here: http://pastebin.com/Fq93XjvH Edited August 7, 2014 by Ivan Pires Quote
GoAway Posted August 7, 2014 Posted August 7, 2014 Already have it on antifeed oly. :) Here: http://pastebin.com/Fq93XjvH Omg in the first view looks nice. I am goint to test it :) Quote
Thug!! Posted August 11, 2014 Posted August 11, 2014 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 Quote
Trance Posted August 12, 2014 Posted August 12, 2014 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. Quote
Lioy Posted August 12, 2014 Posted August 12, 2014 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. Quote
te0x Posted August 22, 2014 Author Posted August 22, 2014 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 Quote
ArkeyWave Posted August 8, 2015 Posted August 8, 2015 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); + } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.