コード例 #1
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            GPlayerWrapper victim      = skill.GetVictim();
            int            player_var8 = player.GetVar8();
            int            skill_level = skill.GetLevel();

            victim.SetProbability(((15 * skill_level + player_var8)));
            victim.SetTime(5100.0f);
            victim.SetWrap(true);
            return(true);
        }
コード例 #2
0
ファイル: Skill4240.cs プロジェクト: amusegame/sdk
        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);
        }
コード例 #3
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player      = skill.GetPlayer();
            GPlayerWrapper victim      = skill.GetVictim();
            int            player_var8 = player.GetVar8();
            int            skill_level = skill.GetLevel();

            /*
             * if ( player.GetHasmultbuff(113) != 1
             || (v3 = zrand(100), v3 >= 6 * skill_level + 54) )
             ||{
             ||d = 0.0f;
             ||}
             ||else
             ||{
             ||d = (6 * skill_level + player_var8);
             ||}
             ||victim.SetProbability(d);
             ||victim.SetTime(((1000 * skill_level + 2000)));
             ||victim.SetWrap(true);
             */
            return(true);
        }