Jump to content
  • 0

Problem Ingame After a Compilation


Question

Posted

Always with Faction system ^^'

 

So i add these lines in L2Character.java

 

else

+        {

+        target = (L2Character) getTarget();

+       

+        if ((target instanceof L2PcInstance) && (this instanceof L2PcInstance))

+                {

+                if (((L2PcInstance) this).isTeam1Member() && (((L2PcInstance) target).isTeam1Member() && Config.ENABLE_FACTION_ENGINE))

+                {

+                    ((L2PcInstance) this).sendMessage("You Cannot Attack a Player From Your Faction!");

+                    sendPacket(ActionFailed.STATIC_PACKET);

+                    return;

+                }

+                else if (((L2PcInstance) this).isTeam1Member() && ((((L2PcInstance) target).isTeam1Member() && Config.ENABLE_FACTION_ENGINE && (skill.getSkillType() == L2SkillType.BUFF)) || (skill.getSkillType() == L2SkillType.HOT) || (skill.getSkillType() == L2SkillType.HEAL) || (skill.getSkillType() == L2SkillType.COMBATPOINTHEAL) || (skill.getSkillType() == L2SkillType.HEAL_PERCENT) || (skill.getSkillType() == L2SkillType.MANAHEAL) || (skill.getSkillType() == L2SkillType.MANAHEAL_PERCENT) || (skill.getSkillType() == L2SkillType.BALANCE_LIFE) || (skill.getSkillType() == L2SkillType.CONT)))

+                {

+                    return;

+                }

+                if (((L2PcInstance) this).isTeam2Member() && (((L2PcInstance) target).isTeam2Member() && Config.ENABLE_FACTION_ENGINE))

+                {

+                    ((L2PcInstance) this).sendMessage("You Cannot Attack a Player From Your Faction!");

+                    sendPacket(ActionFailed.STATIC_PACKET);

+                    return;

+                }

+                else if (((L2PcInstance) this).isTeam2Member() && ((((L2PcInstance) target).isTeam2Member() && Config.ENABLE_FACTION_ENGINE && (skill.getSkillType() == L2SkillType.BUFF)) || (skill.getSkillType() == L2SkillType.HOT) || (skill.getSkillType() == L2SkillType.HEAL) || (skill.getSkillType() == L2SkillType.COMBATPOINTHEAL) || (skill.getSkillType() == L2SkillType.HEAL_PERCENT) || (skill.getSkillType() == L2SkillType.MANAHEAL) || (skill.getSkillType() == L2SkillType.MANAHEAL_PERCENT) || (skill.getSkillType() == L2SkillType.BALANCE_LIFE) || (skill.getSkillType() == L2SkillType.CONT)))

+                {

+                    return;

+                }

+                }

+        }

 

And when i'm ig, i try to attack a same faction member, i get a message 'can't attack same faction member" but my character become bugued, he can't do anything, and i must restart to move again and attack mobs again...

 

How can i change java codes for fix this bug ?? :/

 

Thanks

2 answers to this question

Recommended Posts

  • 0
Posted

First, this faction engine sux, just from the little you shared. I don't think you can do it heavier lol.

 

Second, this famous bug happens when you don't have actionFailed packet call. You have to add actionFailed packet else you're stuck like you say. Guess what, you're not supposed to have this bug but you have it, congratulations.

 

Third, you have to target yourself and press escape to move again.

 

Fourth, what chronicle ? It's supposed to be Interlude bug if it's not related to your shared code. And apparently, it doesn't have to be.

 

Fifth, only my faction server will rule the world and elpies, muahahah.

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

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • 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