Examples of HitTask


Examples of l2p.gameserver.model.L2ObjectTasks.HitTask

    }
    else if(target.isPlayer() && !target.isInvul())
    {
      target.sendPacket(new SystemMessage(SystemMessage.C1_HAS_EVADED_C2S_ATTACK).addName(target).addName(this));
    }
    ThreadPoolManager.getInstance().scheduleAi(new HitTask(this, target, damage1, crit1, miss1, attack._soulshot, shld1, unchargeSS, notify), sAtk, isPlayable());
    attack.addHit(target, damage1, miss1, crit1, shld1);
  }
View Full Code Here

Examples of l2p.gameserver.model.L2ObjectTasks.HitTask

      shld1 = info.shld;
      crit1 = info.crit;
      int range = activeWeapon.getAttackRange();
      damage1 *= Math.min(range, getDistance(target)) / range * .4 + 0.8; // разброс 20% в обе стороны
    }
    ThreadPoolManager.getInstance().scheduleAi(new HitTask(this, target, damage1, crit1, miss1, attack._soulshot, shld1, true, true), sAtk, isPlayable());
    attack.addHit(target, damage1, miss1, crit1, shld1);
  }
View Full Code Here

Examples of l2p.gameserver.model.L2ObjectTasks.HitTask

      damage2 = (int) info.damage;
      shld2 = info.shld;
      crit2 = info.crit;
    }
    // Create a new hit task with Medium priority for hit 1 and for hit 2 with a higher delay
    ThreadPoolManager.getInstance().scheduleAi(new HitTask(this, target, damage1, crit1, miss1, attack._soulshot, shld1, true, false), sAtk / 2, isPlayable());
    ThreadPoolManager.getInstance().scheduleAi(new HitTask(this, target, damage2, crit2, miss2, attack._soulshot, shld2, false, true), sAtk, isPlayable());
    attack.addHit(target, damage1, miss1, crit1, shld1);
    attack.addHit(target, damage2, miss2, crit2, shld2);
  }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.HitTask

      damage1 = (int) (info.damage * multiplier);
      reflectableDamage1 = (int) (info.reflectableDamage * multiplier);
      shld1 = info.shld;
      crit1 = info.crit;
    }
    ThreadPoolManager.getInstance().schedule(new HitTask(this, target, damage1, reflectableDamage1, crit1, miss1, attack._soulshot, shld1, unchargeSS, notify), sAtk);
    attack.addHit(target, damage1, miss1, crit1, shld1);
  }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.HitTask

      shld1 = info.shld;
      crit1 = info.crit;
      int range = activeWeapon.getAttackRange();
      damage1 *= ((Math.min(range, getDistance(target)) / range) * .4) + 0.8;
    }
    ThreadPoolManager.getInstance().schedule(new HitTask(this, target, damage1, damage2, crit1, miss1, attack._soulshot, shld1, true, true), sAtk);
    attack.addHit(target, damage2, miss1, crit1, shld1);
  }
View Full Code Here

Examples of lineage2.gameserver.model.GameObjectTasks.HitTask

      damage2 = (int) info.damage;
      reflectableDamage2 = (int) info.reflectableDamage;
      shld2 = info.shld;
      crit2 = info.crit;
    }
    ThreadPoolManager.getInstance().schedule(new HitTask(this, target, damage1, reflectableDamage1, crit1, miss1, attack._soulshot, shld1, true, false), sAtk / 2);
    ThreadPoolManager.getInstance().schedule(new HitTask(this, target, damage2, reflectableDamage2, crit2, miss2, attack._soulshot, shld2, false, true), sAtk);
    attack.addHit(target, damage1, miss1, crit1, shld1);
    attack.addHit(target, damage2, miss2, crit2, shld2);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.