Examples of giveItems()


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

        return "";
      }
      if(player.getClassId().isMage() && !player.getClassId().equalsOrChildOf(ClassId.orcMage))
      {
        qs.playTutorialVoice("tutorial_voice_027");
        qs.giveItems(SPIRITSHOT_NOVICE, 100);
      }
      else
      {
        qs.playTutorialVoice("tutorial_voice_026");
        qs.giveItems(SOULSHOT_NOVICE, 200);
View Full Code Here

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

        qs.giveItems(SPIRITSHOT_NOVICE, 100);
      }
      else
      {
        qs.playTutorialVoice("tutorial_voice_026");
        qs.giveItems(SOULSHOT_NOVICE, 200);
      }
      int SCROLL_RECOVERY = 8594;
      qs.giveItems(SCROLL_RECOVERY, 2);
      qs.exitCurrentQuest(false);
    }
View Full Code Here

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

      {
        qs.playTutorialVoice("tutorial_voice_026");
        qs.giveItems(SOULSHOT_NOVICE, 200);
      }
      int SCROLL_RECOVERY = 8594;
      qs.giveItems(SCROLL_RECOVERY, 2);
      qs.exitCurrentQuest(false);
    }
    return "";
  }
View Full Code Here

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

    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("The radio signal detector is responding. A suspicious pile of stones catches your eye.", 4500, ScreenMessageAlign.TOP_CENTER));
    }
    return "";
  }
View Full Code Here

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

          {
            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.giveItems()

          {
            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.giveItems()

      case HelpingS:
        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:
View Full Code Here

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

        }
        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))
        {
View Full Code Here

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

      {
        bookTaken = true;
        player.sendPacket(new ExShowScreenMessage(NpcString.WATCH_OUT_YOU_ARE_BEING_ATTACKED, 4500, ScreenMessageAlign.TOP_CENTER));
        htmltext = "2-2.htm";
        st.takeAllItems(book);
        st.giveItems(book, 1, false);
        st.setCond(2);
        st.startQuestTimer("attak", 5000);
        st.startQuestTimer("spawnas", 50);
      }
      else
View Full Code Here

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

              for (Player member : party.getPartyMembers())
              {
                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));
                }
              }
            }
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.