Jump to content
  • 0

acis have problem with packets


Question

Posted (edited)

hello i have make a automatically party create for event's but i have big problem with

packets like i have open 6 box like 3vs3 in one team i see last player and have double add same player

like

1 tester

2 tester1

3 tester2

4 tester2

 

all is good on event he add 3 player pet party and in party.java use same 3 vs 3 add

i use threadpool if maybe have problem with fast add and with delay he make party good

as normal

image for hava a idea

 

so how can help or tell me whare is the problem? i have test it all.

and code is this

Spoiler

    // create party players
    public void createPartyOfTeam(int teamId)
    {
        
        final List<PcInstance> _players = new ArrayList<>();
        
        for (PcInstance p : players.keySet())
        {
            if (getTeam(p) == teamId)
            {
                if (p.isInParty())
                {
                    p.getParty().removePartyMember(p, MessageType.EXPELLED);
                }
                System.out.println(p.getName() + "   ");
                _players.add(p);
            }
        }
        
        if (_players.size() >= 2)
        {
            int i = 0;
            PcInstance leader = _players.get(0);
            Party party = new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);
            leader.setParty(party);
            
            
            for (PcInstance player : _players)
            {
                if (i < 2)
                {
                    i++;
                }
                else
                {
                    party.addPartyMember(player);
                    player.setParty(party);
                    i++;
                }
            }
            Announcement.announceToAll("i time run " + i);
            
        }
    }

 

Edited by tazerman2

10 answers to this question

Recommended Posts

  • 0
Posted
1 minute ago, Tryskell said:

Recode your crap.

You should recode most of your crap instead of just renaming, just saying.

  • 0
Posted (edited)

leader.setParty(party);

player.setParty(party);

this don't needed on code 

 

on new Party(leader, _players.get(1), LootRule.ITEM_RANDOM);

they set leader.setParty(party);

and on  party.addPartyMember(player); has set for player.setParty(party);

 

this method can create max 1 party 

because new party is up of for 

try this

 // create party players
    public void createPartyOfTeam(int teamId)
    {
        
        final List<PcInstance> _players = new ArrayList<>();
        
        for (PcInstance p : players.keySet())
        {
            if (getTeam(p) == teamId)
            {
                if (p.isInParty())
                   p.getParty().removePartyMember(p, MessageType.EXPELLED);
              
                _players.add(p);
            }
        }
        
		int i = 0;
		PcInstance leader = null;
		Party party = null;

		for (PcInstance player : _players)
		{
			if (i == 0)
				leader = player;
			else if (i == 1 || party == null)
				party = new Party(leader, player, LootRule.ITEM_RANDOM);
			else if (i < 9)
				party.addPartyMember(player);
			else
			{
				i = 0;
				leader = player;
			}
			
			i++;
		}
    }

 

Edited by pirama
  • 0
Posted (edited)
13 hours ago, `Son said:

You should recode most of your crap instead of just renaming, just saying.

 

Do you have an exemple or are you just barking ? When I rename, I generally cleanup in the same time, which mean fix issues / improve performance / improve readability. I never rename for the pleasure to rename.

 

Did you share anything for my pack ? Any fix, any rework ? If no, then stfu and stick inside your hole.

 

There are fixes on every single aCis revision. You should maybe take a look on changesets descriptions.

Edited by Tryskell
  • 0
Posted
19 hours ago, Tryskell said:

Did you share anything for my pack ? Any fix, any rework ? If no, then stfu and stick inside your hole.

Can't see any reason contributing in such a project. You're pretty much the same arrogant craphead as xxdem.

Also please change your signature. Your name combined with the word mature in the same paragraph just insults the meaning of the word.

  • 0
Posted (edited)
5 hours ago, `Son said:

Can't see any reason contributing in such a project. You're pretty much the same arrogant craphead as xxdem.

Also please change your signature. Your name combined with the word mature in the same paragraph just insults the meaning of the word.

 

Continue to bark then. No exemples or proofs, just words. Keep your opinion for yourself when you can't argue, randomer.

Edited by Tryskell
  • 0
Posted

Isnt this a public forum? You're the one barking when you get some negative feedback about your project. Acis used to be good yes sometime in the past. The last months theres no progress and useless commits in ur git/svn or w/e u use. You should just either deal with it or just commit something when theres some real rework which someone worths spending money on ur freemium system. 

  • 0
Posted (edited)
4 hours ago, `Son said:

Isnt this a public forum? You're the one barking when you get some negative feedback about your project. Acis used to be good yes sometime in the past. The last months theres no progress and useless commits in ur git/svn or w/e u use. You should just either deal with it or just commit something when theres some real rework which someone worths spending money on ur freemium system. 

 

"No progress" ? I would like to see your own project, over 6y. What, you don't have ? Ah ok.

"Used to be good" ? What makes it WORST than before ?

 

Barking = people who complains but aren't able to reproduce anything near what they complain from, or even wish to help. Like a helpless chihuahua.

 

A negative feedback must be constructive and based on facts. My useless commits dropped something like 40 reports those last months. So your arguments are invalid, and what you think pointless can be important for another people. Moreover, if you find it doesn't go fast, you can help. It's a collaborative project.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack.

 

Ppl as you - who don't share, don't help, don't participate to communities, don't code but think they can have an opinion - are simply garbage.

 

Anyway I wasted enough time answering you. I leave you with your hatred, I continue to not moving on aCis.

Edited by Tryskell
  • 0
Posted
1 hour ago, Tryskell said:

 

"No progress" ? I would like to see your own project, over 6y. What, you don't have ? Ah ok.

"Used to be good" ? What makes it WORST than before ?

 

Barking = people who complains but aren't able to reproduce anything near what they complain from, or even wish to help. Like a helpless chihuahua.

 

A negative feedback must be constructive and based on facts. My useless commits dropped something like 40 reports those last months. So your arguments are invalid, and what you think pointless can be important for another people. Moreover, if you find it doesn't go fast, you can help. It's a collaborative project.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack.

 

Ppl as you - who don't share, don't help, don't participate to communities, don't code but think they can have an opinion - are simply garbage.

 

Anyway I wasted enough time answering you. I leave you with your hatred, I continue to not moving on aCis.

First of all, im just comparing pretty simple stuff. The fact that you are selling 10 revisions per each period of aCis is just some garbage logic because as pretty much said any kind of customer expects to see innovative things plus some future plan on the project. Something that aCis lack for many reasons.

The last big rework you did was like hmm maybe a year ago or even more with Knownlists which could really make some difference affecting the game in total.

After that your project remained ALMOST the same ridiculizing urself and your big ego as the grand leader of THE grand project and you delivered almost nothing. 

 

"Used to be good" ? What makes it WORST than before ? --> 

Yes it used to be better when you've been active reworking core issues. There are million of things to start reworking but still u just stay commiting bullshit micro-optimizations which have minimal meaning in the end of the day.

 

Moreover, if you find it doesn't go fast, you can help. It's a collaborative project. -->

Being an ass in every single topic doesnt really help collaboration. Skill differs from coder to coder but still. Being the same kid as xxDem doesnt really help at all.

 

Stick to L2JFrozen/Hellas/Archid/vanilla  if you're unhappy. I don't force you to use my pack. -->

Im refering to aCis and not to any other garbage Greek or Russian project since they never really had any kind of potential in contradiction with aCis so get real.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2Avalon Mid-Rate Server: Dynamic and Exciting Gameplay Awaits! Greetings, adventurers! We are thrilled to introduce the L2Avalon Mid-Rate Server, designed with a perfect blend of challenge, innovation, and accessibility. With dynamic rates, tailored rewards, and a plethora of custom features, your journey in Aden will be more engaging than ever. Below are the highlights of what you can expect: Server Rates More details here Dynamic XP Rates: Scale from 30x (Lv 1-40) to 1x (Lv 78+) for balanced progression. Adena, Drop, Spoil: 5x for a rewarding grind. Raid XP/Drop: 10x to spice up boss hunts. GM Shop Full D and C-grade gear available in main city shops. Low B-grade items available in the Luxury Shop for crystals. Class System 1st and 2nd professions are FREE! 3rd profession requires 700 Halisha marks, with an added reward of GC upon completion. Raids & Epic Bosses Raid Respawn: 12+4 hours for more opportunities to engage. Epic Boss Schedule: Rotating timings keep encounters fresh. (Details here) Soul Shard System: Unique drops to enhance your gear. Learn more. Skills & Buffs Buff slots: 20+12 + 4 Divine slots for full control of your builds. 3rd Class Skills: Inspired by Essence, requiring Magic tablets from select areas. Class Balance Rework: Enhanced for better PvE/PvP gameplay. Custom 2-hour NPC Buffs: Save and load schemes with ease! Olympiad Detailed info here Held Thursday-Sunday weekly, featuring High Five arenas and buffer systems. Olympiad Jewels: Updated from later chronicles. Improved Hero Weapons: Now provide 30% PvP damage. Hero Skills: Fully functional on subclasses! Reworked Locations Primeval Isle Shop: Exchange zone drop items for top A weapon recipes, parts, and materials. Monastery of Silence: Collect Magic tablets on the first floor for 3rd class skills. Seven Signs The Seven Signs system is disabled, but you can access all Mammon services via Valar in Giran. Teleporters: Found in every town for Priest of Dawn/Dusk access. Instances & Quests Instances: Customized for level-specific rewards, from C-grade items to S-grade recipes and parts. (Details here). Quest System Rework: Enhanced to make your journey more immersive. Check here. Get ready to explore a world of endless possibilities with a community-focused server that values player feedback and innovation. Join the adventure on launch day and experience a truly improved Interlude experience! 🌟 Join our Discord for updates! L2Avalon.net
    • WTS ADENA ------ REBORN -SIGNATURE X1  1KK o more per day! OFFERT!!!   Discord:     susi007317
    • Over 800 accounts in stock! https://Smurfmania.com https://www.g2g.com/SmurfMania
    • Hi everyone, I need to make the amulets stackable, as well as the spellbooks, but I need to control their consumption. I have modified the item.xml like this for example:   <item id="8885" type="EtcItem" name="Amulet: Magnus' Chant"> <set name="material" val="PAPER" /> <set name="weight" val="120" /> <set name="price" val="120" /> <set name="is_stackable" val="true" /> </item> But I can see that within the spellbooks.xml it handles, I believe its consumption since I see the following for the same amulet:   <book skillId="1413" itemId="8885"/><!-- Amulet: Magnus' Chant --> My question is the following, how do I make sure that when these are stacked, they are not all consumed in a single use.  
  • Topics

×
×
  • Create New...