id
int64
22
34.9k
comment_id
int64
0
328
comment
stringlengths
2
2.55k
code
stringlengths
31
107k
classification
stringclasses
6 values
isFinished
bool
1 class
code_context_2
stringlengths
21
27.3k
code_context_10
stringlengths
29
27.3k
code_context_20
stringlengths
29
27.3k
987
1
// Generate equality inferences
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate);
ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten);
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } }
987
2
// See if we can push inherited predicates down
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables));
outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } }
{ checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) {
987
3
// A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) {
EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in
ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } }
987
4
// Add the equalities from the inferences back in
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
} } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities());
// A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } }
EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } }
987
5
// See if we can push down any outer effective predicates to the inner side
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables)));
} } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) {
EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities());
987
6
// See if we can push down join predicates to the inner side
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
} } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables)));
outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example:
RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()),
987
7
// Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah'
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
NONSATD
true
} } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities());
// See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()),
outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
987
8
// TODO: we can further improve simplifying the equalities by considering other relationships from the outer side
private OuterJoinPushDownResult processLimitedOuterJoin(RowExpression inheritedPredicate, RowExpression outerEffectivePredicate, RowExpression innerEffectivePredicate, RowExpression joinPredicate, Collection<VariableReferenceExpression> outerVariables) { checkArgument(Iterables.all(VariablesExtractor.extractUnique(outerEffectivePredicate), in(outerVariables)), "outerEffectivePredicate must only contain variables from outerVariables"); checkArgument(Iterables.all(VariablesExtractor.extractUnique(innerEffectivePredicate), not(in(outerVariables))), "innerEffectivePredicate must not contain variables from outerVariables"); ImmutableList.Builder<RowExpression> outerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> innerPushdownConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> postJoinConjuncts = ImmutableList.builder(); ImmutableList.Builder<RowExpression> joinConjuncts = ImmutableList.builder(); // Strip out non-deterministic conjuncts postJoinConjuncts.addAll(filter(extractConjuncts(inheritedPredicate), not(determinismEvaluator::isDeterministic))); inheritedPredicate = logicalRowExpressions.filterDeterministicConjuncts(inheritedPredicate); outerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(outerEffectivePredicate); innerEffectivePredicate = logicalRowExpressions.filterDeterministicConjuncts(innerEffectivePredicate); joinConjuncts.addAll(filter(extractConjuncts(joinPredicate), not(determinismEvaluator::isDeterministic))); joinPredicate = logicalRowExpressions.filterDeterministicConjuncts(joinPredicate); // Generate equality inferences EqualityInference inheritedInference = createEqualityInference(inheritedPredicate); EqualityInference outerInference = createEqualityInference(inheritedPredicate, outerEffectivePredicate); EqualityInference.EqualityPartition equalityPartition = inheritedInference.generateEqualitiesPartitionedBy(in(outerVariables)); RowExpression outerOnlyInheritedEqualities = logicalRowExpressions.combineConjuncts(equalityPartition.getScopeEqualities()); EqualityInference potentialNullSymbolInference = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, innerEffectivePredicate, joinPredicate); // See if we can push inherited predicates down for (RowExpression conjunct : nonInferableConjuncts(inheritedPredicate)) { RowExpression outerRewritten = outerInference.rewriteExpression(conjunct, in(outerVariables)); if (outerRewritten != null) { outerPushdownConjuncts.add(outerRewritten); // A conjunct can only be pushed down into an inner side if it can be rewritten in terms of the outer side RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(outerRewritten, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } } else { postJoinConjuncts.add(conjunct); } } // Add the equalities from the inferences back in outerPushdownConjuncts.addAll(equalityPartition.getScopeEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeComplementEqualities()); postJoinConjuncts.addAll(equalityPartition.getScopeStraddlingEqualities()); // See if we can push down any outer effective predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
DESIGN
true
EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities());
innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
for (RowExpression conjunct : nonInferableConjuncts(outerEffectivePredicate)) { RowExpression rewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (rewritten != null) { innerPushdownConjuncts.add(rewritten); } } // See if we can push down join predicates to the inner side for (RowExpression conjunct : nonInferableConjuncts(joinPredicate)) { RowExpression innerRewritten = potentialNullSymbolInference.rewriteExpression(conjunct, not(in(outerVariables))); if (innerRewritten != null) { innerPushdownConjuncts.add(innerRewritten); } else { joinConjuncts.add(conjunct); } } // Push outer and join equalities into the inner side. For example: // SELECT * FROM nation LEFT OUTER JOIN region ON nation.regionkey = region.regionkey and nation.name = region.name WHERE nation.name = 'blah' EqualityInference potentialNullSymbolInferenceWithoutInnerInferred = createEqualityInference(outerOnlyInheritedEqualities, outerEffectivePredicate, joinPredicate); innerPushdownConjuncts.addAll(potentialNullSymbolInferenceWithoutInnerInferred.generateEqualitiesPartitionedBy(not(in(outerVariables))).getScopeEqualities()); // TODO: we can further improve simplifying the equalities by considering other relationships from the outer side EqualityInference.EqualityPartition joinEqualityPartition = createEqualityInference(joinPredicate).generateEqualitiesPartitionedBy(not(in(outerVariables))); innerPushdownConjuncts.addAll(joinEqualityPartition.getScopeEqualities()); joinConjuncts.addAll(joinEqualityPartition.getScopeComplementEqualities()) .addAll(joinEqualityPartition.getScopeStraddlingEqualities()); return new OuterJoinPushDownResult(logicalRowExpressions.combineConjuncts(outerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(innerPushdownConjuncts.build()), logicalRowExpressions.combineConjuncts(joinConjuncts.build()), logicalRowExpressions.combineConjuncts(postJoinConjuncts.build())); }
17,373
0
//TODO VT need to think how to send ID to observers
public void deleteByUserId(int userId) { try { DeleteBuilder<UserRequest, Long> deleteBuilder = dao.deleteBuilder(); deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { //TODO VT need to think how to send ID to observers notifyObserversDeletedById(userId); } } catch (SQLException e) { ErrorUtils.logError(e); } }
DESIGN
true
deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { //TODO VT need to think how to send ID to observers notifyObserversDeletedById(userId); }
public void deleteByUserId(int userId) { try { DeleteBuilder<UserRequest, Long> deleteBuilder = dao.deleteBuilder(); deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { //TODO VT need to think how to send ID to observers notifyObserversDeletedById(userId); } } catch (SQLException e) { ErrorUtils.logError(e); } }
public void deleteByUserId(int userId) { try { DeleteBuilder<UserRequest, Long> deleteBuilder = dao.deleteBuilder(); deleteBuilder.where().eq(QMUserColumns.ID, userId); if (deleteBuilder.delete() > 0) { //TODO VT need to think how to send ID to observers notifyObserversDeletedById(userId); } } catch (SQLException e) { ErrorUtils.logError(e); } }
991
0
// TODO: When support sharding, groupId needs to be bound to shard Id
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions); }
DESIGN
true
NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint();
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions);
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions); }
991
1
/* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions); }
NONSATD
true
String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions);
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions); }
private Node initRaftNode() throws IOException { NodeOptions nodeOptions = this.context.nodeOptions(); nodeOptions.setFsm(this.stateMachine); // TODO: When support sharding, groupId needs to be bound to shard Id String groupId = this.context.group(); PeerId endpoint = this.context.endpoint(); /* * Start raft node with shared rpc server: * return new RaftGroupService(groupId, endpoint, nodeOptions, * this.context.rpcServer(), true) * .start(false) */ return RaftServiceFactory.createAndInitRaftNode(groupId, endpoint, nodeOptions); }
25,568
0
/** * Tests whether a short number matches a valid pattern in a region. Note that this doesn't verify * the number is actually in use, which is impossible to tell by just looking at the number * itself. * * @param shortNumber the short number to check as a string * @param regionDialingFrom the region from which the number is dialed * @return whether the short number matches a valid pattern * @deprecated Anyone who was using it and passing in a string with whitespace (or other * formatting characters) would have been getting the wrong result. You should parse * the string to PhoneNumber and use the method * {@code #isValidShortNumberForRegion(PhoneNumber, String)}. This method will be * removed in the next release. */
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { return false; } PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); }
NONSATD
true
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { return false; } PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); }
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { return false; } PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); }
@Deprecated public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { PhoneMetadata phoneMetadata = MetadataManager.getShortNumberMetadataForRegion(regionDialingFrom); if (phoneMetadata == null) { return false; } PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { return false; } PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); }
25,580
0
// This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice()
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove(); if (key.isValid() && key.isReadable()) { Object attachment = key.attachment(); if (attachment instanceof Device) { Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } } } } } catch (IOException e) { if (mQuit == false) { } } } while (mQuit == false); }
NONSATD
true
do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { }
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance();
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort();
25,580
1
/* notify */
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove(); if (key.isValid() && key.isReadable()) { Object attachment = key.attachment(); if (attachment instanceof Device) { Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } } } } } catch (IOException e) { if (mQuit == false) { } } } while (mQuit == false); }
NONSATD
true
Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake!
if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST);
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) {
25,580
2
// This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake!
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove(); if (key.isValid() && key.isReadable()) { Object attachment = key.attachment(); if (attachment instanceof Device) { Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } } } } } catch (IOException e) { if (mQuit == false) { } } } while (mQuit == false); }
DESIGN
true
int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client);
return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear();
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove();
25,580
3
// restart the monitoring of that device
private void deviceClientMonitorLoop() { do { try { // This synchronized block stops us from doing the select() if a new // Device is being added. // @see startMonitoringDevice() synchronized (mDevices) { } int count = mSelector.select(); if (mQuit) { return; } synchronized (mClientsToReopen) { if (mClientsToReopen.size() > 0) { Set<Client> clients = mClientsToReopen.keySet(); MonitorThread monitorThread = MonitorThread.getInstance(); for (Client client : clients) { Device device = client.getDeviceImpl(); int pid = client.getClientData().getPid(); monitorThread.dropClient(client, false /* notify */); // This is kinda bad, but if we don't wait a bit, the client // will never answer the second handshake! waitABit(); int port = mClientsToReopen.get(client); if (port == IDebugPortProvider.NO_STATIC_PORT) { port = getNextDebuggerPort(); } Log.d("DeviceMonitor", "Reopening " + client); openClient(device, pid, port, monitorThread); device.update(Device.CHANGE_CLIENT_LIST); } mClientsToReopen.clear(); } } if (count == 0) { continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove(); if (key.isValid() && key.isReadable()) { Object attachment = key.attachment(); if (attachment instanceof Device) { Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } } } } } catch (IOException e) { if (mQuit == false) { } } } while (mQuit == false); }
NONSATD
true
"Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) {
Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } }
continue; } Set<SelectionKey> keys = mSelector.selectedKeys(); Iterator<SelectionKey> iter = keys.iterator(); while (iter.hasNext()) { SelectionKey key = iter.next(); iter.remove(); if (key.isValid() && key.isReadable()) { Object attachment = key.attachment(); if (attachment instanceof Device) { Device device = (Device)attachment; SocketChannel socket = device.getClientMonitoringSocket(); if (socket != null) { try { int length = readLength(socket, mLengthBuffer2); processIncomingJdwpData(device, socket, length); } catch (IOException ioe) { Log.d("DeviceMonitor", "Error reading jdwp list: " + ioe.getMessage()); socket.close(); // restart the monitoring of that device synchronized (mDevices) { if (mDevices.contains(device)) { Log.d("DeviceMonitor", "Restarting monitoring service for " + device); startMonitoringDevice(device); } } } } } } } } catch (IOException e) { if (mQuit == false) { } } } while (mQuit == false); }
33,777
0
// we use the highlighted text to put the table caption
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
NONSATD
true
Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName());
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(),
33,777
1
// outcome values
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
NONSATD
true
Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(),
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(),
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(),
33,777
2
// timepoints
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
NONSATD
true
AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(),
// we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(),
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
33,777
3
// timepoint units
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
NONSATD
true
AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(),
AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(),
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
33,777
4
// sample size
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
NONSATD
true
AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(),
AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
33,777
5
// TODO: anything else?
private List<AnnotatedAttributeValuePair> getAttributeValuePairs(JsonOutcome outcome, JsonReference reference) { Optional<String> docNameTrue = getFirstDocname(reference); String docName = docNameTrue.orElse(outcome.getShortTitle()); // we use the highlighted text to put the table caption String highlightedText = outcome.getOutcomeDescription(); Arm arm1 = getAssignedArm(outcome.getItemArmIdGrp1(), outcome.getGrp1ArmName()); Arm arm2 = getAssignedArm(outcome.getItemArmIdGrp2(), outcome.getGrp2ArmName()); // outcome values Attribute ovAttribute = attributes.getFromName("Outcome value"); AnnotatedAttributeValuePair ov1 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData3(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
DESIGN
true
AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
AnnotatedAttributeValuePair ov2 = new AnnotatedAttributeValuePair(ovAttribute, outcome.getData4(), docName, arm2, "", highlightedText, "", 0); // timepoints Attribute timepointAttribute = attributes.getFromName("Longest follow up"); AnnotatedAttributeValuePair tp1 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tp2 = new AnnotatedAttributeValuePair(timepointAttribute, outcome.getTimepointString(), docName, arm2, "", highlightedText, "", 0); // timepoint units Attribute timepointUnitAttribute = attributes.getFromName("Longest follow up (metric)"); AnnotatedAttributeValuePair tpUnit1 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair tpUnit2 = new AnnotatedAttributeValuePair(timepointUnitAttribute, outcome.getItemTimepointMetric(), docName, arm2, "", highlightedText, "", 0); // sample size Attribute samplesizeAttribute = attributes.getFromName("Individual-level analysed"); AnnotatedAttributeValuePair ss1 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData1(), docName, arm1, "", highlightedText, "", 0); AnnotatedAttributeValuePair ss2 = new AnnotatedAttributeValuePair(samplesizeAttribute, outcome.getData2(), docName, arm2, "", highlightedText, "", 0); // TODO: anything else? return Lists.newArrayList(ov1, ov2, tp1, tp2, tpUnit1, tpUnit2, ss1, ss2); }
1,011
0
// TODO(dreiss): Maybe make this an option?
@Override protected ImmutableList<String> getShellCommandInternal(ExecutionContext context) { ImmutableList.Builder<String> builder = ImmutableList.builder(); builder.addAll(commandPrefix); builder.add("compile"); builder.add("--legacy"); // TODO(dreiss): Maybe make this an option? builder.add("-o"); builder.add(outputPath.toString()); builder.add("--dir"); builder.add(resDirPath.toString()); return builder.build(); }
DESIGN
true
builder.addAll(commandPrefix); builder.add("compile"); builder.add("--legacy"); // TODO(dreiss): Maybe make this an option? builder.add("-o"); builder.add(outputPath.toString());
@Override protected ImmutableList<String> getShellCommandInternal(ExecutionContext context) { ImmutableList.Builder<String> builder = ImmutableList.builder(); builder.addAll(commandPrefix); builder.add("compile"); builder.add("--legacy"); // TODO(dreiss): Maybe make this an option? builder.add("-o"); builder.add(outputPath.toString()); builder.add("--dir"); builder.add(resDirPath.toString()); return builder.build(); }
@Override protected ImmutableList<String> getShellCommandInternal(ExecutionContext context) { ImmutableList.Builder<String> builder = ImmutableList.builder(); builder.addAll(commandPrefix); builder.add("compile"); builder.add("--legacy"); // TODO(dreiss): Maybe make this an option? builder.add("-o"); builder.add(outputPath.toString()); builder.add("--dir"); builder.add(resDirPath.toString()); return builder.build(); }
1,017
0
/** * utility function to convert text string into canonical-format word array * * @param text -- text string including punctuation */
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
NONSATD
true
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
1,017
1
// TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words.
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
DESIGN
true
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
public static String[] textToWords(String text) { // TODO: strip word-final or -initial apostrophes as in James' or 'cause. // Currently assuming hyphenated expressions split into two Asr words. return text.replace('-', ' ').replaceAll("['.!?,:;\"\\(\\)]", " ").toUpperCase(Locale.US).trim().split("\\s+"); }
17,401
0
// TODO[BEAM-9179] Add conversion code for ARRAY and ROW types
public static SqlTypeName zetaSqlTypeToCalciteType(TypeKind zetaSqlType) { switch (zetaSqlType) { case TYPE_INT64: return SqlTypeName.BIGINT; case TYPE_NUMERIC: return SqlTypeName.DECIMAL; case TYPE_DOUBLE: return SqlTypeName.DOUBLE; case TYPE_STRING: return SqlTypeName.VARCHAR; case TYPE_TIMESTAMP: return SqlTypeName.TIMESTAMP; case TYPE_BOOL: return SqlTypeName.BOOLEAN; case TYPE_BYTES: return SqlTypeName.VARBINARY; // TODO[BEAM-9179] Add conversion code for ARRAY and ROW types default: throw new IllegalArgumentException("Unsupported ZetaSQL type: " + zetaSqlType.name()); } }
IMPLEMENTATION
true
case TYPE_BYTES: return SqlTypeName.VARBINARY; // TODO[BEAM-9179] Add conversion code for ARRAY and ROW types default: throw new IllegalArgumentException("Unsupported ZetaSQL type: " + zetaSqlType.name());
case TYPE_DOUBLE: return SqlTypeName.DOUBLE; case TYPE_STRING: return SqlTypeName.VARCHAR; case TYPE_TIMESTAMP: return SqlTypeName.TIMESTAMP; case TYPE_BOOL: return SqlTypeName.BOOLEAN; case TYPE_BYTES: return SqlTypeName.VARBINARY; // TODO[BEAM-9179] Add conversion code for ARRAY and ROW types default: throw new IllegalArgumentException("Unsupported ZetaSQL type: " + zetaSqlType.name()); } }
public static SqlTypeName zetaSqlTypeToCalciteType(TypeKind zetaSqlType) { switch (zetaSqlType) { case TYPE_INT64: return SqlTypeName.BIGINT; case TYPE_NUMERIC: return SqlTypeName.DECIMAL; case TYPE_DOUBLE: return SqlTypeName.DOUBLE; case TYPE_STRING: return SqlTypeName.VARCHAR; case TYPE_TIMESTAMP: return SqlTypeName.TIMESTAMP; case TYPE_BOOL: return SqlTypeName.BOOLEAN; case TYPE_BYTES: return SqlTypeName.VARBINARY; // TODO[BEAM-9179] Add conversion code for ARRAY and ROW types default: throw new IllegalArgumentException("Unsupported ZetaSQL type: " + zetaSqlType.name()); } }
9,218
0
// TODO: the refactor
@Override public void visitElement(PsiElement element) { if (this.context.skip(element)) { return; } // TODO: the refactor this.holder.registerProblem(element, this.context.getMessage()); }
DESIGN
true
return; } // TODO: the refactor this.holder.registerProblem(element, this.context.getMessage()); }
@Override public void visitElement(PsiElement element) { if (this.context.skip(element)) { return; } // TODO: the refactor this.holder.registerProblem(element, this.context.getMessage()); }
@Override public void visitElement(PsiElement element) { if (this.context.skip(element)) { return; } // TODO: the refactor this.holder.registerProblem(element, this.context.getMessage()); }
9,220
0
// TODO: do these need to be hooked up for saving as well? currently they just load
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
DESIGN
true
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
private static ConfigurationOptions defaultOptions() { return ConfigurationOptions.defaults() .serializers(SpongeCommon.game().configManager().serializers()); }
33,797
0
// TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS
@POST @Path("/services") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_SERVICE + "\")") public RangerService createService(RangerService service) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.createService(" + service + ")"); } RangerService ret = null; RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.createService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.CREATE); UserSessionBase session = ContextUtil.getCurrentUserSession(); XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); if(session != null && !session.isSpnegoEnabled()){ bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); } if(session != null && session.isSpnegoEnabled()){ if (session.isKeyAdmin() && !xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("KeyAdmin can create/update/delete only KMS ", MessageEnums.OPER_NO_PERMISSION); } if ((!session.isKeyAdmin() && !session.isUserAdmin()) && xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("User cannot create/update/delete KMS Service", MessageEnums.OPER_NO_PERMISSION); } } ret = svcStore.createService(service); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("createService(" + service + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf); } if(LOG.isDebugEnabled()) { LOG.debug("<== ServiceREST.createService(" + service + "): " + ret); } return ret; }
DESIGN
true
if(session != null && !session.isSpnegoEnabled()){ bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); }
try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.createService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.CREATE); UserSessionBase session = ContextUtil.getCurrentUserSession(); XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); if(session != null && !session.isSpnegoEnabled()){ bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); } if(session != null && session.isSpnegoEnabled()){ if (session.isKeyAdmin() && !xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("KeyAdmin can create/update/delete only KMS ", MessageEnums.OPER_NO_PERMISSION); } if ((!session.isKeyAdmin() && !session.isUserAdmin()) && xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("User cannot create/update/delete KMS Service", MessageEnums.OPER_NO_PERMISSION);
@POST @Path("/services") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.CREATE_SERVICE + "\")") public RangerService createService(RangerService service) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.createService(" + service + ")"); } RangerService ret = null; RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.createService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.CREATE); UserSessionBase session = ContextUtil.getCurrentUserSession(); XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); if(session != null && !session.isSpnegoEnabled()){ bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); } if(session != null && session.isSpnegoEnabled()){ if (session.isKeyAdmin() && !xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("KeyAdmin can create/update/delete only KMS ", MessageEnums.OPER_NO_PERMISSION); } if ((!session.isKeyAdmin() && !session.isUserAdmin()) && xxServiceDef.getImplclassname().equals(EmbeddedServiceDefsUtil.KMS_IMPL_CLASS_NAME)) { throw restErrorUtil.createRESTException("User cannot create/update/delete KMS Service", MessageEnums.OPER_NO_PERMISSION); } } ret = svcStore.createService(service); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("createService(" + service + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf);
25,606
0
//TODO use .equals() once we ahve overridden appropriate methods
@Test public void testRetrieveUserByName() { em.getTransaction().begin(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (1, 'BOOM1', '1988-09-15', 'TEST USER1');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (2, 'BOOM2', '1988-09-15', 'TEST USER2');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (3, 'BOOM3', '1988-09-15', 'TEST USER3');").executeUpdate(); em.getTransaction().commit(); List<User> users = null; try { //TODO use .equals() once we ahve overridden appropriate methods users = dao.getUsers(); } catch (Throwable th){ fail(th.getMessage()); } Calendar cal = Calendar.getInstance(); cal.set(1988, Calendar.SEPTEMBER, 15, 0, 0, 0); assertEquals(3, users.size()); for (int i = 0; i < 3; i++) { assertEquals("BOOM" + users.get(i).getId(), users.get(i).getName()); assertEquals("TEST USER" + users.get(i).getId(), users.get(i).getDescription()); assertEquals(cal.getTime().toString(), users.get(i).getDate().toString()); } }
IMPLEMENTATION
true
List<User> users = null; try { //TODO use .equals() once we ahve overridden appropriate methods users = dao.getUsers(); } catch (Throwable th){
em.getTransaction().begin(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (1, 'BOOM1', '1988-09-15', 'TEST USER1');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (2, 'BOOM2', '1988-09-15', 'TEST USER2');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (3, 'BOOM3', '1988-09-15', 'TEST USER3');").executeUpdate(); em.getTransaction().commit(); List<User> users = null; try { //TODO use .equals() once we ahve overridden appropriate methods users = dao.getUsers(); } catch (Throwable th){ fail(th.getMessage()); } Calendar cal = Calendar.getInstance(); cal.set(1988, Calendar.SEPTEMBER, 15, 0, 0, 0); assertEquals(3, users.size()); for (int i = 0; i < 3; i++) { assertEquals("BOOM" + users.get(i).getId(), users.get(i).getName()); assertEquals("TEST USER" + users.get(i).getId(), users.get(i).getDescription());
@Test public void testRetrieveUserByName() { em.getTransaction().begin(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (1, 'BOOM1', '1988-09-15', 'TEST USER1');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (2, 'BOOM2', '1988-09-15', 'TEST USER2');").executeUpdate(); em.createNativeQuery("INSERT INTO t_users( user_id, name, date_added, description)" + " VALUES (3, 'BOOM3', '1988-09-15', 'TEST USER3');").executeUpdate(); em.getTransaction().commit(); List<User> users = null; try { //TODO use .equals() once we ahve overridden appropriate methods users = dao.getUsers(); } catch (Throwable th){ fail(th.getMessage()); } Calendar cal = Calendar.getInstance(); cal.set(1988, Calendar.SEPTEMBER, 15, 0, 0, 0); assertEquals(3, users.size()); for (int i = 0; i < 3; i++) { assertEquals("BOOM" + users.get(i).getId(), users.get(i).getName()); assertEquals("TEST USER" + users.get(i).getId(), users.get(i).getDescription()); assertEquals(cal.getTime().toString(), users.get(i).getDate().toString()); } }
33,798
0
// TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS
@PUT @Path("/services/{id}") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_SERVICE + "\")") public RangerService updateService(RangerService service) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.updateService(): " + service); } RangerService ret = null; RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.updateService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.UPDATE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); ret = svcStore.updateService(service); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("updateService(" + service + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf); } if(LOG.isDebugEnabled()) { LOG.debug("<== ServiceREST.updateService(" + service + "): " + ret); } return ret; }
DESIGN
true
validator.validate(service, Action.UPDATE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname());
} RangerService ret = null; RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.updateService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.UPDATE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); ret = svcStore.updateService(service); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("updateService(" + service + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf);
@PUT @Path("/services/{id}") @Produces({ "application/json", "application/xml" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.UPDATE_SERVICE + "\")") public RangerService updateService(RangerService service) { if(LOG.isDebugEnabled()) { LOG.debug("==> ServiceREST.updateService(): " + service); } RangerService ret = null; RangerPerfTracer perf = null; try { if(RangerPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = RangerPerfTracer.getPerfTracer(PERF_LOG, "ServiceREST.updateService(serviceName=" + service.getName() + ")"); } RangerServiceValidator validator = validatorFactory.getServiceValidator(svcStore); validator.validate(service, Action.UPDATE); bizUtil.hasAdminPermissions("Services"); // TODO: As of now we are allowing SYS_ADMIN to create all the // services including KMS XXServiceDef xxServiceDef = daoManager.getXXServiceDef().findByName(service.getType()); bizUtil.hasKMSPermissions("Service", xxServiceDef.getImplclassname()); ret = svcStore.updateService(service); } catch(WebApplicationException excp) { throw excp; } catch(Throwable excp) { LOG.error("updateService(" + service + ") failed", excp); throw restErrorUtil.createRESTException(excp.getMessage()); } finally { RangerPerfTracer.log(perf); } if(LOG.isDebugEnabled()) { LOG.debug("<== ServiceREST.updateService(" + service + "): " + ret); } return ret; }
1,032
0
// normal attack
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35;
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break;
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100;
1,032
1
// Power Strike
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0;
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false;
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35;
1,032
2
// Slash Blast
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0;
multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8);
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
1,032
3
// Energy Bolt
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk();
multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true;
luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false;
1,032
4
// Magic Claw
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break;
isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
1,032
5
// Arrow Blow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
6
// Double Shot
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true;
1,032
7
// Double Stab
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi);
mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8);
1,032
8
// Lucky Seven
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow
magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
1,032
9
// Fire Arrow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35;
1,032
10
// Poison Brace
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35;
1,032
11
// Cold Beam
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35;
1,032
12
// Holy Arrow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
13
// Drain
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
14
// Savage Blow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
15
// Panic: Axe
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
16
// Panic: Sword
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
17
// Dragon Fury: Pole Arm
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
18
// Dragon Fury: Spear
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
19
// Pole Arm Crusher
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
1,032
20
// Sacrifice
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35;
1,032
21
// Spear Crusher
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8);
isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
1,032
22
// Ice Strike
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true;
isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35;
1,032
23
// Thunder Spear
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true;
isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0);
1,032
24
// Strafe
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
25
// Strafe
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
26
// Avenger
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006);
1,032
27
// Assaulter
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35;
magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009);
1,032
28
// Brandish
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
29
// Rush
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
30
// Blast
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
1,032
31
// Rush
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
32
// Rush
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
33
// Fire Demon
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35;
1,032
34
// Chain Lightning
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35;
1,032
35
// Ice Demon
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35;
1,032
36
// Angel's Ray
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
37
// Dragon Pulse
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
38
// Hurricane
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3);
1,032
39
// Dragon Pulse
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
40
// Piercing
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35;
magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw
1,032
41
// Sniping
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step
1,032
42
// Showdown taunt
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
43
// Triple Throw
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005);
1,032
44
// Boomerang Step
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250;
1,032
45
// Showdown taunt
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false;
case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
46
//aoe
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true;
isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005);
1,032
47
// Thunderbolt
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true;
break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
48
// Arrow Bomb : Bow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true;
break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
49
// Iron Arrow : Crossbow
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true;
break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
50
// Coma: Axe
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
1,032
51
// Coma: Sword
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true;
magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002);
1,032
52
// Charged Blow - skill doesn't work
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450;
isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350;
1,032
53
// Dragon Roar
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100;
isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003);
1,032
54
// Explosion
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true;
break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350;
1,032
55
// Poison Mist
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true;
break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350;
1,032
56
// Shining Ray
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003);
1,032
57
// Arrow Rain
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break;
1,032
58
// Inferno
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350;
break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break;
1,032
59
// Arrow Eruption
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350;
pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know
1,032
60
// Blizzard (Sniper)
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350;
skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang
1,032
61
// Band of Thieves Skill doesn't work so i don't know
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
DEFECT
true
isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350;
skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175;
1,032
62
// Sanctuary Skill doesn't work so i don't know
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100;
case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007);
1,032
63
// Big Bang
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true;
case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600;
1,032
64
// Meteo
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true;
break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250;
1,032
65
// Paralyze
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175;
1,032
66
// Big Bang
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true;
case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600;
1,032
67
// Blizzard
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0);
maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350;
skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang
1,032
68
// Genesis
public static void pvpDamageBalance(AbstractDealDamageHandler.AttackInfo attack, MapleCharacter player) { matk = player.getTotalMagic(); luk = player.getTotalLuk(); watk = player.getTotalWatk(); switch (attack.skill) { case 0: // normal attack multi = 1; maxHeight = 35; isAoe = false; break; case 1001004: // Power Strike skil = SkillFactory.getSkill(1001004); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 1001005: // Slash Blast skil = SkillFactory.getSkill(1001005); multi = skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0; maxHeight = 35; isAoe = false; break; case 2001004: // Energy Bolt skil = SkillFactory.getSkill(2001004); multi = skil.getEffect(player.getSkillLevel(skil)).getMatk(); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 200; maxHeight = 35; isAoe = false; magic = true; break; case 2001005: // Magic Claw skil = SkillFactory.getSkill(2001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; magic = true; break; case 3001004: // Arrow Blow skil = SkillFactory.getSkill(3001004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3001005: // Double Shot skil = SkillFactory.getSkill(3001005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001334: // Double Stab skil = SkillFactory.getSkill(4001334); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4001344: // Lucky Seven skil = SkillFactory.getSkill(4001344); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * luk / 100 * watk * multi); min = (int) (2.5 * luk / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 2101004: // Fire Arrow skil = SkillFactory.getSkill(4101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2101005: // Poison Brace skil = SkillFactory.getSkill(2101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2201004: // Cold Beam skil = SkillFactory.getSkill(2201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 2301005: // Holy Arrow skil = SkillFactory.getSkill(2301005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 4101005: // Drain skil = SkillFactory.getSkill(4101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4201005: // Savage Blow skil = SkillFactory.getSkill(4201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111004: // Panic: Axe skil = SkillFactory.getSkill(1111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1111003: // Panic: Sword skil = SkillFactory.getSkill(1111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311004: // Dragon Fury: Pole Arm skil = SkillFactory.getSkill(1311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311003: // Dragon Fury: Spear skil = SkillFactory.getSkill(1311003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311002: // Pole Arm Crusher skil = SkillFactory.getSkill(1311002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311005: // Sacrifice skil = SkillFactory.getSkill(1311005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1311001: // Spear Crusher skil = SkillFactory.getSkill(1311001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2211002: // Ice Strike skil = SkillFactory.getSkill(2211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 35; isAoe = false; magic = true; break; case 2211003: // Thunder Spear skil = SkillFactory.getSkill(2211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 300; maxHeight = 35; isAoe = false; magic = true; break; case 3111006: // Strafe skil = SkillFactory.getSkill(3111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 3211006: // Strafe skil = SkillFactory.getSkill(3211006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 1000.0); maxHeight = 35; isAoe = false; break; case 4111005: // Avenger skil = SkillFactory.getSkill(4111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4211002: // Assaulter skil = SkillFactory.getSkill(4211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 200; maxHeight = 35; isAoe = false; break; case 1121008: // Brandish skil = SkillFactory.getSkill(1121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1121006: // Rush skil = SkillFactory.getSkill(1121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221009: // Blast skil = SkillFactory.getSkill(1221009); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1221007: // Rush skil = SkillFactory.getSkill(1221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 1321003: // Rush skil = SkillFactory.getSkill(1321003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 2121003: // Fire Demon skil = SkillFactory.getSkill(2121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221006: // Chain Lightning skil = SkillFactory.getSkill(2221006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2221003: // Ice Demon skil = SkillFactory.getSkill(2221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 2321007: // Angel's Ray skil = SkillFactory.getSkill(2321007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 400; maxHeight = 35; isAoe = false; magic = true; break; case 3121003: // Dragon Pulse skil = SkillFactory.getSkill(3121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3121004: // Hurricane skil = SkillFactory.getSkill(3121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221003: // Dragon Pulse skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221001: // Piercing skil = SkillFactory.getSkill(3221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 3221007: // Sniping pvpDamage = (int) (player.calculateMaxBaseDamage(watk) * 3); min = (int) (player.calculateMinBaseDamage(player) * 3); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 4121003: // Showdown taunt skil = SkillFactory.getSkill(4121003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4121007: // Triple Throw skil = SkillFactory.getSkill(4121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221007: // Boomerang Step skil = SkillFactory.getSkill(4221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 4221003: // Showdown taunt skil = SkillFactory.getSkill(4221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; //aoe case 2201005: // Thunderbolt skil = SkillFactory.getSkill(2201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 3101005: // Arrow Bomb : Bow skil = SkillFactory.getSkill(3101005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 3201005: // Iron Arrow : Crossbow skil = SkillFactory.getSkill(3201005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 1111006: // Coma: Axe skil = SkillFactory.getSkill(1111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1111005: // Coma: Sword skil = SkillFactory.getSkill(1111005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1211002: // Charged Blow - skill doesn't work skil = SkillFactory.getSkill(1211002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 250; isAoe = true; break; case 1311006: // Dragon Roar skil = SkillFactory.getSkill(1311006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 600; maxHeight = 450; isAoe = true; break; case 2111002: // Explosion skil = SkillFactory.getSkill(2111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2111003: // Poison Mist skil = SkillFactory.getSkill(2111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 2311004: // Shining Ray skil = SkillFactory.getSkill(2311004); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 350; maxHeight = 350; isAoe = true; magic = true; break; case 3111004: // Arrow Rain skil = SkillFactory.getSkill(3111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3111003: // Inferno skil = SkillFactory.getSkill(3111003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211004: // Arrow Eruption skil = SkillFactory.getSkill(3211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 3211003: // Blizzard (Sniper) skil = SkillFactory.getSkill(3211003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 4211004: // Band of Thieves Skill doesn't work so i don't know skil = SkillFactory.getSkill(4211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 350; isAoe = true; break; case 1221011: // Sanctuary Skill doesn't work so i don't know skil = SkillFactory.getSkill(1221011); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxDis = 350; maxHeight = 350; isAoe = true; break; case 2121001: // Big Bang skil = SkillFactory.getSkill(2121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2121007: // Meteo skil = SkillFactory.getSkill(2121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2121006: // Paralyze skil = SkillFactory.getSkill(2121006); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 250; maxHeight = 250; isAoe = true; magic = true; break; case 2221001: // Big Bang skil = SkillFactory.getSkill(2221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 4121004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 300; isAoe = true; ignore = true; break; case 4121008: // Ninja Storm knockback skil = SkillFactory.getSkill(4121008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) Math.floor(Math.random() * (player.calculateMaxBaseDamage(watk) * multi)); maxDis = 150; maxHeight = 35; isAoe = true; ignore = true; break; case 4221001: // Assassinate skil = SkillFactory.getSkill(4221001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 4221004: // Ninja Ambush pvpDamage = (int) Math.floor(Math.random() * (180 - 150) + 150); maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; case 9001001: // SUPER dragon ROAR pvpDamage = MAX_PVP_DAMAGE; maxDis = 150; maxHeight = 150; isAoe = true; ignore = true; break; /** *@author Supiangel * */ case 5001001: // First Strike skil = SkillFactory.getSkill(5001001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001002: // Back-flip kick skil = SkillFactory.getSkill(5001002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101002: // Backward Blow skil = SkillFactory.getSkill(5101002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101003: // Uppercut skil = SkillFactory.getSkill(5101003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5101004: // Spinning Punch skil = SkillFactory.getSkill(5101004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111002: // Final Punch skil = SkillFactory.getSkill(5111002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111004: // Absorb skil = SkillFactory.getSkill(5111004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5111006: // Smash skil = SkillFactory.getSkill(5111006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5001003: // Double Shot skil = SkillFactory.getSkill(5001003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); pvpDamage = (int) (5 * player.getStr() / 100 * watk * multi); min = (int) (2.5 * player.getStr() / 100 * watk * multi); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxHeight = 35; isAoe = false; ignore = true; break; case 5201001: // Fatal Bullet skil = SkillFactory.getSkill(5201001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201004: // Decoy skil = SkillFactory.getSkill(5201004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5201006: // Withdraw skil = SkillFactory.getSkill(5201006); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5210000: // Triple Shot skil = SkillFactory.getSkill(5210000); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5211004: // Fire Shot skil = SkillFactory.getSkill(5211004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5211005: // Ice Shot skil = SkillFactory.getSkill(5211005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121001: // Dragon Strike skil = SkillFactory.getSkill(5121001); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = true; break; case 5121007: // Fist skil = SkillFactory.getSkill(5121007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121002: // Energy Orb skil = SkillFactory.getSkill(5121002); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5121004: // Demolition skil = SkillFactory.getSkill(5121004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5121005: // Snatch skil = SkillFactory.getSkill(5121005); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221004: // Rapid Fire skil = SkillFactory.getSkill(5221004); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221003: // Air Strike skil = SkillFactory.getSkill(5221003); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; break; case 5221007: // Battleship Cannon skil = SkillFactory.getSkill(5221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; case 5221008: // Battleship Torpedo skil = SkillFactory.getSkill(5221008); multi = (skil.getEffect(player.getSkillLevel(skil)).getDamage() / 100.0); maxHeight = 35; isAoe = false; ignore = true; break; default: break; } if (!magic || !ignore) { maxDis = player.getMaxDis(player); } }
NONSATD
true
magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk());
multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true;
pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175; isAoe = true; magic = true; break; case 2221007: // Blizzard skil = SkillFactory.getSkill(2221007); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321008: // Genesis skil = SkillFactory.getSkill(2321008); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 600; maxHeight = 600; isAoe = true; magic = true; break; case 2321001: // bishop Big Bang skil = SkillFactory.getSkill(2321001); multi = (skil.getEffect(player.getSkillLevel(skil)).getMatk()); mastery = skil.getEffect(player.getSkillLevel(skil)).getMastery() * 5 + 10 / 100; pvpDamage = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8); min = (int) ((matk * 0.8) + (luk / 4) / 18 * multi * 0.8 * mastery); pvpDamage = MapleCharacter.rand(min, pvpDamage); maxDis = 175; maxHeight = 175;