Package lineage2.gameserver.model.quest

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


        {
          QuestState pst = partyMember.getQuestState("_473_InTheCoralGarden");
          if ((pst != null) && (pst.isStarted()))
          {
            pst.setCond(2);
            pst.playSound(SOUND_MIDDLE);
            partyMember.sendPacket(new ExQuestNpcLogList(st));
          }
        }
      }
      else
View Full Code Here


        {
          QuestState pst = partyMember.getQuestState("_471_BreakingThroughTheEmeraldSquare");
          if ((pst != null) && (pst.isStarted()))
          {
            pst.setCond(2);
            pst.playSound(SOUND_MIDDLE);
            partyMember.sendPacket(new ExQuestNpcLogList(st));
          }
        }
      }
      else
View Full Code Here

        {
          QuestState st = p.getQuestState(_10338_SeizeYourDestiny.class);
          if(st != null)
          {
            st.setCond(3);
            st.playSound(Quest.SOUND_MIDDLE);
          }
        }
        ((HarnakUndergroundRuins) r).successEndInstance();
      }
    }
View Full Code Here

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

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

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

    }
    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

    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

            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

            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

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.