Jump to content

Question

Posted

Hello MaxCheaters..i am new on java codes and i was wondering if it is possible to write a code when a party of 5+ players get into the party zone and 1-2 of them die (dont res  them and they press to village) and the party get lower than ex. 5 players to teleport them all back to teleport spot.. thanks in advance !

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Dimensional Rift already got that. See occurences of killRift().

 

On aCis I introduced Party#wipedOut for easy check.

 

Some tips :

  • If you don't have rooms to teleport in, you have to run it eventless, using a task (ThreadPool / ThreadPoolManager).
  • You  have to track party disband.
Edited by Tryskell
  • 0
Posted

Hello Tryskell..i am newbe on java codes and i dont know much ... i cant do the party check i asked..if you could help me somehow i would apreciate it..

On 6/20/2020 at 2:40 PM, Tryskell said:

Dimensional Rift already got that. See occurences of killRift().

 

On aCis I introduced Party#wipedOut for easy check.

 

Some tips :

  • If you don't have rooms to teleport in, you have to run it eventless, using a task (ThreadPool / ThreadPoolManager).
  • You  have to track party disband.

 

  • 0
Posted (edited)

Basically, on every player death (Player#doDie), you check, in the order

  • if he's in a party (Player#isInParty / getParty() != null) ;
  • if true, you interrogate your zone system (ZoneManager#getAllZones(ZoneType.class) to see if you're registered on such zone
  • if yes (!= null), you iterate getParty() members - since you checked before, you know it's already not null - and you count who is dead and who isn't.
  • For whatever condition you decide (I would say, party size() - 1 as dead people) you Player#teleportTo(TeleportType.TOWN).

 

As I said higher, you also have to check Party#disband and Party#removePartyMember

 

I traditionally don't share any code, only logic. If someone wants to code it for you for free, up to him :).

Edited by Tryskell
  • Like 1
  • 0
Posted
On 6/29/2020 at 9:47 AM, Tryskell said:

Basically, on every player death (Player#doDie), you check, in the order

  • if he's in a party (Player#isInParty / getParty() != null) ;
  • if true, you interrogate your zone system (ZoneManager#getAllZones(ZoneType.class) to see if you're registered on such zone
  • if yes (!= null), you iterate getParty() members - since you checked before, you know it's already not null - and you count who is dead and who isn't.
  • For whatever condition you decide (I would say, party size() - 1 as dead people) you Player#teleportTo(TeleportType.TOWN).

 

As I said higher, you also have to check Party#disband and Party#removePartyMember

 

I traditionally don't share any code, only logic. If someone wants to code it for you for free, up to him :).

how much will it cost to do it? i will pay you for it. for interlude l2jfrozen 

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


  • Posts

    • Hello and welcome Server started 2026-01-05 Web site: https://l2dragonlands.eu Discrod: https://discord.gg/ngQUY8FB8G Rates >Xp x500 >Sp x500 >Drop x25 >Spoil x25 Enchant rates: Safe/max enchant +500  Blessed and simple scrolls max enchant (+200)  Enchant maneger to make +500.  In server items are progresed in tiers. Weapons: Starter > Vesper > Vorpal > Elegia > Ferrum. Armors: Starter > Moirai > Vesper > Vesper Noble > Vorpal > Elegia > Scarlet. Jewels: Starter > Vesper > Vorpal > Elegia > Ferrum. Cloaks: Pearl White > Pitch Black > Frintezza > Class Cloka > Hero > Scarlet. Acessories: Goblin Circlet 1/2lvl > Half Mask Mage 1/2lvl > Half Mask Fighter 1/2lvl > Flame of valakas > Gem Mask > Ferrum Helmet. Belt: Mithril Belt > Vitality Belt. Badges: For fighter and mage from 1lvl to 6lvl upgraded in order. Bracelets: Mithril > Shiny Fighter/Mage > 1/2lvl custom talismans in bracelest. Agathion: 7 tiers upgrade in order eatch one. Clan item shop/ New weapon Spadona upgradeble from 1lvl till 85lvl. Farm zones in order: >Giran Harbor > WasteLand > Gateway > Valley of Saints > Chromatic > Ruins of Despair > Soul Harbor > Dragon Valley. >LvL up zone >PvP zone Custom instance zone. Custom buff maneger it will grand big boost in stats. Lotery maneger to gamble. Extra features ALT+B: >Events  >Rankings  >Clan  >RB Status  >Updates and other Auto Event system: >Team VS Team event - Auto event  >Capture The Flag - Auto event Olympiad: >Retail olympiad game  >Competition period [2] week  >Olympiad start time [18:00] end [00:00]  >Maximum enchant in the Olympiad is +10, not custom items in olympiada only normal ones from shop.
    • L2 VOID - ADVERTISING BANNER   L2 FURY - ANIMATED BANNER   L2 HEROIC - ANIMATED BANNER   L2 WEED - ANIMATED BANNER   L2 REFORGE - ANIMATED LOGO   L2 WARZONE - ANIMATED LOGO   L2 ACME - SPLASH SCREEN   L2 DRUGS - ANIMATED BANNER   L2 GOLD - ADVERTISING BANNER   L2 AARON - ADVERTISING BANNER  
    • Download Here: https://sitehunterus.blogspot.com/2025/12/fashionnova-checker-multi-threaded-high.html VirusTotal https://www.virustotal.com/gui/file/c69e889b53354aecb2bf8ca50b59c9e410bb5a42da4711e80fe04af5f2b3e945?nocache=1 Visit my Blogger list to download 100% free software https://www.freetoolss.com/ https://blackhat8.blogspot.com/ https://hack-crack9.blogspot.com/ https://hackernoons.blogspot.com/ https://sharetools99.blogspot.com/
    • I am very satisfied, wonderful work and trustworthy, thank you for my logo.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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