Jump to content

milosvamp

Members
  • Posts

    146
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by milosvamp

  1. Right click on PACKAGE EXPLORER and then IMPORTand then GRADLE and then GRADLE PROJECT.
  2. First of all download Eclipse: https://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neon3 Then follow this guide: 1. Eclipse -> Window -> Show View -> Other Image: http://prnt.sc/c24qfk 2. Choose Git -> Git Repositories Image: http://prnt.sc/c24qxu 3. At the Git Repositories view click on "Clone a Git Repository" Image: http://prnt.sc/c24qps 4. At the URI field put "https://bitbucket.or.../l2j_server.git" and click Next > Image: http://prnt.sc/c24r8z 5. Click "Deselect All", check "master" only and click Next > Image: http://prnt.sc/c24rgm 6. Select a folder for your project and click Finish Image: http://prnt.sc/c24rnf 7. When you clone the repository, click on the second icon from left to right the type hint says "Clone a Git Repository and add the clone to this view" Image: http://prnt.sc/c24rtz 8. Repeat steps 4 "https://bitbucket.or...2j_datapack.git", 5 and 6 Image: http://prnt.sc/c24s1j 9. After it's finished, right click somewhere in the Package Explorer view and choose "Import..." Image: http://prnt.sc/c24s6j 10. Choose Gradle -> Gradle Project Image: http://prnt.sc/c24sc3 11. In the Project root directory choose the datapack project folder Image: http://prnt.sc/c24sv9 12. Wait for eclipse to finish importing the l2j_server and l2j_datapack projects Image: http://prnt.sc/c24t1a 13. At the bottom, a Gradle Tasks view will appear... l2j_datapack -> build -> right click on build -> Run Gradle Tasks Image: http://prnt.sc/c24t7v Server: https://bitbucket.org/l2jserver/l2j_datapack Datapack: https://bitbucket.org/l2jserver/l2j_datapack Credits to: Solomun. Or follow this guide: http://www.l2jserver.com/forum/viewtopic.php?t=32261 Goodluck.
  3. Hello, here are the links of MySQL Setups that u can use: MySQL 5.5 Setup --- >> x64 bit -------- > http://elolift.com/l2j/mysql/mysql-5.5.15-win32.msi MySQL 5.5 Setup --- >> x32 bit -------- > http://elolift.com/l2j/mysql/mysql-5.5.15-winx64.msi
  4. Hello guys, I have an problem. It's about Inventory. For example when it gets full 80/80 I can't pick anything anymore, even the items that i already have, for example adena. It is ok that i can't pick up new items, but i would like to know is it possible to make stacks out of it ? For example when my Inventory is full that I still can pick up adena and the items that i already have inside.
  5. Can somebody give me a little bit of help ? I wanna make one NPC not available for all classes. I want to make for example that only healers can use it. But I am very new at this... Could anybody just try to give me some advices ? (: For now the code looks like this: /* * 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.pots.pots; 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.KamaelChange2.KamaelChange2; public final class pots extends AbstractNpcAI { /** * @param name * @param descr */ public pots(String name, String descr) { super(name, descr); } // NPC private static int[] NPCS = { 30165, // Ralford }; public void showChatWindow(PlayerAction player, int val) final int npcId = getNpcId(); if (npcId == 30165) { final NpcHtmlMessage html = new NpcHtmlMessage(); if (PlayerAction.getclassid == 97) html.setFile("data/html/merchant/30165-50.htm", _descr); else html.setFile("data/html/merchant/30165-3.htm", _descr); html.replace("%objectId%", getObjectId()); player.sendPacket(html); return; } } /** * @return */ private Object getObjectId() { return null; } } Thanks in advance...
  6. can i use if ((qs != null) && qs.isCompleted]()) and then takeItems(player, STEELRAZOR_EVALUATION -1); player.setClassId(126); player.setBaseClass(126); // SystemMessage and cast skill is done by setClassId player.broadcastUserInfo(); giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15); } }
  7. First of all: if you don't want to help or if u would say: You can get it from me for money... then don't write anything and lock the topic immediately. I want to see if SOMEBODY ( doesnt have to ) it's his free will, to help me with this....I don't want any drama..... I am actually having a problem that i can't solve xD..... i wanna transforom 1 code into another but i am not successing it......it's about kamaels.... i created a npc with quest items for 1st class and 2 nd class, that ppl can buy it and use it.... so they can skip doing class quests ......... when other chars buy it and use it it works fine, but when kamaels do it they can't get the class, because they HAVE TO do the quest, the code requires that from them..... here is the code of the dwarf and it success taking a item without completed quest ... I want to make some version of code for kamael ..... ( the code is under ) /* * Copyright © 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 village_master.DwarfWarehouseChange1; import ai.npc.AbstractNpcAI; import com.l2jserver.gameserver.enums.CategoryType; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.base.ClassId; /** * Dwarf class transfer AI. * @author Adry_85 */ public final class DwarfWarehouseChange1 extends AbstractNpcAI { // NPCs private static int[] NPCS = { 30498, // Moke 30503, // Rikadio 30594, // Ranspo 32092, // Alder }; // Items private static final int SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE = 8869; private static final int RING_OF_RAVEN = 1642; // Class private static final int SCAVENGER = 54; private DwarfWarehouseChange1() { super(DwarfWarehouseChange1.class.getSimpleName(), "village_master"); addStartNpc(NPCS); addTalkId(NPCS); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = null; switch (event) { case "30498-01.htm": // warehouse_chief_moke003f case "30498-02.htm": // warehouse_chief_moke006fa case "30498-03.htm": // warehouse_chief_moke007fa case "30498-04.htm": // warehouse_chief_moke006fb case "30503-01.htm": // warehouse_chief_rikadio003f case "30503-02.htm": // warehouse_chief_rikadio006fa case "30503-03.htm": // warehouse_chief_rikadio007fa case "30503-04.htm": // warehouse_chief_rikadio006fb case "30594-01.htm": // warehouse_chief_ranspo003f case "30594-02.htm": // warehouse_chief_ranspo006fa case "30594-03.htm": // warehouse_chief_ranspo007fa case "30594-04.htm": // warehouse_chief_ranspo006fb case "32092-01.htm": // warehouse_chief_older003f case "32092-02.htm": // warehouse_chief_older006fa case "32092-03.htm": // warehouse_chief_older007fa case "32092-04.htm": // warehouse_chief_older006fb { htmltext = event; break; } case "54": { htmltext = ClassChangeRequested(player, npc, Integer.valueOf(event)); break; } } return htmltext; } private String ClassChangeRequested(L2PcInstance player, L2Npc npc, int classId) { String htmltext = null; if (player.isInCategory(CategoryType.SECOND_CLASS_GROUP)) { htmltext = npc.getId() + "-06.htm"; // fnYouAreSecondClass } else if (player.isInCategory(CategoryType.THIRD_CLASS_GROUP)) { htmltext = npc.getId() + "-07.htm"; // fnYouAreThirdClass } else if (player.isInCategory(CategoryType.FOURTH_CLASS_GROUP)) { htmltext = "30498-12.htm"; // fnYouAreFourthClass } else if ((classId == SCAVENGER) && (player.getClassId() == ClassId.dwarvenFighter)) { if (player.getLevel() < 20) { if (hasQuestItems(player, RING_OF_RAVEN)) { htmltext = npc.getId() + "-08.htm"; // fnLowLevel11 } else { htmltext = npc.getId() + "-09.htm"; // fnLowLevelNoProof11 } } else if (hasQuestItems(player, RING_OF_RAVEN)) { takeItems(player, RING_OF_RAVEN, -1); player.setClassId(SCAVENGER); player.setBaseClass(SCAVENGER); // SystemMessage and cast skill is done by setClassId player.broadcastUserInfo(); giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15); htmltext = npc.getId() + "-10.htm"; // fnAfterClassChange11 } else { htmltext = npc.getId() + "-11.htm"; // fnNoProof11 } } return htmltext; } @Override public String onTalk(L2Npc npc, L2PcInstance player) { String htmltext = null; if (player.isInCategory(CategoryType.BOUNTY_HUNTER_GROUP)) { htmltext = npc.getId() + "-01.htm"; // fnClassList1 } else { htmltext = npc.getId() + "-05.htm"; // fnClassMismatch } return htmltext; } public static void main(String[] args) { new DwarfWarehouseChange1(); } } _____________________________________________________________________________________________________________________________________________________ and then here is the Kamael code that doesn't work, I wanna make it that it doesn't require to take make the quest..... i want to make it ifplayerhasitems to take them and give him the class by it's id.....not that he ' has to do ' the quest..... :( .... heres the code of stupid kamael.... /* * Copyright © 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 village_master.KamaelChange1; import quests.Q00062_PathOfTheTrooper.Q00062_PathOfTheTrooper; import quests.Q00063_PathOfTheWarder.Q00063_PathOfTheWarder; import ai.npc.AbstractNpcAI; import com.l2jserver.gameserver.data.xml.impl.CategoryData; import com.l2jserver.gameserver.enums.CategoryType; import com.l2jserver.gameserver.enums.Race; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.base.ClassId; import com.l2jserver.gameserver.model.quest.QuestState; /** * Kamael class transfer AI. * @author Adry_85 */ public final class KamaelChange1 extends AbstractNpcAI { // NPCs private static int[] NPCS = { 32191, // Hanarin 32193, // Yeniche 32196, // Gershwin 32199, // Holst 32202, // Khadava }; // Items private static final int SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE = 8869; private static final int GWAINS_RECOMMENDATION = 9753; private static final int STEELRAZOR_EVALUATION = 9772; private KamaelChange1() { super(KamaelChange1.class.getSimpleName(), "village_master"); addStartNpc(NPCS); addTalkId(NPCS); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = null; switch (event) { case "32191-02.htm": // master_all_kamael003m case "32191-03.htm": // master_all_kamael006ma case "32191-04.htm": // master_all_kamael007ma case "32191-05.htm": // master_all_kamael007mait case "32191-06.htm": // master_all_kamael003f case "32191-07.htm": // master_all_kamael006fa case "32191-08.htm": // master_all_kamael007fa case "32191-09.htm": // master_all_kamael007fa { htmltext = event; break; } case "125": case "126": { htmltext = ClassChangeRequested(player, Integer.valueOf(event)); break; } } return htmltext; } private String ClassChangeRequested(L2PcInstance player, int classId) { String htmltext = null; if (CategoryData.getInstance().isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP, classId)) { if (player.isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP)) { htmltext = "32191-10.htm"; // master_all_kamael004a } else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP)) { htmltext = "32191-11.htm"; // master_all_kamael005a } else if (player.isInCategory(CategoryType.KAMAEL_FOURTH_CLASS_GROUP)) { htmltext = "32191-12.htm"; // master_all_kamael100a } else if ((classId == 125) && (player.getClassId() == ClassId.maleSoldier)) { QuestState qs = player.getQuestState(Q00062_PathOfTheTrooper.class.getSimpleName()); if (player.getLevel() < 20) { if ((qs != null) && qs.isCompleted()) { htmltext = "32191-13.htm"; // master_all_kamael009ma } else { htmltext = "32191-14.htm"; // master_all_kamael008ma } } else if ((qs == null) || !qs.isCompleted()) { htmltext = "32191-15.htm"; // master_all_kamael010ma } else { takeItems(player, GWAINS_RECOMMENDATION, -1); player.setClassId(125); player.setBaseClass(125); // SystemMessage and cast skill is done by setClassId player.broadcastUserInfo(); giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15); htmltext = "32191-16.htm"; // master_all_kamael011ma } } else if ((classId == 126) && (player.getClassId() == ClassId.femaleSoldier)) { QuestState qs = player.getQuestState(Q00063_PathOfTheWarder.class.getSimpleName()); if (player.getLevel() < 20) { if ((qs != null) && qs.isCompleted()) { htmltext = "32191-17.htm"; // master_all_kamael008fa } else { htmltext = "32191-18.htm"; // master_all_kamael009fa } } else if ((qs == null) || !qs.isCompleted()) { htmltext = "32191-19.htm"; // master_all_kamael010fa } else { takeItems(player, STEELRAZOR_EVALUATION, -1); player.setClassId(126); player.setBaseClass(126); // SystemMessage and cast skill is done by setClassId player.broadcastUserInfo(); giveItems(player, SHADOW_ITEM_EXCHANGE_COUPON_D_GRADE, 15); htmltext = "32191-20.htm"; // master_all_kamael011fa } } } return htmltext; } @Override public String onTalk(L2Npc npc, L2PcInstance player) { String htmltext = null; if (player.getRace() != Race.KAMAEL) { htmltext = "32191-01.htm"; // master_all_kamael002a } else if (player.isInCategory(CategoryType.KAMAEL_FIRST_CLASS_GROUP)) { if (player.getClassId() == ClassId.maleSoldier) { htmltext = "32191-02.htm"; // master_all_kamael003m } else if (player.getClassId() == ClassId.femaleSoldier) { htmltext = "32191-06.htm"; // master_all_kamael003f } } else if (player.isInCategory(CategoryType.KAMAEL_SECOND_CLASS_GROUP)) { htmltext = "32191-10.htm"; // master_all_kamael004a } else if (player.isInCategory(CategoryType.KAMAEL_THIRD_CLASS_GROUP)) { htmltext = "32191-11.htm"; // master_all_kamael005a } else { htmltext = "32191-12.htm"; // master_all_kamael100a } return htmltext; } public static void main(String[] args) { new KamaelChange1(); } } Thanks in advance. Keep in mind i don't want any drama.... If you want to help then help, if you don't want to help, ignore or lock the topic/delete... whatever..... thanks........ P.S. I am sorry, i am just tired of this kind of comments.... why to make it when you can simply avoid it....
  8. Thank you guys for fast replies. Fixed. <3
  9. Hello guys, i created an custom teleporter. The problem is that when i teleport it actually drops me from the sky and it drops my hp to 1. How can i make a normal teleportation? Without droppings from skys and dropping hp to 1. Thanks in advance.
  10. Thanks guys. I've fixed it. It was GeoData problem.
  11. I am using https://bitbucket.org/account/user/l2jserver/projects/L2J latest packs..... everything works fine except ' some' mobs in game don't drop anything !! Literally anything. Deleting mob via shift+ click +delete and creating them again via admin panel fixes the problem. * My question is: is there any way to do this overall in whole game or i have to do 1 per 1 ? Because this problem exist everywhere, just not with all mobs. Just with some. * I've tried unspawning and respawning all mobs...didn't fix the problem. Thanks in advance. Edit: Found the exact problem. The mobs are actually dropping but you can't see the drop--- because it goes underground..... but when you recall npc to another place he is dropping normally on ground. Any idea :X ?
  12. No, on one updater it works, on another it doesn't. It shows the ' home page ' the html index normally.... but the updates keep failing....
  13. :/ Thanks for your support words.
  14. I put these links like this, and i have files patched & uploaded.... but .....how you mean ' PROPERLY' I use L2Build....wtf.... and this ' candies ' part is totally unnecessary..... why to talk to someone like this ? Maybe because you have a lot of knowledge ? Yes you have, but only at java or w/e you know more. But my point is that YOU also can't know everything.....you can't have all knowledge of the world, you must also ask sometimes for something. Nothing offensive, just saying. Cheers.
  15. tried few times, showing same damn problem, sometimes it won't even synchronize the project and sometimes it fails at compiling.... I rly don't know what the heck is going on
  16. thank you, but the problem is that i put the address of update list, and still it says Updat Failed.
  17. this problem comes up when i try to create gradle project....
  18. When i try to import gradle project i get this error.......pfff Synchronize Gradle builds with workspace failed due to an unexpected error. Unsupported method: HierarchicalEclipseProject.getIdentifier(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model. org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: HierarchicalEclipseProject.getIdentifier(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model. at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33) at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:357) at com.sun.proxy.$Proxy33.getIdentifier(Unknown Source) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseProject.from(DefaultOmniEclipseProject.java:250) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseProject.from(DefaultOmniEclipseProject.java:246) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseGradleBuild.from(DefaultOmniEclipseGradleBuild.java:46) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultSingleBuildModelRepository$8.apply(DefaultSingleBuildModelRepository.java:181) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultSingleBuildModelRepository$8.apply(DefaultSingleBuildModelRepository.java:177) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository.executeAndWait(BaseModelRepository.java:164) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository.access$000(BaseModelRepository.java:41) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository$2.call(BaseModelRepository.java:121) at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193) at com.google.common.cache.LocalCache.get(LocalCache.java:3932) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository.getFromCache(BaseModelRepository.java:138) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository.executeRequest(BaseModelRepository.java:117) at com.gradleware.tooling.toolingmodel.repository.internal.BaseModelRepository.executeRequest(BaseModelRepository.java:88) at com.gradleware.tooling.toolingmodel.repository.internal.DefaultSingleBuildModelRepository.fetchEclipseGradleBuild(DefaultSingleBuildModelRepository.java:185) at org.eclipse.buildship.core.workspace.internal.DefaultModelProvider.fetchEclipseGradleBuild(DefaultModelProvider.java:53) at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildsJob.synchronizeBuild(SynchronizeGradleBuildsJob.java:77) at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildsJob.runToolingApiJob(SynchronizeGradleBuildsJob.java:69) at org.eclipse.buildship.core.util.progress.ToolingApiJob$1.run(ToolingApiJob.java:73) at org.eclipse.buildship.core.util.progress.ToolingApiInvoker.invoke(ToolingApiInvoker.java:61) at org.eclipse.buildship.core.util.progress.ToolingApiJob.run(ToolingApiJob.java:70) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  19. Launcher _settings Can anybody tell me how the ADDRESS should look like and where the files should be UPLOADED to make UPDATE working ??? Thanks in advance [main] Installed=1 UpdatesUrl=// NewsUrl=http:// AtRevision=269 CreateBackup=0 LinkName=Play whatever put it says UPDATE FAILED after i try to full check .......................
×
×
  • Create New...