Examples of playSound()


Examples of lineage2.gameserver.model.quest.QuestState.playSound()

    if (count < maxcount)
    {
      qs.giveItems(item, 1);
      if (count == (maxcount - 1))
      {
        qs.playSound(SOUND_MIDDLE);
      }
      else
      {
        qs.playSound(SOUND_ITEMGET);
      }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.playSound()

      {
        qs.playSound(SOUND_MIDDLE);
      }
      else
      {
        qs.playSound(SOUND_ITEMGET);
      }
    }
  }
 
  public String exit503(boolean completed, QuestState st)
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.playSound()

    }
    int npcId = npc.getNpcId();
    int cond = st.getCond();
    if ((npcId == STONES) && (cond == 17))
    {
      st.playSound(SOUND_MIDDLE);
      st.takeItems(DETECTOR, 1);
      st.giveItems(DETECTOR2, 1);
      st.setCond(18);
      player.sendPacket(new ExShowScreenMessage(NpcString.THE_RADIO_SIGNAL_DETECTOR_IS_RESPONDING_A_SUSPICIOUS_PILE_OF_STONES_CATCHES_YOUR_EYE, 4500, ScreenMessageAlign.TOP_CENTER));
    }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.playSound()

    int cond = st.getCond();

    if(cond == 3 && npcId == Lania && action == RequestActionUse.Action.ACTION26)
    {
      st.setCond(4);
      st.playSound("ItemSound.quest_middle");
    }
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.playSound()

            QuestState pst = pmember.getQuestState("_181_DevilsStrikeBackAdventOfBalok");
            if ((pst != null) && (pst.getCond() == 1))
            {
              pst.setCond(2);
              pst.giveItems(CON3, 1);
              pst.playSound(SOUND_MIDDLE);
            }
          }
        }
      }
    }
View Full Code Here

Examples of lineage2.gameserver.model.quest.QuestState.playSound()

            if(qs != null && qs.isStarted())
            {
              if(st.getQuestItemsCount(Deadmans_Flesh) < 40)
              {
                qs.giveItems(Deadmans_Flesh, 1);
                qs.playSound(SOUND_ITEMGET);
                if(doneKill && st.getQuestItemsCount(Deadmans_Flesh) == 40)
                {
                  st.setCond(2);
                }
              }
View Full Code Here

Examples of net.minecraft.entity.EntityLiving.playSound()

        for (int i = 0; i < effectList.tagCount(); i++)
          slime.addPotionEffect(PotionEffect.readCustomPotionEffectFromNBT(
              effectList.getCompoundTagAt(i)));
     
      world.spawnEntityInWorld(slime);
      slime.playSound("mob.slime.big", 1.2F, 0.6F);
     
      player.setCurrentItemOrArmor(EquipmentSlot.HELD, new ItemStack(Items.bucket));
    }
   
    return true;
View Full Code Here

Examples of net.minecraft.entity.item.EntityItem.playSound()

            plant.motionY = -1.0F;
            plant.motionZ = rand.nextFloat() - 0.5F;
            plant.lifespan = 300;
            ItemPlasticPlants.markInactive(plant);
            world.spawnEntityInWorld(plant);
            plant.playSound("mob.newsound.chickenplop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);

            world.setBlockMetadataWithNotify(x, y, z, 4, 3);
        }
    }
}
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySlime.playSound()

                SS.motionX = randXmotion;
                SS.motionY = randYmotion;
                SS.motionZ = randZmotion;
                world.spawnEntityInWorld(SS);
                SS.spawnExplosionParticle();
                SS.playSound("mob.newsound.chickenplop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
                world.setBlockMetadataWithNotify(x, y, z, 13 - SS.getSlimeSize(), 3);
            }
        } else {
            world.setBlockMetadataWithNotify(x, y, z, 14, 2);
            world.scheduleBlockUpdate(x, y, z, this, 60);
View Full Code Here

Examples of net.minecraft.entity.passive.EntityChicken.playSound()

  {
    List<ItemStack> drops = new LinkedList<ItemStack>();
    EntityChicken chicken = ((EntityChicken)entity);
    if (chicken.timeUntilNextEgg < 300)
    {
      chicken.playSound("mob.chicken.plop", 1.0F, (chicken.rand.nextFloat() - chicken.rand.nextFloat()) * 0.2F + 1.0F);
      chicken.attackEntityFrom(DamageSource.generic, 0);
      chicken.setRevengeTarget(chicken); // panic
      chicken.timeUntilNextEgg = chicken.rand.nextInt(6000) + 6200;
      if (rand.nextInt(4) != 0)
      {
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.