Jump to content

milosvamp

Members
  • Posts

    146
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by milosvamp

  1. THANK YOU VERY MUCH man !!! i have only one issue. Could you pls tell me what to do with it ? Image of the problem
  2. yeah, haha idk how to make it ......................:x shit
  3. ok i got this now but idk what to say if player is class or what..... :x i just copied what i found onFirstTalk... look /* * Copyright (C) 2004-2016 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J DataPack is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package custom.potionns; import com.l2jserver.gameserver.model.ClanPrivilege; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.enums.PlayerAction; import com.l2jserver.gameserver.enums.Race; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.base.ClassId; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.model.actor.instance.L2MerchantInstance; import ai.npc.AbstractNpcAI; import village_master.DwarfWarehouseChange1.DwarfWarehouseChange1; public final class potionns extends AbstractNpcAI { /** * @param name * @param descr */ public potionns(String name, String descr) { super(name, descr); } // NPC private static int[] NPCS = { 30165, // Ralford }; @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { if (player.isClanLeader() || player.hasClanPrivilege(ClanPrivilege.CL_TROOPS_FAME)) { return npc.getId() + ".html"; } return npc.getId() + "-01.html"; } final int npcId = getId() ;{ if (npcId == 30165) { final NpcHtmlMessage html = new NpcHtmlMessage(); if (player.getClassId() == 97) html.setFile("data/html/merchant/30165-50.htm", _descr); else html.setFile("data/html/merchant/30165-3.htm", _descr); } else html.replace("%objectId%", getObjectId()); player.sendPacket(html); return; /** * @return */ private Object npc. getObjectId() { return null; } }
  4. What should i search ? Just tell me from which file should i copy that if u know....
  5. I don't understand what it is and what should i open... there are thousands of files and idk what is constructor and what is event and where to put. I simply don't understand it. Sorry
  6. /* * Copyright (C) 2004-2016 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J DataPack is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package custom.potionns; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.enums.PlayerAction; import com.l2jserver.gameserver.enums.Race; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.base.ClassId; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.model.actor.instance.L2MerchantInstance; import ai.npc.AbstractNpcAI; import village_master.DwarfWarehouseChange1.DwarfWarehouseChange1; public final class potionns extends AbstractNpcAI { /** * @param name * @param descr */ public potionns(String name, String descr) { super(name, descr); } // NPC private static int[] NPCS = { 30165, // Ralford }; @Override public String addTalkId(L2Npc npc, L2PcInstance player,int) { String htmltext = null; final int npcId = getId(); if (npcId == 30165) { final NpcHtmlMessage html = new NpcHtmlMessage(); if (player.getClassId() == 97) html.setFile("data/html/merchant/30165-50.htm", _descr); else html.setFile("data/html/merchant/30165-3.htm", _descr); } else html.replace("%objectId%", getObjectId()); player.sendPacket(html); return; /** * @return */ private Object npc.getObjectId() { return null; } } There are still some problems :X
  7. Could anybody try to make it for me pls ? I know it is few lines of a code ;X
  8. Nevermind. Found it game/data/ levelUpCrystalData.xml Thanks. Can be locked.
  9. i ' registered ' it but still nothing..... ai/group_template/TresureChest.java and here is also the TresureChest.java file from ai/group_template ... https://pastebin.com/iEHWgiJz but NONE of these drops are showed inside game....even after this registration that u said......pffff
  10. ahaaaaaaaaa this is another thing. No there is no Treasure Chest inside....
  11. how do you mean ? When i compile i have TreasureChest.java in game/data/scripts/ai/group_template
  12. how to 'reuse it' ? I have it but it doesn't work in game.....why............
  13. /* * Copyright (C) 2004-2016 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J DataPack is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package custom.potions; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.enums.PlayerAction; import com.l2jserver.gameserver.enums.Race; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.base.ClassId; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.model.actor.instance.L2MerchantInstance; import ai.npc.AbstractNpcAI; public final class potions extends AbstractNpcAI { /** * @param name * @param descr */ public potions(String name, String descr) { super(name, descr); } // NPC private static int[] NPCS = { 30165, // Ralford }; @Override public String onTalk(L2Npc npc, L2PcInstance player,int) { String htmltext = null; final int npcId = getId(); if (npcId == 30165) { final NpcHtmlMessage html = new NpcHtmlMessage(); if (player.getClassId() == 97) html.setFile("data/html/merchant/30165-50.htm", _descr); else html.setFile("data/html/merchant/30165-3.htm", _descr); } else html.replace("%objectId%", getObjectId()); player.sendPacket(html); return; } /** * @return */ private Object getObjectId() { return null; } } :X .... can u fix it :D
  14. Hi guys. Could anybody tell me how can i determine which MOB or which RAIDBOSS levels up Soul Crystals ? For example Soul Crystal 10 to 11. Lilith can level it up to 11. How can i control this ? To put also few raidbosses more to level up this crystal. Thanks in advance.
  15. Hi guys, can anybody explain me which line stands for Olympiad Period? I mean after what time heroes come up ? I want to make that heroes show up monthly. Who doesn't want to help, please ignore. # --------------------------------------------------------------------------- # Olympiad Settings # --------------------------------------------------------------------------- # The defaults are set to be retail-like. # If you modify any of these settings your server will deviate from being retail-like. # Warning: # Please take extreme caution when changing anything. # Also please understand what you are changing before you do so on a live server. # --------------------------------------------------------------------------- # Olympiad Start Time in Military hours Default 6pm (18) # Default: 18 AltOlyStartTime = 18 # Olympiad Start Time for Min's, Default 00 so at the start of the hour. # Default: 00 AltOlyMin = 00 # Maximum number of buffs. # Default: 5 AltOlyMaxBuffs = 5 # Olympiad Competition Period, Default 6 hours. # (If set different, should be increment by 10mins) # Default: 21600000 AltOlyCPeriod = 21600000 # Olympiad Battle Period, Default 5 minutes. # Default: 300000 AltOlyBattle = 300000 # Olympiad Weekly Period, Default 1 week # Used for adding points to nobles # Default: 604800000 AltOlyWPeriod = 604800000 # Olympiad Validation Period, Default 24 Hours. # Default: 86400000 AltOlyVPeriod = 86400000 # Points for reaching Noblesse for the first time # Default: 10 AltOlyStartPoints = 10 # Points every week # Default: 10 AltOlyWeeklyPoints = 10 # Required number of participants for the class based games # Default: 11 AltOlyClassedParticipants = 2 # Required number of participants for the non-class based games # Default: 11 AltOlyNonClassedParticipants = 2 # Required number of participants for the 3x3 teams games # Default: 6 AltOlyTeamsParticipants = 6 # Number used for displaying amount of registered participants, messages "Fewer than ..." or "More than ...". # 0 for displaying digits instead of text phrase (old style). # Default: 100 AltOlyRegistrationDisplayNumber = 100 # Reward for the class based games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,50 AltOlyClassedReward = 13722,25 # Reward for the non-class based games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,40 AltOlyNonClassedReward = 13722,10 # Reward for the 3x3 teams games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,85 AltOlyTeamReward = 13722,50 # ItemId used for exchanging to the points. # Default: 13722 AltOlyCompRewItem = 13722 # The minimal matches you need to participate to receive point rewards # Default: 15 AltOlyMinMatchesForPoints = 15 # Rate to exchange points to reward item. # Default: 1000 AltOlyGPPerPoint = 1000 # Noblesse points awarded to Heroes. # Default: 200 AltOlyHeroPoints = 200 # Noblesse points awarded to Rank 1 members. # Default: 100 AltOlyRank1Points = 100 # Noblesse points awarded to Rank 2 members. # Default: 75 AltOlyRank2Points = 75 # Noblesse points awarded to Rank 3 members. # Default: 55 AltOlyRank3Points = 55 # Noblesse points awarded to Rank 4 members. # Default: 40 AltOlyRank4Points = 40 # Noblesse points awarded to Rank 5 members. # Default: 30 AltOlyRank5Points = 30 # Maximum points that player can gain/lose on a match. # Default: 10 AltOlyMaxPoints = 10 # Hero tables show last month's winners or current status. # Default: True AltOlyShowMonthlyWinners = True # Olympiad Managers announce each start of fight. # Default: True AltOlyAnnounceGames = True # Restrict specified items in Olympiad. ItemID's need to be separated with a comma (ex. 1,200,350) # Equipped items will be moved to inventory during port. # Default: 6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,9388,9389,9390,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,20759,20775,20776,20777,20778,14774 AltOlyRestrictedItems = 6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,9388,9389,9390,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,20759,20775,20776,20777,20778,14774 # Enchant limit for items during Olympiad battles. Disabled = -1. # Default: -1 AltOlyEnchantLimit = -1 # Log all Olympiad fights and outcome to olympiad.csv file. # Default: False AltOlyLogFights = False # Time to wait before teleported to arena. # Default: 120 AltOlyWaitTime = 60 # Divider for points in classed and non-classed games # Default: 5, 5 AltOlyDividerClassed = 5 # AltOlyDividerNonClassed = 5 # Maximum number of matches a Noblesse character can join per week # Default: 70 AltOlyMaxWeeklyMatches = 70 # Maximum number of Class-Irrelevant Individual matches a character can join per week # Default: 60 AltOlyMaxWeeklyMatchesNonClassed = 60 # Maximum number of Class Individual matches a character can join per week # Default: 30 AltOlyMaxWeeklyMatchesClassed = 30 # Maximum number of Class-Irrelevant Team matches a character can join per week # Default: 10 AltOlyMaxWeeklyMatchesTeam = 10
  16. L2ItemInstance target = (L2ItemInstance) object; sendPacket(new StopMove(this)); SystemMessage smsg = null; synchronized (target) { // Check if the target to pick up is visible if (!target.isVisible()) { // Send a Server->Client packet ActionFailed to this L2PcInstance sendPacket(ActionFailed.STATIC_PACKET); return; } if (!target.getDropProtection().tryPickUp(this)) { sendPacket(ActionFailed.STATIC_PACKET); smsg = SystemMessage.getSystemMessage(SystemMessageId.FAILED_TO_PICKUP_S1); smsg.addItemName(target); sendPacket(smsg); return; } if (((isInParty() && (getParty().getDistributionType() == PartyDistributionType.FINDERS_KEEPERS)) || !isInParty()) && !_inventory.validateCapacity(target)) { sendPacket(ActionFailed.STATIC_PACKET); if (!target.isStackable() || (_inventory.getItemByItemId(target.getId()) == null)) { sendPacket(SystemMessageId.SLOTS_FULL); return; } if (isInvisible() && !canOverrideCond(PcCondOverride.ITEM_CONDITIONS)) { return; } this thing here is inserted if (!target.isStackable() || (_inventory.getItemByItemId(target.getId()) == null)) { Thanks.
  17. shit i don't know how to activate them, i have them alrdy but they don't drop anything.... whyyyyyyyyy ?
  18. Ok Reborn, i did all what u said, and compiling finally worked after i did some researches on net.... it was because of Java path.... anyway.... the code worked, compiling worked..... but it still doesn't pick up when inventory is full..... i want to make all items that already exist in inventory that they can be picked up......for example Adena..... :( :/
  19. ok here is it, thank you very much https://pastebin.com/4vWMzrBq
  20. This was the whole method..... thank you melron final L2PcInstance rewardedPlayer = players.get(getRandom(players.size())); if ((rewardedPlayer != null) && Util.checkIfInRange(1500, npc, rewardedPlayer, false)) { final int rnd = getRandom(1000); if (npc.getId() == SPITEFUL_SOUL_LEADER) { if (rnd <= SPITEFUL_SOUL_LEADER_CHANCE) { giveItems(rewardedPlayer, SPIRIT_BEAD, 2); } else { giveItems(rewardedPlayer, SPIRIT_BEAD, 1); } } else if (rnd < MONSTERS.get(npc.getId())) { giveItems(rewardedPlayer, SPIRIT_BEAD, 1); playSound(rewardedPlayer, Sound.ITEMSOUND_QUEST_ITEMGET); } } return super.onKill(npc, killer, isSummon); }
  21. Thanks, is it a big problem and should i fix it... ( and how ) :X ? this is the line that is console showing 753 line ------- final L2PcInstance rewardedPlayer = players.get(getRandom(players.size()));
  22. Hi guys. Does anybody know why is this error showing up on gameserver console ? com.l2jserver.gameserver.model.quest.Quest showError WARNING: game\data\scripts\quests\QuestMasterHandler.java java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(Unknown Source) at java.util.LinkedList.get(Unknown Source) at quests.Q00663_SeductiveWhispers.Q00663_SeductiveWhispers.onKill(Q00663_SeductiveWhispers.java:753) at com.l2jserver.gameserver.model.quest.Quest.notifyKill(Quest.java:591) at com.l2jserver.gameserver.model.quest.Quest.lambda$addKillId$15(Quest.java:1941) at com.l2jserver.gameserver.model.events.listeners.ConsumerEventListener.executeEvent(ConsumerEventListener.java:46) at com.l2jserver.gameserver.model.events.EventDispatcher.notifyToListeners(EventDispatcher.java:242) at com.l2jserver.gameserver.model.events.EventDispatcher.notifyEventImpl(EventDispatcher.java:216) at com.l2jserver.gameserver.model.events.EventDispatcher.notifyEvent(EventDispatcher.java:85) at com.l2jserver.gameserver.model.events.EventDispatcher.lambda$notifyEventAsyncDelayed$1(EventDispatcher.java:135) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:89) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock