Package lineage2.gameserver.model.quest

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


            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

        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

        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

          st.playSound("ItemSound.quest_itemget");
          npc.doDie(player);
        }
        if ((st.getQuestItemsCount(EnergyOfFire) >= 5))
        {
          st.playSound(SOUND_MIDDLE);
          st.setCond(11);
        }
    }
  }
View Full Code Here

        }
      }
      else if ((st.getCond() == 4) || (st.getCond() == 5))
      {
        st.setCond(7);
        st.playSound(SOUND_MIDDLE);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-115029, 247884, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114921, 248281, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114559, 248661, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114148, 248416, -7872, 0), 0);
        if (!player.isMageClass() || (player.getTemplate().getRace() == Race.orc))
View Full Code Here

              {
                QuestState qs = member.getQuestState(getClass());
                if ((qs != null) && qs.isStarted())
                {
                  qs.giveItems(FragmentOfTheDungeonLeaderMark, 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

              {
                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

      return null;
    }
    if (Rnd.chance(_chance))
    {
      st.giveItems(Rnd.chance(Urn_Chance) ? Ancient_Ash_Urn : Ancient_Porcelain, 1);
      st.playSound(SOUND_ITEMGET);
    }
    return null;
  }
 
  @Override
View Full Code Here

        {
          QuestState pst = partyMember.getQuestState("_472_ChallengeSteamCorridor");
          if ((pst != null) && (pst.isStarted()))
          {
            pst.setCond(2);
            pst.playSound(SOUND_MIDDLE);
            partyMember.sendPacket(new ExQuestNpcLogList(st));
          }
        }
      }
      else
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.