does anyone know...how to add skill to hero?

    Share
    avatar
    jamaica

    Posts : 135
    Join date : 2013-02-24
    Age : 28
    Location : Romania

    does anyone know...how to add skill to hero?

    Post  jamaica on 17th October 2013, 14:36

    as the tittle said...does anyone know how to add a skill at hero? i mean when u become hero to get automatically the skill....
    avatar
    xlinkinx

    Posts : 164
    Join date : 2012-12-11
    Age : 25

    Re: does anyone know...how to add skill to hero?

    Post  xlinkinx on 18th October 2013, 18:19

    jamaica wrote:as the tittle said...does anyone know how to add a skill at hero? i mean when u become hero to get automatically the skill....
    c4 in no Hiro skills on this on this subject did not need to think unnecessarily require modification of the client.
    avatar
    jamaica

    Posts : 135
    Join date : 2013-02-24
    Age : 28
    Location : Romania

    Re: does anyone know...how to add skill to hero?

    Post  jamaica on 18th October 2013, 18:52

    xlinkinx wrote:
    jamaica wrote:as the tittle said...does anyone know how to add a skill at hero? i mean when u become hero to get automatically the skill....
    c4 in no Hiro skills on this on this subject did not need to think unnecessarily require modification of the client.
    i know it needs client modifications which i have already done...but i cant figure how to add them in server, server side...
    avatar
    xlinkinx

    Posts : 164
    Join date : 2012-12-11
    Age : 25

    Re: does anyone know...how to add skill to hero?

    Post  xlinkinx on 19th October 2013, 02:28

    jamaica wrote:
    xlinkinx wrote:
    jamaica wrote:as the tittle said...does anyone know how to add a skill at hero? i mean when u become hero to get automatically the skill....
    c4 in no Hiro skills on this on this subject did not need to think unnecessarily require modification of the client.
    i know it needs client modifications which i have already done...but i cant figure how to add them in server, server side...
    Look here.
    http://trac.assembla.com/l2jchronus-gs/changeset/131
    http://trac.assembla.com/l2jchronus-dp/changeset/40
    Look there might still find details how to do.

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: does anyone know...how to add skill to hero?

    Post  DnR on 19th October 2013, 15:23

    If it's only about a single skill, just replace sethero method in L2PcInstance with this.

    Code:

    public void setHero(boolean hero)
    {
        if (!_hero && hero)
        {
            L2Skill skill = SkillTable.getInstance().getInfo(your skill id, your skill level);
            addSkill(skill, false);
        }
        _hero = hero;
    }
    avatar
    jamaica

    Posts : 135
    Join date : 2013-02-24
    Age : 28
    Location : Romania

    Re: does anyone know...how to add skill to hero?

    Post  jamaica on 20th October 2013, 10:51

    thanks alot dnr the shit worked ^.^ "hands a beer"

    Sponsored content

    Re: does anyone know...how to add skill to hero?

    Post  Sponsored content


      Current date/time is 28th July 2017, 15:52