Examples of giveItems()


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

      L2NpcTemplate template = NpcTable.getTemplate(nextNpcId);
      L2TamedBeastInstance nextNpc = new L2TamedBeastInstance(IdFactory.getInstance().getNextId(), template, player, food == 0 ? SKILL_GOLDEN_SPICE : SKILL_CRYSTAL_SPICE, getLoc());
      QuestState st = player.getQuestState("_020_BringUpWithLove");
      if(st != null && Rnd.chance(5) && st.getQuestItemsCount(7185) == 0)
      {
        st.giveItems(7185, 1);
        st.set("cond", "2");
      }
      // also, perform a rare random chat
      int rand = Rnd.get(10);
      if(rand <= 4)
View Full Code Here

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

    }
    QuestState st = player.getQuestState(qs.getQuest().getName());
    long CURSED_DOLL_COUNT = st.getQuestItemsCount(CURSED_DOLL);
    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");
      }
View Full Code Here

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

          for(L2Player member : player.getParty().getPartyMembers())
          {
            QuestState qsp = member.getQuestState(this._name);
            if(qsp != null && qsp.getCond() == 2)
            {
              qsp.giveItems(13776 + inst.rewardType, 1);
              qsp.exitCurrentQuest(true);
            }
          }
          player.getReflection().startCollapseTimer(60 * 1000);
          mSoI.breakThroughTheHallOfSuffering.remove(refId);
 
View Full Code Here

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

      return null;
    }
    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.giveItems()

              for(L2Player member : party.getPartyMembers())
              {
                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));
                }
              }
            }
View Full Code Here

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

              for(L2Player 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

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

            st1.set("kills", str(st1.getInt("kills") + 1));
          }
          else
          {
            st1.playSound(SOUND_MIDDLE);
            st1.giveItems(((SagasSuperclass) st1.getQuest()).Items[5], 1);
            st1.set("cond", "7");
          }
        }
      }
    }
View Full Code Here

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

          for(L2Player member : player.getParty().getPartyMembers())
          {
            QuestState qsp = member.getQuestState(this._name);
            if(qsp != null && qsp.getCond() == 2)
            {
              qsp.giveItems(13776 + inst.rewardType, 1);
              qsp.exitCurrentQuest(true);
            }
          }
          player.getReflection().startCollapseTimer(60 * 1000);
          mSoI.defendTheHallofSuffering.remove(refId);
 
View Full Code Here

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

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

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

      return;
    }
    long count = qs.getQuestItemsCount(item);
    if(count < maxcount)
    {
      qs.giveItems(item, 1);
      if(count == maxcount - 1)
      {
        qs.playSound(SOUND_MIDDLE);
      }
      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.