public override bool StateAttack(GSkill skill) { GPlayerWrapper player = skill.GetPlayer(); GPlayerWrapper victim = skill.GetVictim(); int player_def = player.GetDef(); int player_skilldodge = player.GetSkilldodge(); int player_var1 = player.GetVar1(); int player_var2 = player.GetVar2(); int player_var3 = player.GetVar3(); int player_var4 = player.GetVar4(); int skill_level = skill.GetLevel(); /* * if ( player.GetObjectType() ) * { * if ( player_def > 25000 || (v10 = player, GNET::PlayerWrapper::GetSkilldodge(v10) > 1000) ) ||v40 = 0.0f; ||else ||d = 100.0f; ||} ||else ||{ ||if ( player_var3 - player_skilldodge + 1000 <= 0 ) ||{ ||v41 = 0.0f; ||} ||else ||{ ||v41 = ((player_var3 - player_skilldodge + 1000) / 10 + 20); ||} ||d = v41; ||} ||victim.SetProbability(d); ||if ( skill_level == 10 ) ||{ ||v38 = player_var2; ||if ( zrand(100) > 49 ) ||v37 = 0.0f; ||else ||v37 = 0.2f; ||if ( player.GetHasbuff(4099) == 1 ) ||v36 = v37 + 1.0f; ||else ||v39 = v38 * ((0.0f * v37) + 1.0f); ||} ||else ||{ ||v39 = (zrand(10) * 0.01f + 0.95f) * player_var1; ||} ||victim.SetValue(v39); ||victim.SetDirecthurt(true); ||victim.SetProbability(((2 * player_var4))); ||victim.SetTime(((2000 * player_var4))); ||victim.SetBarehanded(true); ||victim.SetProbability(((2 * player_var4))); ||victim.SetTime(((2000 * player_var4))); ||victim.SetRatio(1.0f); ||victim.SetBuffid(1); ||victim.SetDecdefence(true); */ return(true); }