Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Stats.java(не большая проблема)
#1
Скрипт Stats.java
Код:
package l2p.gameserver.skills;

import java.util.NoSuchElementException;
import l2p.Config;
import l2p.gameserver.skills.inits.InitConst;
import l2p.gameserver.skills.inits.InitFunc;
import l2p.gameserver.skills.inits.Init_rShld;

public final class Stats extends Enum
{

    public static Stats[] values()
    {
        return (Stats[])$VALUES.clone();
    }

    public static Stats valueOf(String name)
    {
        return (Stats)Enum.valueOf(l2p/gameserver/skills/Stats, name);
    }

    public String getValue()
    {
        return _value;
    }

    public boolean isLimitOnlyPlayable()
    {
        return _limitOnlyPlayable;
    }

    public InitFunc getInit()
    {
        return _init;
    }

    private Stats(String s1, int i, String s, Integer min, Integer max, boolean limitOnlyPlayable)
    {
        super(s1, i);
        _value = s;
        _min = min;
        _max = max;
        _limitOnlyPlayable = limitOnlyPlayable;
        _init = null;
    }

    private Stats(String s1, int i, String s, Integer min, Integer max, boolean limitOnlyPlayable, InitFunc init)
    {
        super(s1, i);
        _value = s;
        _min = min;
        _max = max;
        _limitOnlyPlayable = limitOnlyPlayable;
        _init = init;
    }

    public static Stats valueOfXml(String name)
    {
        Stats arr$[] = values();
        int len$ = arr$.length;
        for(int i$ = 0; i$ < len$; i$++)
        {
            Stats s = arr$[i$];
            if(s._value.equals(name))
                return s;
        }

        throw new NoSuchElementException((new StringBuilder()).append("Unknown name '").append(name).append("' for enum BaseStats").toString());
    }

    public String toString()
    {
        return _value;
    }

    public static final Stats MAX_HP;
    public static final Stats MAX_MP;
    public static final Stats MAX_CP;
    public static final Stats HP_LIMIT;
    public static final Stats MP_LIMIT;
    public static final Stats CP_LIMIT;
    public static final Stats REGENERATE_HP_RATE;
    public static final Stats REGENERATE_CP_RATE;
    public static final Stats REGENERATE_MP_RATE;
    public static final Stats RUN_SPEED;
    public static final Stats POWER_DEFENCE;
    public static final Stats MAGIC_DEFENCE;
    public static final Stats POWER_ATTACK;
    public static final Stats MAGIC_ATTACK;
    public static final Stats POWER_ATTACK_SPEED;
    public static final Stats MAGIC_ATTACK_SPEED;
    public static final Stats MAGIC_REUSE_RATE;
    public static final Stats PHYSIC_REUSE_RATE;
    public static final Stats ATK_REUSE;
    public static final Stats ATK_BASE;
    public static final Stats CRITICAL_DAMAGE;
    public static final Stats CRITICAL_DAMAGE_STATIC;
    public static final Stats EVASION_RATE;
    public static final Stats ACCURACY_COMBAT;
    public static final Stats CRITICAL_BASE;
    public static final Stats CRITICAL_RATE;
    public static final Stats MCRITICAL_RATE;
    public static final Stats MCRITICAL_DAMAGE;
    public static final Stats PHYSICAL_DAMAGE;
    public static final Stats MAGIC_DAMAGE;
    public static final Stats SKILL_POWER_ATTACK;
    public static final Stats NON_SKILL_POWER_ATTACK;
    public static final Stats CAST_INTERRUPT;
    public static final Stats SHIELD_DEFENCE;
    public static final Stats SHIELD_RATE;
    public static final Stats SHIELD_ANGLE;
    public static final Stats POWER_ATTACK_RANGE;
    public static final Stats MAGIC_ATTACK_RANGE;
    public static final Stats POLE_ATTACK_ANGLE;
    public static final Stats POLE_TARGERT_COUNT;
    public static final Stats STAT_STR;
    public static final Stats STAT_CON;
    public static final Stats STAT_DEX;
    public static final Stats STAT_INT;
    public static final Stats STAT_WIT;
    public static final Stats STAT_MEN;
    public static final Stats BREATH;
    public static final Stats FALL;
    public static final Stats EXP_LOST;
    public static final Stats BLEED_RECEPTIVE;
    public static final Stats POISON_RECEPTIVE;
    public static final Stats STUN_RECEPTIVE;
    public static final Stats ROOT_RECEPTIVE;
    public static final Stats MENTAL_RECEPTIVE;
    public static final Stats SLEEP_RECEPTIVE;
    public static final Stats PARALYZE_RECEPTIVE;
    public static final Stats CANCEL_RECEPTIVE;
    public static final Stats DEBUFF_RECEPTIVE;
    public static final Stats MAGIC_RECEPTIVE;
    public static final Stats BLEED_POWER;
    public static final Stats POISON_POWER;
    public static final Stats STUN_POWER;
    public static final Stats ROOT_POWER;
    public static final Stats MENTAL_POWER;
    public static final Stats SLEEP_POWER;
    public static final Stats PARALYZE_POWER;
    public static final Stats CANCEL_POWER;
    public static final Stats DEBUFF_POWER;
    public static final Stats MAGIC_POWER;
    public static final Stats SKILL_CRIT_CHANCE_MOD;
    public static final Stats FATALBLOW_RATE;
    public static final Stats DEATH_RECEPTIVE;
    public static final Stats FIRE_RECEPTIVE;
    public static final Stats WIND_RECEPTIVE;
    public static final Stats WATER_RECEPTIVE;
    public static final Stats EARTH_RECEPTIVE;
    public static final Stats UNHOLY_RECEPTIVE;
    public static final Stats SACRED_RECEPTIVE;
    public static final Stats CRIT_DAMAGE_RECEPTIVE;
    public static final Stats CRIT_CHANCE_RECEPTIVE;
    public static final Stats ATTACK_ELEMENT_FIRE;
    public static final Stats ATTACK_ELEMENT_WATER;
    public static final Stats ATTACK_ELEMENT_WIND;
    public static final Stats ATTACK_ELEMENT_EARTH;
    public static final Stats ATTACK_ELEMENT_SACRED;
    public static final Stats ATTACK_ELEMENT_UNHOLY;
    public static final Stats SWORD_WPN_RECEPTIVE;
    public static final Stats DUAL_WPN_RECEPTIVE;
    public static final Stats BLUNT_WPN_RECEPTIVE;
    public static final Stats DAGGER_WPN_RECEPTIVE;
    public static final Stats BOW_WPN_RECEPTIVE;
    public static final Stats CROSSBOW_WPN_RECEPTIVE;
    public static final Stats POLE_WPN_RECEPTIVE;
    public static final Stats FIST_WPN_RECEPTIVE;
    public static final Stats ABSORB_DAMAGE_PERCENT;
    public static final Stats ABSORB_DAMAGEMP_PERCENT;
    public static final Stats TRANSFER_PET_DAMAGE_PERCENT;
    public static final Stats REFLECT_AND_BLOCK_DAMAGE_CHANCE;
    public static final Stats REFLECT_AND_BLOCK_PSKILL_DAMAGE_CHANCE;
    public static final Stats REFLECT_AND_BLOCK_MSKILL_DAMAGE_CHANCE;
    public static final Stats REFLECT_DAMAGE_PERCENT;
    public static final Stats REFLECT_PSKILL_DAMAGE_PERCENT;
    public static final Stats REFLECT_MSKILL_DAMAGE_PERCENT;
    public static final Stats REFLECT_PHYSIC_SKILL;
    public static final Stats REFLECT_MAGIC_SKILL;
    public static final Stats REFLECT_PHYSIC_DEBUFF;
    public static final Stats REFLECT_MAGIC_DEBUFF;
    public static final Stats PSKILL_EVASION;
    public static final Stats MSKILL_EVASION;
    public static final Stats COUNTER_ATTACK;
    public static final Stats CANCEL_TARGET;
    public static final Stats HEAL_EFFECTIVNESS;
    public static final Stats MANAHEAL_EFFECTIVNESS;
    public static final Stats CPHEAL_EFFECTIVNESS;
    public static final Stats HEAL_POWER;
    public static final Stats MP_MAGIC_SKILL_CONSUME;
    public static final Stats MP_PHYSICAL_SKILL_CONSUME;
    public static final Stats MP_DANCE_SKILL_CONSUME;
    public static final Stats MP_USE_BOW;
    public static final Stats MP_USE_BOW_CHANCE;
    public static final Stats SS_USE_BOW;
    public static final Stats SS_USE_BOW_CHANCE;
    public static final Stats ACTIVATE_RATE;
    public static final Stats SKILL_MASTERY;
    public static final Stats MAX_LOAD;
    public static final Stats MAX_NO_PENALTY_LOAD;
    public static final Stats INVENTORY_LIMIT;
    public static final Stats STORAGE_LIMIT;
    public static final Stats TRADE_LIMIT;
    public static final Stats COMMON_RECIPE_LIMIT;
    public static final Stats DWARVEN_RECIPE_LIMIT;
    public static final Stats BUFF_LIMIT;
    public static final Stats MUSIC_LIMIT;
    public static final Stats SOULS_LIMIT;
    public static final Stats SOULS_CONSUME_EXP;
    public static final Stats TALISMANS_LIMIT;
    public static final Stats GRADE_EXPERTISE_LEVEL;
    public static final Stats EXP;
    public static final Stats SP;
    public static final Stats DROP;
    public static final Stats VITALITY_CONSUME_RATE;
    public static final int NUM_STATS = values().length;
    private String _value;
    public final Integer _min;
    public final Integer _max;
    private boolean _limitOnlyPlayable;
    private InitFunc _init;
    private static final Stats $VALUES[];

    static
    {
        MAX_HP = new Stats("MAX_HP", 0, "maxHp", Integer.valueOf(1), Integer.valueOf(40000), true);
        MAX_MP = new Stats("MAX_MP", 1, "maxMp", Integer.valueOf(1), Integer.valueOf(40000), true);
        MAX_CP = new Stats("MAX_CP", 2, "maxCp", Integer.valueOf(1), Integer.valueOf(0x186a0), true);
        HP_LIMIT = new Stats("HP_LIMIT", 3, "hpLimit", Integer.valueOf(1), Integer.valueOf(100), false, new InitConst(100D));
        MP_LIMIT = new Stats("MP_LIMIT", 4, "mpLimit", Integer.valueOf(1), Integer.valueOf(100), false, new InitConst(100D));
        CP_LIMIT = new Stats("CP_LIMIT", 5, "cpLimit", Integer.valueOf(1), Integer.valueOf(100), false, new InitConst(100D));
        REGENERATE_HP_RATE = new Stats("REGENERATE_HP_RATE", 6, "regHp", null, null, false);
        REGENERATE_CP_RATE = new Stats("REGENERATE_CP_RATE", 7, "regCp", null, null, false);
        REGENERATE_MP_RATE = new Stats("REGENERATE_MP_RATE", 8, "regMp", null, null, false);
        RUN_SPEED = new Stats("RUN_SPEED", 9, "runSpd", Integer.valueOf(0), Config.LIM_MOVE, true);
        POWER_DEFENCE = new Stats("POWER_DEFENCE", 10, "pDef", Integer.valueOf(0), Config.LIM_PDEF, true);
        MAGIC_DEFENCE = new Stats("MAGIC_DEFENCE", 11, "mDef", Integer.valueOf(0), Config.LIM_MDEF, true);
        POWER_ATTACK = new Stats("POWER_ATTACK", 12, "pAtk", Integer.valueOf(0), Config.LIM_PATK, true);
        MAGIC_ATTACK = new Stats("MAGIC_ATTACK", 13, "mAtk", Integer.valueOf(0), Config.LIM_MATK, true);
        POWER_ATTACK_SPEED = new Stats("POWER_ATTACK_SPEED", 14, "pAtkSpd", Integer.valueOf(0), Config.LIM_PATK_SPD, false);
        MAGIC_ATTACK_SPEED = new Stats("MAGIC_ATTACK_SPEED", 15, "mAtkSpd", Integer.valueOf(0), Config.LIM_MATK_SPD, false);
        MAGIC_REUSE_RATE = new Stats("MAGIC_REUSE_RATE", 16, "mReuse", null, null, false);
        PHYSIC_REUSE_RATE = new Stats("PHYSIC_REUSE_RATE", 17, "pReuse", null, null, false);
        ATK_REUSE = new Stats("ATK_REUSE", 18, "atkReuse", null, null, false);
        ATK_BASE = new Stats("ATK_BASE", 19, "atkBaseSpeed", null, null, false);
        CRITICAL_DAMAGE = new Stats("CRITICAL_DAMAGE", 20, "cAtk", Integer.valueOf(0), Integer.valueOf(Config.LIM_CRIT_DAM.intValue() / 2), false, new InitConst(100D));
        CRITICAL_DAMAGE_STATIC = new Stats("CRITICAL_DAMAGE_STATIC", 21, "cAtkStatic", null, null, false, new InitConst(0.0D));
        EVASION_RATE = new Stats("EVASION_RATE", 22, "rEvas", Integer.valueOf(0), Config.LIM_EVASION, false);
        ACCURACY_COMBAT = new Stats("ACCURACY_COMBAT", 23, "accCombat", Integer.valueOf(0), Config.LIM_ACCURACY, false);
        CRITICAL_BASE = new Stats("CRITICAL_BASE", 24, "baseCrit", Integer.valueOf(0), Config.LIM_CRIT, false, new InitConst(100D));
        CRITICAL_RATE = new Stats("CRITICAL_RATE", 25, "rCrit", Integer.valueOf(0), null, false, new InitConst(100D));
        MCRITICAL_RATE = new Stats("MCRITICAL_RATE", 26, "mCritRate", Integer.valueOf(0), Config.LIM_MCRIT, false, new InitConst(10D));
        MCRITICAL_DAMAGE = new Stats("MCRITICAL_DAMAGE", 27, "mCritDamage", Integer.valueOf(0), Integer.valueOf(10), false, new InitConst(2.5D));
        PHYSICAL_DAMAGE = new Stats("PHYSICAL_DAMAGE", 28, "physDamage", null, null, false, null);
        MAGIC_DAMAGE = new Stats("MAGIC_DAMAGE", 29, "magicDamage", null, null, false, null);
        SKILL_POWER_ATTACK = new Stats("SKILL_POWER_ATTACK", 30, "skillpAtk", null, null, false, null);
        NON_SKILL_POWER_ATTACK = new Stats("NON_SKILL_POWER_ATTACK", 31, "nonskillpAtk", null, null, false, null);
        CAST_INTERRUPT = new Stats("CAST_INTERRUPT", 32, "concentration", Integer.valueOf(0), Integer.valueOf(100), false, null);
        SHIELD_DEFENCE = new Stats("SHIELD_DEFENCE", 33, "sDef", null, null, false);
        SHIELD_RATE = new Stats("SHIELD_RATE", 34, "rShld", Integer.valueOf(0), Integer.valueOf(90), false, new Init_rShld());
        SHIELD_ANGLE = new Stats("SHIELD_ANGLE", 35, "shldAngle", null, null, false, new InitConst(60D));
        POWER_ATTACK_RANGE = new Stats("POWER_ATTACK_RANGE", 36, "pAtkRange", Integer.valueOf(0), Integer.valueOf(1500), false);
        MAGIC_ATTACK_RANGE = new Stats("MAGIC_ATTACK_RANGE", 37, "mAtkRange", Integer.valueOf(0), Integer.valueOf(1500), false);
        POLE_ATTACK_ANGLE = new Stats("POLE_ATTACK_ANGLE", 38, "poleAngle", Integer.valueOf(0), Integer.valueOf(180), false);
        POLE_TARGERT_COUNT = new Stats("POLE_TARGERT_COUNT", 39, "poleTargetCount", null, null, false);
        STAT_STR = new Stats("STAT_STR", 40, "STR", Integer.valueOf(1), Integer.valueOf(99), false);
        STAT_CON = new Stats("STAT_CON", 41, "CON", Integer.valueOf(1), Integer.valueOf(99), false);
        STAT_DEX = new Stats("STAT_DEX", 42, "DEX", Integer.valueOf(1), Integer.valueOf(99), false);
        STAT_INT = new Stats("STAT_INT", 43, "INT", Integer.valueOf(1), Integer.valueOf(99), false);
        STAT_WIT = new Stats("STAT_WIT", 44, "WIT", Integer.valueOf(1), Integer.valueOf(99), false);
        STAT_MEN = new Stats("STAT_MEN", 45, "MEN", Integer.valueOf(1), Integer.valueOf(99), false);
        BREATH = new Stats("BREATH", 46, "breath", null, null, false);
        FALL = new Stats("FALL", 47, "fall", null, null, false);
        EXP_LOST = new Stats("EXP_LOST", 48, "expLost", null, null, false);
        BLEED_RECEPTIVE = new Stats("BLEED_RECEPTIVE", 49, "bleedRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        POISON_RECEPTIVE = new Stats("POISON_RECEPTIVE", 50, "poisonRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        STUN_RECEPTIVE = new Stats("STUN_RECEPTIVE", 51, "stunRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        ROOT_RECEPTIVE = new Stats("ROOT_RECEPTIVE", 52, "rootRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        MENTAL_RECEPTIVE = new Stats("MENTAL_RECEPTIVE", 53, "mentalRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        SLEEP_RECEPTIVE = new Stats("SLEEP_RECEPTIVE", 54, "sleepRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        PARALYZE_RECEPTIVE = new Stats("PARALYZE_RECEPTIVE", 55, "paralyzeRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        CANCEL_RECEPTIVE = new Stats("CANCEL_RECEPTIVE", 56, "cancelRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        DEBUFF_RECEPTIVE = new Stats("DEBUFF_RECEPTIVE", 57, "debuffRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        MAGIC_RECEPTIVE = new Stats("MAGIC_RECEPTIVE", 58, "magicRcpt", Integer.valueOf(-200), Integer.valueOf(300), false, new InitConst(0.0D));
        BLEED_POWER = new Stats("BLEED_POWER", 59, "bleedPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        POISON_POWER = new Stats("POISON_POWER", 60, "poisonPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        STUN_POWER = new Stats("STUN_POWER", 61, "stunPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        ROOT_POWER = new Stats("ROOT_POWER", 62, "rootPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        MENTAL_POWER = new Stats("MENTAL_POWER", 63, "mentalPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        SLEEP_POWER = new Stats("SLEEP_POWER", 64, "sleepPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        PARALYZE_POWER = new Stats("PARALYZE_POWER", 65, "paralyzePower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        CANCEL_POWER = new Stats("CANCEL_POWER", 66, "cancelPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        DEBUFF_POWER = new Stats("DEBUFF_POWER", 67, "debuffPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        MAGIC_POWER = new Stats("MAGIC_POWER", 68, "magicPower", Integer.valueOf(-200), Integer.valueOf(200), false, new InitConst(0.0D));
        SKILL_CRIT_CHANCE_MOD = new Stats("SKILL_CRIT_CHANCE_MOD", 69, "SkillCritChanceMod", Integer.valueOf(10), Integer.valueOf(190), false, new InitConst(100D));
        FATALBLOW_RATE = new Stats("FATALBLOW_RATE", 70, "blowRate", Integer.valueOf(0), Integer.valueOf(10), false, new InitConst(1.0D));
        DEATH_RECEPTIVE = new Stats("DEATH_RECEPTIVE", 71, "deathRcpt", Integer.valueOf(10), Integer.valueOf(190), false, new InitConst(100D));
        FIRE_RECEPTIVE = new Stats("FIRE_RECEPTIVE", 72, "fireRcpt", null, null, false);
        WIND_RECEPTIVE = new Stats("WIND_RECEPTIVE", 73, "windRcpt", null, null, false);
        WATER_RECEPTIVE = new Stats("WATER_RECEPTIVE", 74, "waterRcpt", null, null, false);
        EARTH_RECEPTIVE = new Stats("EARTH_RECEPTIVE", 75, "earthRcpt", null, null, false);
        UNHOLY_RECEPTIVE = new Stats("UNHOLY_RECEPTIVE", 76, "unholyRcpt", null, null, false);
        SACRED_RECEPTIVE = new Stats("SACRED_RECEPTIVE", 77, "sacredRcpt", null, null, false);
        CRIT_DAMAGE_RECEPTIVE = new Stats("CRIT_DAMAGE_RECEPTIVE", 78, "critDamRcpt", Integer.valueOf(50), Integer.valueOf(200), false, new InitConst(100D));
        CRIT_CHANCE_RECEPTIVE = new Stats("CRIT_CHANCE_RECEPTIVE", 79, "critChanceRcpt", Integer.valueOf(10), Integer.valueOf(190), false, new InitConst(100D));
        ATTACK_ELEMENT_FIRE = new Stats("ATTACK_ELEMENT_FIRE", 80, "attackFire", Integer.valueOf(0), Integer.valueOf(500), false);
        ATTACK_ELEMENT_WATER = new Stats("ATTACK_ELEMENT_WATER", 81, "attackWater", Integer.valueOf(0), Integer.valueOf(500), false);
        ATTACK_ELEMENT_WIND = new Stats("ATTACK_ELEMENT_WIND", 82, "attackWind", Integer.valueOf(0), Integer.valueOf(500), false);
        ATTACK_ELEMENT_EARTH = new Stats("ATTACK_ELEMENT_EARTH", 83, "attackEarth", Integer.valueOf(0), Integer.valueOf(500), false);
        ATTACK_ELEMENT_SACRED = new Stats("ATTACK_ELEMENT_SACRED", 84, "attackSacred", Integer.valueOf(0), Integer.valueOf(500), false);
        ATTACK_ELEMENT_UNHOLY = new Stats("ATTACK_ELEMENT_UNHOLY", 85, "attackUnholy", Integer.valueOf(0), Integer.valueOf(500), false);
        SWORD_WPN_RECEPTIVE = new Stats("SWORD_WPN_RECEPTIVE", 86, "swordWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        DUAL_WPN_RECEPTIVE = new Stats("DUAL_WPN_RECEPTIVE", 87, "dualWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        BLUNT_WPN_RECEPTIVE = new Stats("BLUNT_WPN_RECEPTIVE", 88, "bluntWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        DAGGER_WPN_RECEPTIVE = new Stats("DAGGER_WPN_RECEPTIVE", 89, "daggerWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        BOW_WPN_RECEPTIVE = new Stats("BOW_WPN_RECEPTIVE", 90, "bowWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        CROSSBOW_WPN_RECEPTIVE = new Stats("CROSSBOW_WPN_RECEPTIVE", 91, "crossbowWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        POLE_WPN_RECEPTIVE = new Stats("POLE_WPN_RECEPTIVE", 92, "poleWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        FIST_WPN_RECEPTIVE = new Stats("FIST_WPN_RECEPTIVE", 93, "fistWpnRcpt", Integer.valueOf(10), Integer.valueOf(200), false, new InitConst(100D));
        ABSORB_DAMAGE_PERCENT = new Stats("ABSORB_DAMAGE_PERCENT", 94, "absorbDam", Integer.valueOf(0), Integer.valueOf(100), false);
        ABSORB_DAMAGEMP_PERCENT = new Stats("ABSORB_DAMAGEMP_PERCENT", 95, "absorbDamMp", Integer.valueOf(0), Integer.valueOf(100), false);
        TRANSFER_PET_DAMAGE_PERCENT = new Stats("TRANSFER_PET_DAMAGE_PERCENT", 96, "transferPetDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_AND_BLOCK_DAMAGE_CHANCE = new Stats("REFLECT_AND_BLOCK_DAMAGE_CHANCE", 97, "reflectAndBlockDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_AND_BLOCK_PSKILL_DAMAGE_CHANCE = new Stats("REFLECT_AND_BLOCK_PSKILL_DAMAGE_CHANCE", 98, "reflectAndBlockPSkillDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_AND_BLOCK_MSKILL_DAMAGE_CHANCE = new Stats("REFLECT_AND_BLOCK_MSKILL_DAMAGE_CHANCE", 99, "reflectAndBlockMSkillDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_DAMAGE_PERCENT = new Stats("REFLECT_DAMAGE_PERCENT", 100, "reflectDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_PSKILL_DAMAGE_PERCENT = new Stats("REFLECT_PSKILL_DAMAGE_PERCENT", 101, "reflectPSkillDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_MSKILL_DAMAGE_PERCENT = new Stats("REFLECT_MSKILL_DAMAGE_PERCENT", 102, "reflectMSkillDam", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_PHYSIC_SKILL = new Stats("REFLECT_PHYSIC_SKILL", 103, "reflectPhysicSkill", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_MAGIC_SKILL = new Stats("REFLECT_MAGIC_SKILL", 104, "reflectMagicSkill", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_PHYSIC_DEBUFF = new Stats("REFLECT_PHYSIC_DEBUFF", 105, "reflectPhysicDebuff", Integer.valueOf(0), Integer.valueOf(100), false);
        REFLECT_MAGIC_DEBUFF = new Stats("REFLECT_MAGIC_DEBUFF", 106, "reflectMagicDebuff", Integer.valueOf(0), Integer.valueOf(100), false);
        PSKILL_EVASION = new Stats("PSKILL_EVASION", 107, "pSkillEvasion", Integer.valueOf(0), Integer.valueOf(100), false);
        MSKILL_EVASION = new Stats("MSKILL_EVASION", 108, "mSkillEvasion", Integer.valueOf(0), Integer.valueOf(100), false);
        COUNTER_ATTACK = new Stats("COUNTER_ATTACK", 109, "counterAttack", Integer.valueOf(0), Integer.valueOf(100), false);
        CANCEL_TARGET = new Stats("CANCEL_TARGET", 110, "cancelTarget", Integer.valueOf(0), Integer.valueOf(100), false);
        HEAL_EFFECTIVNESS = new Stats("HEAL_EFFECTIVNESS", 111, "hpEff", Integer.valueOf(0), Integer.valueOf(1000), false);
        MANAHEAL_EFFECTIVNESS = new Stats("MANAHEAL_EFFECTIVNESS", 112, "mpEff", Integer.valueOf(0), null, false);
        CPHEAL_EFFECTIVNESS = new Stats("CPHEAL_EFFECTIVNESS", 113, "cpEff", Integer.valueOf(0), Integer.valueOf(1000), false);
        HEAL_POWER = new Stats("HEAL_POWER", 114, "healPower", null, null, false);
        MP_MAGIC_SKILL_CONSUME = new Stats("MP_MAGIC_SKILL_CONSUME", 115, "mpConsum", null, null, false);
        MP_PHYSICAL_SKILL_CONSUME = new Stats("MP_PHYSICAL_SKILL_CONSUME", 116, "mpConsumePhysical", null, null, false);
        MP_DANCE_SKILL_CONSUME = new Stats("MP_DANCE_SKILL_CONSUME", 117, "mpDanceConsume", null, null, false);
        MP_USE_BOW = new Stats("MP_USE_BOW", 118, "cheapShot", null, null, false);
        MP_USE_BOW_CHANCE = new Stats("MP_USE_BOW_CHANCE", 119, "cheapShotChance", null, null, false);
        SS_USE_BOW = new Stats("SS_USE_BOW", 120, "miser", null, null, false);
        SS_USE_BOW_CHANCE = new Stats("SS_USE_BOW_CHANCE", 121, "miserChance", null, null, false);
        ACTIVATE_RATE = new Stats("ACTIVATE_RATE", 122, "activateRate", null, null, false);
        SKILL_MASTERY = new Stats("SKILL_MASTERY", 123, "skillMastery", Integer.valueOf(0), null, false);
        MAX_LOAD = new Stats("MAX_LOAD", 124, "maxLoad", null, null, false);
        MAX_NO_PENALTY_LOAD = new Stats("MAX_NO_PENALTY_LOAD", 125, "maxNoPenaltyLoad", null, null, false);
        INVENTORY_LIMIT = new Stats("INVENTORY_LIMIT", 126, "inventoryLimit", null, Config.SERVICES_EXPAND_INVENTORY_MAX, false);
        STORAGE_LIMIT = new Stats("STORAGE_LIMIT", 127, "storageLimit", null, null, false);
        TRADE_LIMIT = new Stats("TRADE_LIMIT", 128, "tradeLimit", null, null, false);
        COMMON_RECIPE_LIMIT = new Stats("COMMON_RECIPE_LIMIT", 129, "CommonRecipeLimit", null, null, false);
        DWARVEN_RECIPE_LIMIT = new Stats("DWARVEN_RECIPE_LIMIT", 130, "DwarvenRecipeLimit", null, null, false);
        BUFF_LIMIT = new Stats("BUFF_LIMIT", 131, "buffLimit", null, null, false);
        MUSIC_LIMIT = new Stats("MUSIC_LIMIT", 132, "musicLimit", null, null, false);
        SOULS_LIMIT = new Stats("SOULS_LIMIT", 133, "soulsLimit", null, null, false);
        SOULS_CONSUME_EXP = new Stats("SOULS_CONSUME_EXP", 134, "soulsExp", null, null, false);
        TALISMANS_LIMIT = new Stats("TALISMANS_LIMIT", 135, "talismansLimit", Integer.valueOf(0), Integer.valueOf(6), false);
        GRADE_EXPERTISE_LEVEL = new Stats("GRADE_EXPERTISE_LEVEL", 136, "gradeExpertiseLevel", null, null, false);
        EXP = new Stats("EXP", 137, "ExpMultiplier", Integer.valueOf(0), null, false);
        SP = new Stats("SP", 138, "SpMultiplier", Integer.valueOf(0), null, false);
        DROP = new Stats("DROP", 139, "DropMultiplier", null, null, false);
        VITALITY_CONSUME_RATE = new Stats("VITALITY_CONSUME_RATE", 140, "vitalityConsumeRate", null, null, false);
        $VALUES = (new Stats[] {
            MAX_HP, MAX_MP, MAX_CP, HP_LIMIT, MP_LIMIT, CP_LIMIT, REGENERATE_HP_RATE, REGENERATE_CP_RATE, REGENERATE_MP_RATE, RUN_SPEED,
            POWER_DEFENCE, MAGIC_DEFENCE, POWER_ATTACK, MAGIC_ATTACK, POWER_ATTACK_SPEED, MAGIC_ATTACK_SPEED, MAGIC_REUSE_RATE, PHYSIC_REUSE_RATE, ATK_REUSE, ATK_BASE,
            CRITICAL_DAMAGE, CRITICAL_DAMAGE_STATIC, EVASION_RATE, ACCURACY_COMBAT, CRITICAL_BASE, CRITICAL_RATE, MCRITICAL_RATE, MCRITICAL_DAMAGE, PHYSICAL_DAMAGE, MAGIC_DAMAGE,
            SKILL_POWER_ATTACK, NON_SKILL_POWER_ATTACK, CAST_INTERRUPT, SHIELD_DEFENCE, SHIELD_RATE, SHIELD_ANGLE, POWER_ATTACK_RANGE, MAGIC_ATTACK_RANGE, POLE_ATTACK_ANGLE, POLE_TARGERT_COUNT,
            STAT_STR, STAT_CON, STAT_DEX, STAT_INT, STAT_WIT, STAT_MEN, BREATH, FALL, EXP_LOST, BLEED_RECEPTIVE,
            POISON_RECEPTIVE, STUN_RECEPTIVE, ROOT_RECEPTIVE, MENTAL_RECEPTIVE, SLEEP_RECEPTIVE, PARALYZE_RECEPTIVE, CANCEL_RECEPTIVE, DEBUFF_RECEPTIVE, MAGIC_RECEPTIVE, BLEED_POWER,
            POISON_POWER, STUN_POWER, ROOT_POWER, MENTAL_POWER, SLEEP_POWER, PARALYZE_POWER, CANCEL_POWER, DEBUFF_POWER, MAGIC_POWER, SKILL_CRIT_CHANCE_MOD,
            FATALBLOW_RATE, DEATH_RECEPTIVE, FIRE_RECEPTIVE, WIND_RECEPTIVE, WATER_RECEPTIVE, EARTH_RECEPTIVE, UNHOLY_RECEPTIVE, SACRED_RECEPTIVE, CRIT_DAMAGE_RECEPTIVE, CRIT_CHANCE_RECEPTIVE,
            ATTACK_ELEMENT_FIRE, ATTACK_ELEMENT_WATER, ATTACK_ELEMENT_WIND, ATTACK_ELEMENT_EARTH, ATTACK_ELEMENT_SACRED, ATTACK_ELEMENT_UNHOLY, SWORD_WPN_RECEPTIVE, DUAL_WPN_RECEPTIVE, BLUNT_WPN_RECEPTIVE, DAGGER_WPN_RECEPTIVE,
            BOW_WPN_RECEPTIVE, CROSSBOW_WPN_RECEPTIVE, POLE_WPN_RECEPTIVE, FIST_WPN_RECEPTIVE, ABSORB_DAMAGE_PERCENT, ABSORB_DAMAGEMP_PERCENT, TRANSFER_PET_DAMAGE_PERCENT, REFLECT_AND_BLOCK_DAMAGE_CHANCE, REFLECT_AND_BLOCK_PSKILL_DAMAGE_CHANCE, REFLECT_AND_BLOCK_MSKILL_DAMAGE_CHANCE,
            REFLECT_DAMAGE_PERCENT, REFLECT_PSKILL_DAMAGE_PERCENT, REFLECT_MSKILL_DAMAGE_PERCENT, REFLECT_PHYSIC_SKILL, REFLECT_MAGIC_SKILL, REFLECT_PHYSIC_DEBUFF, REFLECT_MAGIC_DEBUFF, PSKILL_EVASION, MSKILL_EVASION, COUNTER_ATTACK,
            CANCEL_TARGET, HEAL_EFFECTIVNESS, MANAHEAL_EFFECTIVNESS, CPHEAL_EFFECTIVNESS, HEAL_POWER, MP_MAGIC_SKILL_CONSUME, MP_PHYSICAL_SKILL_CONSUME, MP_DANCE_SKILL_CONSUME, MP_USE_BOW, MP_USE_BOW_CHANCE,
            SS_USE_BOW, SS_USE_BOW_CHANCE, ACTIVATE_RATE, SKILL_MASTERY, MAX_LOAD, MAX_NO_PENALTY_LOAD, INVENTORY_LIMIT, STORAGE_LIMIT, TRADE_LIMIT, COMMON_RECIPE_LIMIT,
            DWARVEN_RECIPE_LIMIT, BUFF_LIMIT, MUSIC_LIMIT, SOULS_LIMIT, SOULS_CONSUME_EXP, TALISMANS_LIMIT, GRADE_EXPERTISE_LEVEL, EXP, SP, DROP,
            VITALITY_CONSUME_RATE
        });
    }
}

Вот скрипт. Проблема в том что не работает резист magicRcpt. С начало думал что он не реализован, судя по этому скрипту он реализован и вроде правильно. Но скилы с эти резистом не работают. Может я че не правильно делаю в самих скилах. Вот код скила.
Код:
<skill id="913" levels="1" name="Deflect Magic">
        
        Description: Increases resistance to magic attacks by 100% for 20 minutes.
        -->
        <set name="target" val="TARGET_SELF" />
        <set name="skillType" val="BUFF" />
        <set name="operateType" val="OP_ACTIVE" />
        <for>
            <effect name="Buff" time="1200" val="0">
                <add order="0x40" stat="magicRcpt" val="100"/>
            </effect>
        </for>
    </skill>
Ответ
#2
В коде, который вы показали, лишь заносится значение в MAGIC_RECEPTIVE. Обработки то нету.
Ответ
#3
Код:
В коде, который вы показали, лишь заносится значение в MAGIC_RECEPTIVE. Обработки то нету.
Подскажет где искать..
Ответ
#4
Formulas.java
Ответ
#5
Код:
{
            double magic_rcpt = target.calcStat(Stats.MAGIC_RECEPTIVE, attacker, skill) - attacker.calcStat(Stats.MAGIC_POWER, target, skill);
            double failChance = 5D * Math.max(1.0D, levelDiff) * (1.0D + magic_rcpt / 100D);
            if(Rnd.chance(0.10000000000000001D * failChance))
            {

Ну вроде как тоже запилин.

Добавлено через 3 часа 39 минут
Подскажите что делать=)) не работает параметр.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Проблема с квестами "Письма Кекропуса" Metallurg1985 0 550 11-05-2023, 07:01 PM
Последний пост: Metallurg1985
  java прогер Light87 0 1,923 01-18-2021, 12:15 AM
Последний пост: Light87
  Проблема с баферами Mor9k400 4 1,917 09-10-2018, 09:08 PM
Последний пост: Mor9k400
  Помогите переписать скрипт с Python на Java Virrilis3 0 1,478 03-29-2018, 10:55 PM
Последний пост: Virrilis3
  Ищу исполнителя [Java] Abstragetic 3 2,141 02-05-2017, 03:01 AM
Последний пост: Deazer
  Проблема с созданием персонажа Trufan 3 1,935 08-18-2016, 01:26 PM
Последний пост: Gaikotsu
  Проблема с custom jscripts. Сборка pw ESCfromReality 2 1,991 08-14-2016, 04:05 PM
Последний пост: KID
  Проблема с компилом Nez 2 1,735 08-04-2016, 04:08 PM
Последний пост: Nez
  Проблема с квестом взросление дракончика nemoruss 3 1,786 01-29-2016, 01:35 AM
Последний пост: nemoruss
  Проблема с квестом Elrokian Hunter's Proof Goffa 1 1,487 01-26-2016, 12:04 PM
Последний пост: GenCloud

Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)