A Project for Chronicle 4 based on L2JServer.


    Target Attacker

    Share
    avatar
    Karakan

    Posts : 421
    Join date : 2013-10-04

    Target Attacker

    Post  Karakan on 23rd March 2014, 12:14

    On Interlude when someone/something attacked your character , it did an auto-target.

    I searched almost whole l2j interlude branch but cant find it.

    Anyone knows where this was added ?
    Or can code it and share ?

    Would improve c4 a lot

    roko91

    Posts : 238
    Join date : 2013-01-30
    Age : 26
    Location : Bulgaria

    Re: Target Attacker

    Post  roko91 on 23rd March 2014, 17:31

    It's already added on L2JLisvus as config at "custom.properties":
    Code:
    # ------------------------------------------------------------
    # Enable Auto Target
    # ------------------------------------------------------------
    # This function works for NPCs only,
    # in order to avoid issues such as attacks from mobs stucked in walls
    EnableAutoTargetNPC = False

    Since it's post-C4 feature it's considered custom on C4 server project.
    avatar
    Karakan

    Posts : 421
    Join date : 2013-10-04

    Re: Target Attacker

    Post  Karakan on 23rd March 2014, 18:03

    # This function works for NPCs only

    Always thought this is for NPC only , not monster.

    Ill check this out ...thanks Smile

    roko91

    Posts : 238
    Join date : 2013-01-30
    Age : 26
    Location : Bulgaria

    Re: Target Attacker

    Post  roko91 on 24th March 2014, 18:44

    Karakan wrote:
    # This function works for NPCs only

    Always thought this is for NPC only , not monster.

    Ill check this out ...thanks Smile

    Monsters are non-player character (NPC) too:
    # in order to avoid issues such as attacks from mobs stucked in walls

    In fact L2MonsterInstance extends L2Attackable which extends L2NpcInstance.
    So L2MonsterInstance inherit L2NpcInstance.

    "This function works for NPCs only" means that it doesn't auto target player character (PC) but only monsters (or other types of NPC if any).

    Sponsored content

    Re: Target Attacker

    Post  Sponsored content


      Current date/time is 22nd September 2017, 14:44