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

    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Wts adena 1kk = 10$  discord - GODDARDSHOP 
    • Thanks for the feedback! We’ve actually rented their infrastructure to ensure a high-quality gaming experience (We couldn't find any better files out there). Developer @FixerRay will also be there to assist us 🙂
    • This is just another copy server with even copied website, https://vanilla.playinera.com/ you look so unprofessional even from the first view.
    • send me a message when are you online, i will fix it for you free.
  • 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