Jump to content
  • 0

I need info about create an effect to be seen only by party


Question

Posted (edited)

As title say guys

 

only party members can see it when we use a skill

 

any idea ? i try to understand hide skill is similar but no idea

Edited by GsL

Recommended Posts

  • 0
Posted
8 minutes ago, GsL said:

i need it when a X skill effected is active plus this dont work 

then you can maybe just make the skill a party skill, or do you want only the party to see its effect?

  • 0
Posted
Just now, nikpappa said:

then you can maybe just make the skill a party skill, or do you want only the party to see its effect?

only party can see it..

  • 0
Posted

then i think it is simpler, you can go to Creature class or L2Character (differs between packs) and go to the broadcastPacket method which is called when a skill is being casted, there you will add an if with the skill's id you want to be broadcasted only to party members and if the player that casts it is in a party then you will only broadcast it for those members

  • 0
Posted (edited)

The 50% of the solution is already posted before. The other 50% is located at your CharInfo.java.

You have to edit this server packet too, just because after you done with this skill,effect ... The time you will user any other skill that is a 'normal' one like battle heal for example, it will broadcast all your  abnormal effects to your knownlist. 

Edited by melron
  • 0
Posted
On 5/10/2021 at 11:03 PM, melron said:

The 50% of the solution is already posted before. The other 50% is located at your CharInfo.java.

You have to edit this server packet too, just because after you done with this skill,effect ... The time you will user any other skill that is a 'normal' one like battle heal for example, it will broadcast all your  abnormal effects to your knownlist. 

 

 

// Send a packet starting the casting.
        final int actionId = caster.isSummon() ? ActionData.getInstance().getSkillActionId(_skill.getId()) : -1;
        if (!_skill.isNotBroadcastable() || ((_skill.getId() != 10033) || ((_skill.getId() != 10032) && caster.isInParty())))
        {
            caster.broadcastPacket(new MagicSkillUse(caster, target, 0, 0, displayedCastTime, reuseDelay, _skill.getReuseDelayGroup(), actionId, _castingType));
        }

 


 

this 

 

 

and on char info this 

 

 

    final Set<AbnormalVisualEffect> abnormalVisualEffects = _player.getEffectList().getCurrentAbnormalVisualEffects();
        packet.writeD(abnormalVisualEffects.size() + (_gmSeeInvis ? 1 : 0)); // Confirmed
        // boolean party = _player.isInParty();
        // packet.writeD(abnormalVisualEffects.size() + (party ? 1 : 0));
        for (AbnormalVisualEffect abnormalVisualEffect : abnormalVisualEffects)
        {
            packet.writeH(abnormalVisualEffect.getClientId()); // Confirmed
        }
        if (_gmSeeInvis)
        {
            packet.writeH(AbnormalVisualEffect.STEALTH.getClientId());
        }
        if (!_player.isInParty())
        {
            packet.writeH(AbnormalVisualEffect.IN_A_DECAL.getClientId());
        }


This don't work forgot to say*

  • 0
Posted
8 minutes ago, iTopZ said:

This is so funny, so this guy leaves bad comments on @Kara for shared codes while cant handle a limit on effect. amazing!

 

Did I say somewhere I sell codes ?

  • 0
Posted

🙈you try to ruin another mans store with your good knowledge of what is shared or not and now you ask for help 🙉

 

🙊

 

see you're funny 🙂

  • 0
Posted

L2Party.java create a method broadcastToParty

public void broadcastToParty(final GameServerpacket gsp)
{
    for (final var member : getPartyMembers())
    {
        member.sendPacket(gsp);
    }

}

L2PcInstance create a method broadcastToMyParty

public void broadcastToMyParty(final GameServerPacket gsp)
{
    final var party = getParty();
    
    if (party != null)
        party.broadcastToParty(gsp);
    else
        sendPacket(gsp);
}

L2SkillTemplate.java create method isPartyBroadcast

final boolean _partyBroadcast;

constructor:
    _partyBroadcast = set.getBoolean("PartyBroadcast", false);
    
getter

    public boolean isPartyBroadcast()
    {
        return _partyBroadcast;
    }

L2Character.java find this (more than one)
broadcastPacket(new MagicSkillUse(...));

change it to

if (skill.isPartyBroadcast())
    broadcastToMyParty(new MagicSkillUse(...));
else
    broadcastPacket(new MagicSkillUse(...));

 

 

PS: No need to thank me, please don't talk shit about me next time Cheers

  • 0
Posted
2 hours ago, iTopZ said:

🙈you try to ruin another mans store with your good knowledge of what is shared or not and now you ask for help 🙉

 

🙊

 

see you're funny 🙂

 

Really ? 

 

 

1 hour ago, xdem said:

L2Party.java create a method broadcastToParty

public void broadcastToParty(final GameServerpacket gsp)
{
    for (final var member : getPartyMembers())
    {
        member.sendPacket(gsp);
    }

}

L2PcInstance create a method broadcastToMyParty

public void broadcastToMyParty(final GameServerPacket gsp)
{
    final var party = getParty();
    
    if (party != null)
        party.broadcastToParty(gsp);
    else
        sendPacket(gsp);
}

L2SkillTemplate.java create method isPartyBroadcast

final boolean _partyBroadcast;

constructor:
    _partyBroadcast = set.getBoolean("PartyBroadcast", false);
    
getter

    public boolean isPartyBroadcast()
    {
        return _partyBroadcast;
    }

L2Character.java find this (more than one)
broadcastPacket(new MagicSkillUse(...));

change it to

if (skill.isPartyBroadcast())
    broadcastToMyParty(new MagicSkillUse(...));
else
    broadcastPacket(new MagicSkillUse(...));

 

 

PS: No need to thank me, please don't talk shit about me next time Cheers

public void broadcastToParty(final IClientOutgoingPacket[] gsp)
    {
        for (final var member : getMembers())
        {
            member.sendPacket(gsp);
        }

    }

 

{gr]

 

epidi einai mobius i paparia exeis idea pws kanw adapt edw?

  • Sad 1
  • 0
Posted
11 minutes ago, GsL said:

 

Really ? 

 

 

public void broadcastToParty(final IClientOutgoingPacket[] gsp)
    {
        for (final var member : getMembers())
        {
            member.sendPacket(gsp);
        }

    }

 

{gr]

 

epidi einai mobius i paparia exeis idea pws kanw adapt edw?

public void broadcastToParty(final IClientOutgoingPacket[] gsp)

 

alakse to se

 

public void broadcastToParty(final IClientOutgoingPacket ... gsp)

  • 0
Posted
6 minutes ago, xdem said:

public void broadcastToParty(final IClientOutgoingPacket[] gsp)

 

alakse to se

 

public void broadcastToParty(final IClientOutgoingPacket ... gsp)

L2SkillTemplate  == SkillCaster tha les logika ?

  • 0
Posted
2 minutes ago, GsL said:

L2SkillTemplate  == SkillCaster tha les logika ?

SkillTemplate sto mobius

  • 0
Posted (edited)
10 hours ago, xdem said:

SkillTemplate sto mobius

skill apla prepei na legete , nmz to fixara

 

to last part 

L2Character.java find this (more than one)
broadcastPacket(new MagicSkillUse(...));

change it to

if (skill.isPartyBroadcast())
    broadcastToMyParty(new MagicSkillUse(...));
else
    broadcastPacket(new MagicSkillUse(...));

 

 

prepei na exei parei auto apo to l2character k na to exei balei sto skillcaster  o mobius

opote paw ekei k kanw to check

 

example pws einai 

 

 

    // Send a packet starting the casting.
        final int actionId = caster.isSummon() ? ActionData.getInstance().getSkillActionId(_skill.getId()) : -1;
        
        if (!_skill.isNotBroadcastable())
        {
            caster.broadcastPacket(new MagicSkillUse(caster, target, 0, _skill.getDisplayId(), displayedCastTime, reuseDelay, _skill.getReuseDelayGroup(), actionId, _castingType));
        }
        
        if (caster.isPlayer() && !instantCast)
        {
            // Send a system message to the player.
            caster.sendPacket(_skill.getId() != 2046 ? new SystemMessage(SystemMessageId.YOU_USE_S1).addSkillName(_skill) : new SystemMessage(SystemMessageId.SUMMONING_YOUR_PET));
            
            // Show the gauge bar for casting.
            caster.sendPacket(new SetupGauge(caster.getObjectId(), SetupGauge.BLUE, displayedCastTime));
        }

 

 

[gr]

 

arxidia , zitaei k alla sto skillcaster , to mobius to exei allaksi entelos , plus eixa kataferi na kripso ta animation alla to thema einai oti einai abnormal effect k auto fenete gt to thelw na einai monimo panw stous players k auto fenete akoma k an to ekriba

 

kserw oti m ena 10-15e to exw .. fraga exw .. alla ithela to gamidi na to codaro egw 😕

 

 

Edited by GsL
  • Sad 1
  • 0
Posted (edited)

 

16 hours ago, iTopZ said:

This is so funny, so this guy leaves bad comments on @Kara for shared codes while cant handle a limit on effect. amazing!

 

[Offtopic] I'm sorry, i'm way too successful seller/developer in this forum to try even observe tiny people. ☺️ [/Offtopic]

 

PS. Someone tell that low GsL that this is EN section and greek is not allowed.

Edited by Kara
Guest
This topic is now closed to further replies.



  • Posts

    • This post originally appeared on MmoGah. As the global release of Aion 2 draws near, players are eagerly preparing to dive into this highly anticipated MMORPG. One of the most important decisions you’ll make is choosing the right class, as it will define your experience in both solo and group content. Aion 2 introduces eight distinct classes, each with unique gameplay mechanics, strengths, and roles. Whether you’re a seasoned veteran or a newcomer, understanding these classes is essential to finding the one that suits your preferred playstyle. This guide provides a comprehensive overview of all eight classes, tips for selecting your ideal role, and recommendations for different types of players. Aion 2’s class system offers a variety of options across tanks, damage dealers, healers, and hybrid supports. Here’s a quick breakdown of the roles: - Tank Classes: Templar - Physical DPS Classes: Gladiator, Assassin, Ranger - Magical DPS Classes: Sorcerer - Hybrid Classes: Spiritmaster, Chanter - Healer Class: Cleric Each class has been carefully designed to excel in specific scenarios, whether it’s PvP, PvE, solo leveling, or large-scale faction battles. Pro Tip: As you embark on your journey, remember that having Aion 2 Kinah can greatly enhance your experience, so consider acquiring it to make the most of your adventure.   Class Breakdown Templar – The Indomitable Tank The Templar is the quintessential tank, specializing in defense and crowd control. With high durability and reliable aggro management, this class is invaluable in group content and large-scale battles. Strengths: - Exceptional survivability  - Top-tier aggro control  - Disruption tools for PvP  Playstyle: Templars thrive on the frontlines, soaking up damage and protecting allies. They are perfect for players who enjoy leading the charge and maintaining battlefield control. Gladiator – The Melee Powerhouse The Gladiator strikes a balance between offense and defense, offering strong AoE damage and decent survivability. This class excels in fast-paced melee combat and open-world PvP. Strengths: - High AoE damage  - Lifesteal-style abilities for sustain  - Versatile in both PvE and PvP  Playstyle:  Gladiators are ideal for players who enjoy dynamic melee combat with a mix of durability and damage. Assassin – The Stealthy Burst Specialist Assassins are masters of stealth and mobility. Known for their high single-target burst damage, they dominate in duels and small-scale PvP encounters. Strengths: - Exceptional burst damage  - Stealth mechanics for ambushes  - High mobility for quick disengagement Playstyle: This class is perfect for players who prefer fast-paced, tactical gameplay with an emphasis on sneaky kills. Ranger – The Precision Archer Rangers excel at dealing consistent physical damage from a distance. With excellent crowd control abilities and strong kiting potential, they are a solid choice for both PvE and PvP. Strengths:  - Safe ranged damage  - Strong crowd control tools  - Great for solo play  Playstyle: Rangers suit players who enjoy staying at range, controlling enemies, and executing precise attacks. Sorcerer – The Magical Artillery Sorcerers are pure magic damage dealers with devastating AoE spells and crowd control abilities. They are capable of turning the tide of battle with their massive burst potential. Strengths: - Highest magical burst damage  - Excellent AoE capabilities  - Crowd control via slows and immobilizes  Playstyle: Sorcerers are perfect for players who enjoy dealing immense magical damage while controlling enemies from a distance. Spiritmaster – The Tactical Summoner The Spiritmaster brings strategic depth to combat by combining summons, debuffs, and utility spells. This class is highly versatile and excels in both solo and group settings. Strengths: - Elemental summons with unique abilities  - Strong debuffs for PvP dominance  - Great solo leveling potential  Playstyle: Spiritmasters are best suited for players who enjoy strategic gameplay and multitasking in battle. Cleric – The Essential Healer The Cleric is the backbone of any group, providing powerful healing, cleansing, and defensive buffs. This class is indispensable in dungeons and raids. Strengths: - Reliable direct and AoE healing  - Cleansing abilities to remove debuffs  - Vital for group survival  Playstyle: Clerics are ideal for players who take pride in supporting their team and ensuring everyone stays alive. Chanter – The Hybrid Support The Chanter blends melee combat with healing and party-wide buffs. This versatile class can fill multiple roles in a group, making it a valuable addition to any team. Strengths: - Strong party buffs  - Solid healing capabilities  - Decent melee damage Playstyle: Chanters are perfect for players who want to contribute both offensively and defensively while supporting their team.   Choosing the Right Class What’s Your Playstyle? To help narrow down your choice, consider what you enjoy most in an MMORPG: • If you like tanking and leading the charge, choose Templar. • If you like melee combat with high durability, choose Gladiator.  • If you like stealthy gameplay with burst damage, choose Assassin.  • If you like ranged combat with precision, choose Ranger.   • If you like Massive magical damage, choose Sorcerer. • If you like tactical utility with summons, choose Spiritmaster. • If you like healing and supporting teammates, choose Cleric.  • If you like hybrid support with melee combat, choose Chanter. Beginner-Friendly Classes If you’re new to MMORPGs or unsure where to start, these classes offer straightforward mechanics: 1. Templar – Durable, beginner-friendly tank. 2. Cleric – Essential healer with clear roles in group content. Solo vs. Group Play Some classes excel in solo play, while others shine in groups: - Best Solo Classes: Gladiator, Ranger, Spiritmaster (good sustain and flexibility). - Best Group Classes: Templar (tank), Cleric (healer), Chanter (support). PvP Recommendations For competitive players who enjoy PvP: - 1v1/Small-Scale PvP: Assassin (stealth burst) or Sorcerer (burst + CC).  - Large-Scale PvP: Spiritmaster (debuffs) or Templar (frontline disruption). Team Composition Tips Building a balanced party is crucial in Aion 2. Consider these combinations for optimal synergy: - Tank + DPS + Healer: Templar + Sorcerer + Cleric (classic setup).  - Buff-Oriented Group: Gladiator + Chanter + Cleric (durability + support).    Final Thoughts Aion 2 offers a rich variety of classes tailored to different playstyles. Whether you prefer tanking, dealing damage, or supporting your team, there’s a class that fits your preferences. To summarize: - For beginners: Start with Templar or Cleric. - For high damage: Choose Gladiator, Assassin, or Sorcerer. - For strategic gameplay: Go with Spiritmaster. - For support roles: Opt for Cleric or Chanter. Still undecided? Share your preferred playstyle—solo adventuring, competitive PvP, or cooperative group play—and you’ll find the perfect class to begin your journey in Aion 2!  
    • Prepare for OBT (Open Beta Test)! https://www.l2ertheia.eu/news:open-beta-test-obt/
    • What the actual fuck? HEY Maxtor, gay of the season, time to do some work. Banning required.
    • Hello there, sorry for the late response, (nobody cares anyway). I remember you, yes you did tried something, but sucked at it. Not a little lick, but sucked hard. No surprise you couldn't handle a single event, not to mention a long term event schedule. Section is long gone. And after all these years, you are still dumb enough to not even try to use a google translator.
    • I'm sorry for the graveyard digging.. As a good mate, I just had to copy/paste a message, remember I'm just the messenger, NOT ADMIN, NOT GM, and quickly to the topic: - project is in it's final stages - staff recruitment shall begin shortly (non fluent english speakers fuck off) - thank you for the understanding The end.
  • 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