Jump to content
  • 0

Question

Posted

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? :)

Recommended Posts

  • 0
Posted

Look at the modification in L2PcInstance on the onAction() method and do the same in the onActionShift() method (which is in L2PcInstance too).

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted (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 >.< 34iftlc.png

Edited by AccessDenied
  • 0
Posted

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:
  • 0
Posted

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!

  • 0
Posted

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

  • 0
Posted

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:

  • 0
Posted

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

  • 0
Posted

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;
}
  • 0
Posted

Baggos... :lol:

He want to leave party when player teleporting to event.

 

 

 

And what about "leave party" when teleporting to event?

  • 0
Posted

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

 

Guest
This topic is now closed to further replies.



  • Posts

    • interlude: l2acis uber alles
    • New Dragon-Network Server – Vote Now!   We’re launching a new Dragon-Network (Multiskill) server under a new domain, created by the original Classic-Interlude team. We no longer have access to the old domain, but this is the official continuation — not a scam, just a new home. The new domain will host: A main migrated server (nothing lost – all chars/items kept) Plus seasonal servers (voted by players) All seasonal progress will be merged into the main realm Help shape the new server – vote now: https://dragon-network.eu/   Let’s build the future of DN – together.
    • Hello there, Im beyond confused and dont know what path to take. I want to start working on a L2 server, changing some stuff here and there and finally in the future if  im happy with the results, to launch the server, but... L2j or L2off? After all this years, is there a Interlude L2j close to off?   Ive spent some time lookin over this forum, searching what would be better and what files to take but I ain't near to a clear answer.  Most of the time everyone is trowing stones at everyone, "your filles are trash, my filles are good" and viceversa. Therefore, Im reaching out to a knowledge guy, hopefully from a neutral position to all this drama, that can pin point me in a direction.    To explain what I want for a base start is an Interlude with a classic interface (features), low rate. Mostly what this guy TravorJ is describing in his post TravorJ post , and to do some reworks on it, ex: mobs drop, rethink the augment system/interface, rethink learning skills/enchant skills, create some custom potions/buff effects, siege mechanics... Is that possible on off files? or is better to go with L2j? I also want to mention that I have little to none L2 dev experince (13-15yrs ago I had an L2j server running  for a month where I made some basics changes), but I have coding background so Im used to that and more than willing to learn.   So in conclusion, I dont want to get some free shared files without any support, that I need to wrap my head around and fix stuff for long time to make them work, stuff thats already fixed buy someone else. Instead im looking to buy something thats more updated and start working from there. Question is what and from whom? Kinda sux when you go and buy something and u dont know what the hell are you buying (need some guidance here)   Is L2j Orion a good choice? I saw that is regularly updated. Lucera2 I dont think is something that I want cuz they dont sell soruce, prefer to have control and not to be dependent on someone to much...   Big thanks in advance!   
    • L2 INSIDE - HTML DESIGN     Portfolio - protojahdesigns.com You can also join Protojah Designs Discord
  • Topics

×
×
  • 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