Jump to content
  • 0

can't solve it


MoNsT3ReN4RgY

Question

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

  • 0
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
  • Topics

×
×
  • Create New...