Examples of playSound()


Examples of com.mojang.minecraft.level.Level.playSound()

        minecraft.networkManager.sendBlockChange(x, y, z, 0, minecraft.player.inventory.getSelected());
      }

      if(block.stepsound != Tile$SoundType.none)
      {
        level.playSound("step." + block.stepsound.name, (float)x, (float)y, (float)z, (block.stepsound.getVolume() + 1.0F) / 2.0F, block.stepsound.getPitch() * 0.8F);
      }

      block.spawnBreakParticles(level, x, y, z, minecraft.particleManager);
    }

View Full Code Here

Examples of eu.ha3.matmos.engine.core.interfaces.EventInterface.playSound()

      return;
   
    EventInterface event = this.knowledge.obtainProviders().getEvent().get("__SAMPLE");
    if (event != null)
    {
      event.playSound(1f, 1f);
    }
  }
 
  public String getName()
  {
View Full Code Here

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

    if(CURSED_DOLL_COUNT < 180 && Rnd.chance(CURSED_DOLL_Chance))
    {
      st.giveItems(CURSED_DOLL, 1);
      if(CURSED_DOLL_COUNT == 179)
      {
        st.playSound(SOUND_MIDDLE);
        st.set("cond", "2");
      }
      else
      {
        st.playSound(SOUND_ITEMGET);
View Full Code Here

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

        st.playSound(SOUND_MIDDLE);
        st.set("cond", "2");
      }
      else
      {
        st.playSound(SOUND_ITEMGET);
      }
    }
    return null;
  }
View Full Code Here

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

    }
    QuestState st = player.getQuestState(qs.getQuest().getName());
    if(contains(PLAIN_DINOSAURS, npcId) && st.getCond() == 1 && st.getState() == STARTED && Rnd.chance(75))
    {
      st.giveItems(BONES_OF_A_PLAINS_DINOSAUR, 1);
      st.playSound(SOUND_ITEMGET);
    }
    return null;
  }
}
View Full Code Here

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

              {
                QuestState qs = member.getQuestState(getClass());
                if(qs != null && qs.isStarted())
                {
                  qs.giveItems(DungeonLeaderMark, RewardMarksCount / party.getMemberCount());
                  qs.playSound(SOUND_ITEMGET);
                  qs.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
                }
              }
            }
            else
View Full Code Here

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

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

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

            QuestState pst = pmember.getQuestState("_180_InfernalFlamesBurningInCrystalPrison");
            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 (npcId == Helping && cond == 16) //Aden Castle
        {
          ItemFunctions.removeItem(st.getPlayer(), HelpingSeed, 1L, true);
          /*NpcInstance mob =*/ st.addSpawn(HelpingTree, 148216, 14856, -1393);
          st.giveItems(Ashes, 1);
          st.playSound("ItemSound.quest_middle");
          st.setCond(17);
        }
        break;
      case Trower:
        if ((st.getCond() == 10) && (npcId == FlameFlower&& !npc.isDead())
View Full Code Here

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

        break;
      case Trower:
        if ((st.getCond() == 10) && (npcId == FlameFlower&& !npc.isDead())
        {
          st.giveItems(EnergyOfFire, 1);
          st.playSound("ItemSound.quest_itemget");
          npc.doDie(player);
        }
        if ((st.getQuestItemsCount(EnergyOfFire) >= 5))
        {
          st.playSound(SOUND_MIDDLE);
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.