示例#1
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            GPlayerWrapper victim       = skill.GetVictim();
            int            player_maxhp = player.GetMaxhp();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();
            int            skill_t1     = skill.GetT1();
            int            skill_t2     = skill.GetT2();
            int            skill_t3     = skill.GetT3();

            /*
             * victim.SetProbability(120.0f);
             * v16 = 1000 * skill_t0 + 10000;
             * if ( skill_t1 < skill_t2 )
             * {
             * if ( skill_t2 < skill_t3 )
             * v13 = (v16 + skill_t3);
             * else
             * t = ((v16 + skill_t2));
             * }
             * else
             * {
             * if ( skill_t1 < skill_t3 )
             * v14 = (v16 + skill_t3);
             * else
             * t = ((v16 + skill_t1));
             * }
             * victim.SetTime(t);
             * victim.SetValue((player_maxhp * (skill_level * 0.05f)));
             * victim.SetBuxiu(true);
             */
            return(true);
        }
示例#2
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetProbability(120.0f);
            victim.SetTime(((3000 * (skill_t0 + skill_level))));
            victim.SetRatio((skill_level * 0.08f));
            victim.SetValue((skill_level * 0.08f));
            victim.SetSwift(true);
            victim.SetProbability(120.0f);
            victim.SetTime(((3000 * (skill_t0 + skill_level))));
            victim.SetRatio((skill_level * 0.1f));
            victim.SetBuffid(2);
            victim.SetInccrithurt(true);
            victim.SetProbability(0.0f);
            victim.SetTime(((3000 * (skill_t0 + skill_level))));
            victim.SetRatio(4099.0f);
            victim.SetBuffid(0);
            victim.SetAmount(skill_level);
            victim.SetValue(3491.0f);
            victim.SetActiveonfilteradd(true);
            victim.SetProbability(1.0f);
            victim.SetTime(((3000 * (skill_t0 + skill_level))));
            victim.SetRatio(4098.0f);
            victim.SetBuffid(1);
            victim.SetAmount(skill_level);
            victim.SetValue(3481.0f);
            victim.SetActiveonfilteradd(true);
            return(true);
        }
示例#3
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();
            int            skill_t1    = skill.GetT1();

            /*
             * victim.SetProbability(120.0f);
             * victim.SetTime(((2000 * skill_level + 8000)));
             * victim.SetBuffid(1);
             * victim.SetValue(4.0f);
             * victim.SetAddspeed(true);
             * victim.SetProbability(((33 * skill_t1 + 1)));
             * victim.SetRatio(2.0f);
             * victim.SetAmount(0.0f);
             * victim.SetValue(0.0f);
             * victim.SetDispel(true);
             * if ( zrand(100) >= 10 * skill_t0 )
             * v20 = 0.0f;
             * else
             * victim.SetRatio(4010.0f);
             * victim.SetAmount(0.0f);
             * victim.SetValue(0.0f);
             * victim.SetClearcooldown(true);
             */
            return(true);
        }
示例#4
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            GPlayerWrapper victim      = skill.GetVictim();
            int            player_var1 = player.GetVar1();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            /*
             * victim.SetProbability(120.0f);
             * victim.SetRatio(4240.0f);
             * victim.SetAmount(0.0f);
             * victim.SetValue(0.0f);
             * victim.SetDispel(true);
             * victim.SetTime(60000.0f);
             * victim.SetRatio(1.0f);
             * victim.SetAmount(((player_var1 * skill_level)));
             * victim.SetDechurt2(true);
             * if ( skill_t0 <= 0 )
             * t = 0.0f;
             * else
             * victim.SetTime(60000.0f);
             * victim.SetBuffid(1);
             * victim.SetValue(((player_var1 * skill_t0)));
             * victim.SetAddmp(true);
             */
            return(true);
        }
示例#5
0
        public override int GetCooldowntime(GSkill skill)
        {
            int skill_t0 = skill.GetT0();
            int skill_t3 = skill.GetT3();

            return((int)(((120000 - 15000 * skill_t0)) - skill_t3 * 2400.0f));
        }
示例#6
0
        public override bool BlessMe(GSkill skill)
        {
            GPlayerWrapper player         = skill.GetPlayer();
            GPlayerWrapper victim         = skill.GetVictim();
            int            skill_level    = skill.GetLevel();
            int            skill_t0       = skill.GetT0();
            int            skill_t1       = skill.GetT1();
            int            skill_t3       = skill.GetT3();
            int            skill_charging = skill.GetCharging();

            /*
             * victim.SetProbability(120.0f);
             * victim.SetTime(((1000 * skill_t3 + (10000 * (skill_charging / 0x12C0) + (5000 * skill_t0 + (10000 * (skill_level + player.GetCyclemembercnt())))) - 10000)));
             * victim.SetRatio(((player.GetCyclemembercnt() + (skill_t1 + skill_level) - 1)));
             * victim.SetBuffid(0);
             * victim.SetAmount(3604.0f);
             * victim.SetValue(2.0f);
             * victim.SetCycle(true);
             * victim.SetTime(900.0f);
             * victim.SetRatio(0.0f);
             * victim.SetAmount(0.0f);
             * victim.SetValue(0.0f);
             * victim.SetEvilaura(true);
             * if ( zrand(100) >= 2 * player.GetSkilllevel(3759) )
             * d = 218.0f;
             * else
             * victim.SetRatio(3449.0f);
             * victim.SetAmount(218.0f);
             * victim.SetValue(218.0f);
             * victim.SetClearcooldown(true);
             */
            return(true);
        }
示例#7
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            GPlayerWrapper victim      = skill.GetVictim();
            int            player_var1 = player.GetVar1();
            int            skill_t0    = skill.GetT0();

            /*
             * v17 = 5 * skill_t0 + 15;
             * if ( player.GetHasbuff(4120) == 1 )
             * v16 = (v17 - 10);
             * else
             * victim.SetProbability(v17);
             * victim.SetTime(16100.0f);
             * victim.SetRatio(8.0f);
             * if ( player.GetHasbuff(4120) == 1 )
             * v15 = zrand(2) + 1;
             * else
             * victim.SetBuffid((zrand(5) + 1));
             * victim.SetAmount(9.0f);
             * victim.SetValue((player_var1 * 0.05f));
             * victim.SetFiring(true);
             */
            return(true);
        }
示例#8
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            GPlayerWrapper victim       = skill.GetVictim();
            int            player_mp    = player.GetMp();
            int            player_var1  = player.GetVar1();
            int            player_var10 = player.GetVar10();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();

            /*
             * if ( zrand(3 * skill_level + 5) > 99 )
             * {
             * d = 0.0f;
             * }
             * else
             * {
             * d = player_var10;
             * }
             * victim.SetProbability(d);
             * victim.SetTime(3000.0f);
             * victim.SetValue(0.0f);
             * victim.SetSleep(true);
             * victim.SetProbability(-1.0f);
             * victim.SetTime(2000.0f);
             * victim.SetBuffid(1);
             * victim.SetAmount((player_mp * (skill_t0 * 0.05f + (skill_level * 0.02f + 0.15f))));
             * victim.SetValue(1.0f);
             * victim.SetMpleak(true);
             */
            return(true);
        }
示例#9
0
        public override int GetCooldowntime(GSkill skill)
        {
            int skill_t0 = skill.GetT0();
            int skill_t1 = skill.GetT1();
            int skill_t2 = skill.GetT2();

            return(3600000 * (skill_t2 + skill_t1 + skill_t0) + 2000);;
        }
示例#10
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            player.SetPasdecfatalhurt((skill_level * (skill_t0 * 0.0051f)));
            return(true);
        }
示例#11
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            player.SetPasaddanti((INT(skill_level * (skill_level * 0.13f)) + skill_level) * (skill_t0 + 1));
            return(true);
        }
示例#12
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            skill_level  = skill.GetLevel();
                int            skill_t0     = skill.GetT0();

                skill.SetPlus((((20 * skill_level + 50) * norm(30 / player_level) + (5 * (skill_level * skill_t0 + skill_level)) + 40)));
                player.SetPerform(1);
            }
示例#13
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player      = skill.GetPlayer();
                int            skill_level = skill.GetLevel();
                int            skill_t0    = skill.GetT0();

                skill.SetRatio((skill_t0 * 0.01f + 1.0f));
                skill.SetPlus(((10 * skill_level + 133)));
                player.SetPerform(1);
            }
示例#14
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            int            player_level = player.GetLevel();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();

            player.SetPasaddattack((skill_level * (player_level * 0.2f)));
            player.SetPasaddaccuracy(((3 * skill_level * skill_t0)));
            return(true);
        }
示例#15
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            player.SetPasaddsleep(((10 * skill_level)));
            player.SetPasaddsmite((skill_level * (skill_t0 * 0.02f)));
            player.SetPasincskilldodge(((10 * skill_level)));
            return(true);
        }
示例#16
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            int            player_level = player.GetLevel();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();

            player.SetPasadddefence((skill_level * (player_level * 0.15f)));
            player.SetPasadddodge(((2 * skill_t0 * skill_level)));
            return(true);
        }
示例#17
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();
            int            skill_t1    = skill.GetT1();

            player.SetPasincmp((skill_level * (skill_t0 * 0.03f) + (skill_level * 0.07000000000000001f)));
            player.SetPasaddsmite((skill_level * (skill_t1 * 0.02f)));
            return(true);
        }
示例#18
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();
            int            skill_t1    = skill.GetT1();

            player.SetPasincmpgen(skill_level * (skill_t0 * 0.15f + 0.3f));
            player.SetPasaddhp(20 * skill_level * skill_t1);
            return(true);
        }
示例#19
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            player.SetPasaddsmite((skill_level * (skill_t0 * 0.01f) + (skill_level * 0.07000000000000001f)));
            player.SetPasaddattack(((skill_level * skill_t0)));
            player.SetPasadddodge(((skill_level * skill_t0)));
            return(true);
        }
示例#20
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetProbability(((5 * skill_t0 + (4 * skill_level) + 20)));
            victim.SetTime(((skill_t0 + (skill_level * 0.5f + 1.0f)) * 1000.0f));
            victim.SetDizzy(true);
            return(true);
        }
示例#21
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();
            int            skill_t1    = skill.GetT1();

            player.SetPasaddsilent(((skill_t0 * 0.3f + 1.0f) * ((9 * skill_level))));
            player.SetPasinccrit((skill_level * (skill_t1 * 0.002f) + 0.0001f));
            return(true);
        }
示例#22
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetTime(((1000 * skill_t0 + 8100)));
            victim.SetRatio((zrand(3 * skill_level + 20) / 100.0f + (skill_level * 0.03f)));
            victim.SetBuffid(1);
            victim.SetDecskilldamage(true);
            return(true);
        }
示例#23
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player        = skill.GetPlayer();
                int            player_maxatk = player.GetMaxatk();
                int            skill_level   = skill.GetLevel();
                int            skill_t0      = skill.GetT0();

                player.SetVar1(player_maxatk);
                skill.SetRatio((skill_t0 * 0.04f + ((4 * (skill_level + ((2 * skill_level - 30) * (skill_level / 15)))) * 0.01f + 1.0f)));
                skill.SetPlus(((3 * skill_level * skill_level + (21 * skill_level) + 375)));
                player.SetPerform(0);
            }
示例#24
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetProbability(((5 * skill_t0 + (2 * skill_level) + 20)));
            victim.SetClearsilent(true);
            victim.SetProbability(((5 * skill_t0 + (2 * skill_level) + 20)));
            victim.SetClearwrap(true);
            return(true);
        }
示例#25
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();
            int            skill_t1    = skill.GetT1();

            player.SetPasaddweak((((3 * skill_t0 + 9) * skill_level)));
            player.SetPasaddhp(((20 * skill_t1 * skill_level)));
            player.SetPasdecfatalratio((skill_level * 0.0101f));
            return(true);
        }
示例#26
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetProbability(((5 * skill_level + 15)));
            victim.SetTime(((3000 * skill_level + 3100)));
            victim.SetRatio((skill_level * 0.05f + (skill_t0 * 0.05f + 0.25f)));
            victim.SetBuffid(0);
            victim.SetSlow(true);
            return(true);
        }
示例#27
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            GPlayerWrapper victim       = skill.GetVictim();
            int            player_level = player.GetLevel();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();

            victim.SetProbability(((1.0f - player_level * 0.002f) * ((2 * skill_t0 + (5 * skill_level) + 35))));
            victim.SetTime(((4000 * skill_level + 4100)));
            victim.SetBarehanded(true);
            return(true);
        }
示例#28
0
        public override bool TakeEffect(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            int            player_level = player.GetLevel();
            int            skill_level  = skill.GetLevel();
            int            skill_t0     = skill.GetT0();
            int            skill_t1     = skill.GetT1();

            player.SetPasaddattack(skill_level * (player_level * 0.1f));
            player.SetPasincattack((skill_level / 2) * (skill_t0 * 0.01f));
            player.SetPasadddefence(skill_level * skill_t1);
            return(true);
        }
示例#29
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper victim      = skill.GetVictim();
            int            skill_level = skill.GetLevel();
            int            skill_t0    = skill.GetT0();

            victim.SetProbability(((3 * skill_t0 + 50)));
            victim.SetTime(20000.0f);
            victim.SetRatio((skill_level * 0.2f));
            victim.SetBuffid(1);
            victim.SetDeccrithurt(true);
            return(true);
        }
示例#30
0
            public override void Calculate(GSkill skill)
            {
                GPlayerWrapper player       = skill.GetPlayer();
                int            player_level = player.GetLevel();
                int            player_def   = player.GetDef();
                int            skill_level  = skill.GetLevel();
                int            skill_t0     = skill.GetT0();
                int            skill_t1     = skill.GetT1();

                skill.SetRatio((D2INT(player_level / (9 - skill_level)) * 0.01f + (skill_level * 0.06f + (skill_t0 * 0.1f + 1.0f))));
                skill.SetPlus((player_def * (skill_t1 * 0.03f) + ((215 * skill_level))));
                player.SetPerform(1);
            }