A Project for Chronicle 4 based on L2JServer.


    Skill hero

    Share

    kallone

    Posts : 60
    Join date : 2013-05-27

    Skill hero

    Post  kallone on 15th March 2015, 00:43

    http://www.mediafire.com/download/vjrx5m58736b5qk/L2J+LISVUS+SKILL+HERO.rar

    Contains files to put in the core!
    Contains files to put in the system!
    Contains files to put on \ gameserver \ data \ stats \ skills!



    Animations and contains sysxtextures!
    http://www.mediafire.com/download/dhi9d7pwokymmbk/ANIMATIONS+SYSTEXTURE+SKILL+HERO+C4.rar

    Code:
    Index: java.net.sf.l2j.gameserver/gameserver.java

    import net.sf.l2j.gameserver.datatables.HennaTreeTable;
    +import net.sf.l2j.gameserver.datatables.HeroSkillTable;




    Olympiad.getInstance();
    Hero.getInstance();
    +HeroSkillTable.getInstance();




    Index: java.net.sf.l2j.gameserver.datatables/HeroSkillTable.java


    +/* This program is free software; you can redistribute it and/or modify
     +* it under the terms of the GNU General Public License as published by
     +* the Free Software Foundation; either version 2, or (at your option)
     +* any later version.
     +*
     +* This program is distributed in the hope that it will be useful,
     +* but WITHOUT ANY WARRANTY; without even the implied warranty of
     +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     +* GNU General Public License for more details.
     +*
     +* You should have received a copy of the GNU General Public License
     +* along with this program; if not, write to the Free Software
     +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     +* 02111-1307, USA.
    + *
    + * http://www.gnu.org/copyleft/gpl.html
    + */
    +package net.sf.l2j.gameserver.datatables;
    +
    +import net.sf.l2j.gameserver.model.L2Skill;
    +
    +/**
    + * @author BiTi
    + */
    +public class HeroSkillTable
    +{
    +private static HeroSkillTable _instance;
    +private static L2Skill[] _heroSkills;
    +
    +private HeroSkillTable()
    +{
    +_heroSkills = new L2Skill[5];
    +_heroSkills[0] = SkillTable.getInstance().getInfo(395, 1);
    +_heroSkills[1] = SkillTable.getInstance().getInfo(396, 1);
    +_heroSkills[2] = SkillTable.getInstance().getInfo(1374, 1);
    +_heroSkills[3] = SkillTable.getInstance().getInfo(1375, 1);
    +_heroSkills[4] = SkillTable.getInstance().getInfo(1376, 1);
    +}
    +
    +public static HeroSkillTable getInstance()
    +{
    +if (_instance == null)
    +{
    +_instance = new HeroSkillTable();
    +}
    +return _instance;
    +}
    +
    +public static L2Skill[] GetHeroSkills()
    +{
    +return _heroSkills;
    +}
    +
    +public static boolean isHeroSkill(int skillid)
    +{
    +Integer[] _HeroSkillsId = new Integer[]
    +{
    +395,
    +396,
    +1374,
    +1375,
    +1376
    +};
    +
    +for (int id : _HeroSkillsId)
    +{
    +if (id == skillid)
    +{
    +return true;
    +}
    +}
    +
    +return false;
    +}
    +}
    +




    Index: net.sf.l2j.gameserver.model.actor.instance/L2PcInstance.java


    import net.sf.l2j.gameserver.datatables.HennaTable;
    +import net.sf.l2j.gameserver.datatables.HeroSkillTable;


    // Fix to prevent overflow (=> karma has a max value of 2 147 483 647)
    if (getKarma() > (Integer.MAX_VALUE - newKarma))
     {
     newKarma = Integer.MAX_VALUE - getKarma();
     }
    +
    +// Add Hero skills if hero
    +if (isHero())
    +{
    +setHero(true);
    +}
    +


    -public void setHero(boolean hero)
    -{
    -_hero = hero;
    -}
    +public void setHero(boolean hero)
    +{
    +_hero = hero;
    +if ((hero && (_baseClass == _activeClass)) || this.isHero())
    +{
    +for (L2Skill s : HeroSkillTable.GetHeroSkills())
    +{
    +addSkill(s, false); // Dont Save Hero skills to database
    +}
    +}
    +else
    +{
    +for (L2Skill s : HeroSkillTable.GetHeroSkills())
    +{
    +super.removeSkill(s); // Just Remove skills from nonHero characters
    +}
    +}
    +_hero = hero;
    +}
    +
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: Skill hero

    Post  DanielaCZ on 15th March 2015, 13:20

    any more info? only sklil hero bla bla? :-)

    fissban

    Posts : 81
    Join date : 2013-12-10

    Re: Skill hero

    Post  fissban on 15th March 2015, 14:27

    Contributions or Custom Share? Razz
    avatar
    Karakan

    Posts : 421
    Join date : 2013-10-04

    Re: Skill hero

    Post  Karakan on 15th March 2015, 15:17

    Since it includes client modifications ...its prolly a custom mod.

    ().getInfo(395, 1);
    ().getInfo(396, 1);
    ().getInfo(1374, 1);
    ().getInfo(1375, 1);
    ().getInfo(1376, 1);

    Those skills arent even in c4. Smile


    Hero Skills
    Such skills become available automatically if a character receives the status of Hero. However, they are not available for subclasses and during battles in Grand Olympiad. If a character loses the status of Hero, the skills disappear.

    http://l2wiki.com/Heroeshttp://l2wiki.com/Heroes

    kallone

    Posts : 60
    Join date : 2013-05-27

    Re: Skill hero

    Post  kallone on 16th March 2015, 00:17

    DanielaCZ wrote:any more info? only sklil hero bla bla? :-)

    The information is that they also work to the c6.

    I am now doing //setaio mode to l2jlisvus More info soon!
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: Skill hero

    Post  DanielaCZ on 17th March 2015, 18:03

    not wotrking for c4 ??? ehm?

    Sponsored content

    Re: Skill hero

    Post  Sponsored content


      Current date/time is 24th September 2017, 11:31