rullezz Posted July 31, 2016 Share Posted July 31, 2016 Hello, i using this TvT Event on aCis re 362. http://pastebin.com/GWcRXUXj When i press SHIFT button i can target another players which are not participated at event....and players which don't participated at event can target with SHIFT button players wich are participated at event. How i can fix it? :) Link to comment Share on other sites More sharing options...
0 Tessa Posted July 31, 2016 Share Posted July 31, 2016 Look at the modification in L2PcInstance on the onAction() method and do the same in the onActionShift() method (which is in L2PcInstance too). Link to comment Share on other sites More sharing options...
0 rullezz Posted July 31, 2016 Author Share Posted July 31, 2016 Look at the modification in L2PcInstance on the onAction() method and do the same in the onActionShift() method (which is in L2PcInstance too). Thnx you i did it, it's work now. And what about "leave party" when teleporting to event and "can't join" party with non participated players? :D Link to comment Share on other sites More sharing options...
0 SweeTs Posted July 31, 2016 Share Posted July 31, 2016 Its simple check, think, you can do this.. Link to comment Share on other sites More sharing options...
0 rullezz Posted July 31, 2016 Author Share Posted July 31, 2016 Its simple check, think, you can do this.. as i told you some weeks ago...i learning and try to make something different...not again an boring farm or craft server. let me do some experiments with code about join and leave party and then i post my results. :D if you want you can give me the right way where to put check :P Link to comment Share on other sites More sharing options...
0 AccessDenied Posted July 31, 2016 Share Posted July 31, 2016 (edited) Thnx you i did it, it's work now. And what about "leave party" when teleporting to event and "can't join" party with non participated players? :D You mean that you want block leaving party when teleporting? go at RequestWithDrawalParty.java and add a simple check if (activeChar.isInFunEvent()) return; Also don't tell SweeTs "i want make something different" cause he will rofl for hours in the end trust me. After all we've seen in this forum, this "different" is idk how to say... waste. Keep what u do for you. Also when we started learning about l2j we didn't even have youtube guides or tuts.. you know how many days i spended in solve problems? At least you got plenty of help and many guides to help you so.. Tessa stop being so fucking adorable >.< Edited July 31, 2016 by AccessDenied Link to comment Share on other sites More sharing options...
0 Tessa Posted July 31, 2016 Share Posted July 31, 2016 as i told you some weeks ago...i learning and try to make something different...not again an boring farm or craft server. let me do some experiments with code about join and leave party and then i post my results. :D if you want you can give me the right way where to put check :P No, you try first, and we can guide you... it's better for you, believe me. :lol: Link to comment Share on other sites More sharing options...
0 rullezz Posted July 31, 2016 Author Share Posted July 31, 2016 You mean that you want block leaving party when teleporting? go at RequestWithDrawalParty.java and add a simple check if (activeChar.isInFunEvent()) return; Also don't tell SweeTs "i want make something different" cause he will rofl for hours in the end trust me. After all we've seen in this forum, this "different" is idk how to say... waste. Keep what u do for you. Also when we started learning about l2j we didn't even have youtube guides or tuts.. you know how many days i spended in solve problems? At least you got plenty of help and many guides to help you so.. not blocking leave party...when teleporting to event everybody who have party - leave it. And ..yeap about "differen" at this forum...after you seen all this crappy -beep- servers with frozen packs and another -beep-, some one maybe thinking what i am another one lazy ass :P but i don't, i take aCis without any custom mode/shit/blablabla and try to adapt/make/fix/blablabla by my self and of cource with your help <3 No, you try first, and we can guide you... it's better for you, believe me. :lol: i agree with you ;) after experements with code i will post what i did. Thnx you guys! Link to comment Share on other sites More sharing options...
0 AccessDenied Posted July 31, 2016 Share Posted July 31, 2016 not blocking leave party...when teleporting to event everybody who have party - leave it. And ..yeap about "differen" at this forum...after you seen all this crappy -beep- servers with frozen packs and another -beep-, some one maybe thinking what i am another one lazy ass :P but i don't, i take aCis without any custom mode/shit/blablabla and try to adapt/make/fix/blablabla by my self and of cource with your help <3 i agree with you ;) after experements with code i will post what i did. Thnx you guys! So you want a code so parties break when teleporting? Simply find the Array or List whatever hold your players that are participating and do a loop for each one for (L2PcInstance object : _players) if (player.getParty() !=null) player.getParty().leave(); <-- or something similar i dont remember the method Link to comment Share on other sites More sharing options...
0 Tessa Posted July 31, 2016 Share Posted July 31, 2016 So you want a code so parties break when teleporting? Simply find the Array or List whatever hold your players that are participating and do a loop for each one for (L2PcInstance object : _players) if (player.getParty() !=null) player.getParty().leave(); <-- or something similar i dont remember the method It already loops through the participants to teleport them... once again, just saying. :lol: Link to comment Share on other sites More sharing options...
0 AccessDenied Posted July 31, 2016 Share Posted July 31, 2016 It already loops through the participants to teleport them... once again, just saying. :lol: Lel i try give him an example I know that it loop the list to teleport the teams Link to comment Share on other sites More sharing options...
0 'Baggos' Posted July 31, 2016 Share Posted July 31, 2016 TvtEvent.java if (playerInstance == null) continue; // implements Runnable and starts itself in constructor new TvTEventTeleporter(playerInstance, team.getCoordinates(), false, false); } } + + // Remove player from his party + for (TvTEventTeam team : _teams) + { + for (String playerName : team.getParticipatedPlayerNames()) + { + L2PcInstance playerInstance = team.getParticipatedPlayers().get(playerName); + final L2Party party = playerInstance.getParty(); + if (party != null) + party.removePartyMember(playerInstance, MessageType.Expelled); + } + } + return true; } Link to comment Share on other sites More sharing options...
0 Tessa Posted July 31, 2016 Share Posted July 31, 2016 Baggos... :lol: Link to comment Share on other sites More sharing options...
0 'Baggos' Posted July 31, 2016 Share Posted July 31, 2016 Baggos... :lol: He want to leave party when player teleporting to event. And what about "leave party" when teleporting to event? Link to comment Share on other sites More sharing options...
0 Tessa Posted July 31, 2016 Share Posted July 31, 2016 He want to leave party when player teleporting to event. Yeah, but this... :lol: TvtEvent.java if (playerInstance == null) continue; // implements Runnable and starts itself in constructor new TvTEventTeleporter(playerInstance, team.getCoordinates(), false, false); } } + + // Remove player from his party + for (TvTEventTeam team : _teams) + { + for (String playerName : team.getParticipatedPlayerNames()) + { + L2PcInstance playerInstance = team.getParticipatedPlayers().get(playerName); + final L2Party party = playerInstance.getParty(); + if (party != null) + party.removePartyMember(playerInstance, MessageType.Expelled); + } + } + return true; } Link to comment Share on other sites More sharing options...
0 AccessDenied Posted July 31, 2016 Share Posted July 31, 2016 (edited) Yeah, but this... :lol: xaxaxa baggos xD you so cute but nah :P Edited July 31, 2016 by AccessDenied Link to comment Share on other sites More sharing options...
Question
rullezz
Hello, i using this TvT Event on aCis re 362.
http://pastebin.com/GWcRXUXj
When i press SHIFT button i can target another players which are not participated at event....and players which don't participated at event can target with SHIFT button players wich are participated at event.
How i can fix it? :)
Link to comment
Share on other sites
36 answers to this question
Recommended Posts