Jump to content
  • 0

[Request] Help from devs for GuardKnownList


Question

Posted

Does any1 of pro devs know if this will work for GuardKnownList

if (player.getKarma() > 0 && !object.isVisible())
           {
               if (_log.isDebugEnabled()) _log.debug(getActiveChar().getObjectId()+": PK "+player.getObjectId()+" entered scan range");
               
               // Set the L2GuardInstance Intention to AI_INTENTION_ACTIVE
               if (getActiveChar().getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE)
                   getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null);
           }
else if (player.getKarma() > 0)
           {
               if (_log.isDebugEnabled()) _log.debug(getActiveChar().getObjectId()+": PK "+player.getObjectId()+" entered scan range");
               
               // Set the L2GuardInstance Intention to AI_INTENTION_ACTIVE
               if (getActiveChar().getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE)
                   getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null);
           }[/Code]

Bug appeared with L2Guard, if player is invisible and even if he have karma he isnt added to GuardKnownList i think, cuz they dont attack player.

This bug goes like: Pk some1, use Silent Move, and u r free to go. Guards will not touch u.

If this has nothing with knownlist than pls tell me what file should be edited to have this working.

8 answers to this question

Recommended Posts

  • 0
Posted

1. If you are with access bigger then 1 they will not attack you

2. Change the aggro to 1000

3. If the server is pvp you can delete the silent move the players dont need it in pvp server ;D

  • 0
Posted

at L2Character

public boolean removedSkill = false;

in StartPvPFlag()
if (getFirstEffect(221) != null) 
{
   removeSkill(SkillTable.getInstance().getInfo(221, 1));
   ((L2PcInstance)this).sendSkillList();
   removedSkill = true; 
}

in StopPvPFlag()
   if (removedSkill == true) addSkill(SkillTable.getInstance().getInfo(221, 1));

Ill not have problems with this?

  • 0
Posted

1. If you are with access bigger then 1 they will not attack you

2. Change the aggro to 1000

3. If the server is pvp you can delete the silent move the players dont need it in pvp server ;D

 

silent move is importand, e.x. to go and check if an rb is spawned example ant queen/etc.

 

i don't think that you will find an answer here by search i searched for ya and find nothing, try to go on your server pack site and request it :)

  • 0
Posted

mb i shouldnt bump this.. some1 correct me if im wrong :)

i've used this

at L2AttackableAI.java / private boolean autoAttackCondition(L2Character target)

from this -->
if (!(me instanceof L2RaidBossInstance) && player.isSilentMoving() && !player.isCastingNow() && !player.isAttackingNow())

to this -->
if (!(me instanceof L2RaidBossInstance) && !(me instanceof L2GuardInstance) && player.isSilentMoving() && !player.isCastingNow() && !player.isAttackingNow())

Its working quite good..

Can i use it like this? I won't have any troubles?

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

    • You dont get it... do you now. - read again.
    • What happened to them? Why they are disabled.. Just noticed that they are gone    @Maxtor @Celestine
    • If you want to make your thread stand out a bit more, adding quick proof pics or a small stock update usually helps buyers feel safer. I’ve had smoother chats with traders after doing that. On a side note, when I’m taking a break from trading, I mess around with the security puzzles in ModsCraft, which has been a fun way to clear my head between deals.
    • ━━━━━━━━━━━━━━━━━━━━━━ L2-SCRIPTS UPDATE ━━━━━━━━━━━━━━━━━━━━━━ Dear MaxCheaters users, We have updated the prices in the first post. Specially for the MaxCheaters community, we significantly reduced prices on many of our old developments, archived projects and source packs. Most of our older Lineage 2 sources are now much more affordable than before, including many Classic and Essence projects. This is a great opportunity for smaller teams, startup servers and developers who always wanted to work with our projects but previously could not afford them. ━━━━━━━━━━━━━━━━━━━━━━ For the past years we were mostly absent from the public scene because our team was working privately on large projects and contract-based development. During this time we accumulated a huge amount of private materials, systems, source codes, client modifications, website solutions and infrastructure developments that were never publicly released. Now, according to completed agreements and partnerships, we finally have the ability to publish and offer part of these materials as our private services and developments. In the upcoming weeks we will also publish a list of our works and services from the last 5 years of private development. ━━━━━━━━━━━━━━━━━━━━━━ Upcoming publications will include: • Private server development • Custom gameplay systems • Client modifications • Websites & ACP systems • Protection solutions • Infrastructure solutions • MMO / Web projects ━━━━━━━━━━━━━━━━━━━━━━ Thank you to everyone who stayed with us all these years.   Telegram:  @L2scripts Websites:  L2-scripts.com    L2-scripts.ru    Mmore.dev Sguard site:  Sguard   Best Regards! ━━━━━━━━━━━━━━━━━━━━━━
    • Tightening the timer to fifteen minutes sounds spot on, especially for players who don’t want to sit around waiting. I’ve had a few hosting hiccups on past projects, and sorting out configs felt a lot like the headaches I solved after dealing with armadiofashion.com for a separate issue where a server kept failing to connect. Little tweaks like that usually smooth things out fast.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..