private void checkEntryConditions(Player player, int dialogId, int questId) {
   if (dialogId == 10000) {
     if (player.getInventory().decreaseByItemId(186000246, 1)) {
       switch (player.getRace()) {
         case ASMODIANS:
           SkillEngine.getInstance().applyEffectDirectly(21139, player, player, 160000 * 3);
           break;
         case ELYOS:
           SkillEngine.getInstance().applyEffectDirectly(21138, player, player, 160000 * 3);
           break;
       }
       PacketSendUtility.sendBrightYellowMessageOnCenter(
           player, MuiService.getInstance().getMessage("DEFENCE_BASTION"));
       stopMove(player);
       AI2Actions.deleteOwner(this);
     } else {
       PacketSendUtility.sendBrightYellowMessageOnCenter(
           player, MuiService.getInstance().getMessage("DEFENCE_BASTION_NO"));
       PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), 0, 0));
     }
   } else {
     PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), dialogId, questId));
   }
 }
  @Override
  protected void handleSpawned() {
    super.handleSpawned();
    if (getNpcId() == 282744) {
      startSpawnTask();
    } else {
      SkillEngine.getInstance().getSkill(getOwner(), 20213, 60, getOwner()).useNoAnimationSkill();
      task =
          ThreadPoolManager.getInstance()
              .schedule(
                  new Runnable() {

                    @Override
                    public void run() {
                      if (!isAlreadyDead()) {
                        AI2Actions.deleteOwner(GoldenTatarParalysisEyeAI2.this);
                      }
                    }
                  },
                  2000);
    }
  }
 private void InvisibleDaggerBless(int skillId) {
   SkillEngine.getInstance().getSkill(getOwner(), skillId, 60, getOwner()).useNoAnimationSkill();
 }
 private void skill2() {
   VisibleObject target = getTarget();
   if (target != null && target instanceof Player) {
     SkillEngine.getInstance().getSkill(getOwner(), 21171, 65, target).useNoAnimationSkill();
   }
 }