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.

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.



×
×
  • Create New...