Jump to content

Question

Posted

i have added this code on L2Party.java..what i am trying to do is when a pparty is inside the zone and the members goes less than 5 teleport them back to town but it's not working.

 

 

            removePartyMember(player);
        if (!player.isInsideZone(L2Character.ZONE_PARTYZONE))
        if (getMemberCount() <= 5)
            getPartyMembers().forEach(s -> s.teleToLocation(TeleportWhereType.Town));

5 answers to this question

Recommended Posts

  • 0
Posted
3 hours ago, Rootware said:

Funny code. If party member already locates in town he will also teleported to nearest town. Feel free for making expand checks for exotic cases.

Dude i am trying to make it work ..i dont know to code it so good as you do..for you might be 2-3 mins work but for me it's hour/hours :embarrassed: 

  • 0
Posted
2 hours ago, MoNsT3ReN4RgY said:

Dude i am trying to make it work ..i dont know to code it so good as you do..for you might be 2-3 mins work but for me it's hour/hours :embarrassed: 

 

Not need special knowledge except simply logic and basic Java lessons. Special knowledge by L2J architecture we will tips you.

  • 0
Posted
17 hours ago, Rootware said:

 

Not need special knowledge except simply logic and basic Java lessons. Special knowledge by L2J architecture we will tips you.

ok dude thanks for your time :aproove-smile: also i want to say that i am half russian :victory:

Guest
This topic is now closed to further replies.


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