Exemple #1
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            GPlayerWrapper victim      = skill.GetVictim();
            int            player_var6 = player.GetVar6();
            int            skill_level = skill.GetLevel();

            /*
             * if ( zrand(100) >= 2 * skill_level + 5 )
             * {
             * d = 0.0f;
             * }
             * else
             * {
             * if ( player_var6 <= 599 )
             * {
             * v10 = 600.0f;
             * }
             * else
             * {
             * v10 = player_var6;
             * }
             * d = v10;
             * }
             * victim.SetProbability(d);
             * victim.SetTime(((1000 * skill_level + 4000)));
             * victim.SetDizzy(true);
             */
            return(true);
        }
Exemple #2
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player       = skill.GetPlayer();
            GPlayerWrapper victim       = skill.GetVictim();
            int            player_var1  = player.GetVar1();
            int            player_var6  = player.GetVar6();
            int            player_var7  = player.GetVar7();
            int            player_var8  = player.GetVar8();
            int            player_var9  = player.GetVar9();
            int            player_var10 = player.GetVar10();
            int            skill_level  = skill.GetLevel();

            victim.SetProbability((((player_var10 + (player_var9 + (player_var8 + (player_var7 + player_var6)))) / 5)));
            victim.SetTime(((1000 * skill_level + 6000)));
            victim.SetSilent(true);
            return(true);
        }