flexcomunicacion Posted September 24, 2020 Posted September 24, 2020 Looking for someone to adapt it for fandc source. I can pay for this job. Quote
BAN_L2JDev Posted February 23, 2021 Posted February 23, 2021 (edited) On 6/18/2020 at 7:01 PM, Elfocrash said: Olá De vez em quando, gosto de escolher uma das coisas que estão sendo vendidas, mas são realmente fáceis de codificar e gosto de codificá-las bem rápido e compartilhá-las. A participação de hoje é o recurso Autofarm do lado do servidor da L2Warland. Como funciona Você define algumas habilidades na barra de habilidades de 10º atalho Cada seção representa um tipo de habilidade O uso da habilidade é priorizado (sinta-se à vontade para alterar a ordem para o que funcionar para você) Chance Vida baixa Habilidades pessoais Ataques Você pode alternar ou ativar e desativar com os comandos de voz .farm, .farmon, .farmoff Se os potenciômetros HP ou MP estiverem presentes, eles serão usados após os limites configuráveis serem atendidos Eles só terão como alvo os monstros para os quais eles podem se mover para atacar Os jogadores irão atacar automaticamente se a ação "Ataque" estiver em qualquer barra. Do contrário, eles só usarão habilidades Classes de spoiler vão estragar e varrer Feitiços próprios serão usados se o efeito não estiver presente e o cooldown não for alcançado Feitiços próprios irão desencadear habilidades de alternância Testei apenas o básico e parece que está funcionando bem. Se você encontrar algum problema, por favor, relate-o. Visualização do vídeo: Codificado para ACIS 382 Código-fonte: https://gist.github.com/Elfocrash/2afaa14089dfba2d2199c9d22f06d0d5 Isenção de responsabilidade: isso não compartilha absolutamente nenhum código com o motor Autobots Obrigada elfo Hello Elf, could you tell me how to get this private void in ACC 398. private void physicalAttack() { if (!(player.getTarget() instanceof Monster)) { return; } var target = (Monster) player.getTarget(); if (target.getCast().isCastingNow(player)) { if (GeoEngine.getInstance().canSeeTarget(player, target)) { if (player.getAI().getCurrentIntention().getType() != IntentionType.ACTIVE) player.getCast().isCastingNow(); } } else { player.sendPacket(ActionFailed.STATIC_PACKET); if (GeoEngine.getInstance().canSeeTarget(player, target)) player.getAI().tryToAttack(target); } } only Fight is working Edited February 23, 2021 by L2VANPER Quote
kiit Posted August 17, 2021 Posted August 17, 2021 @L2VANPER Did you manage to adapt this mod for the aCis 398+? Quote
BAN_L2JDev Posted August 17, 2021 Posted August 17, 2021 9 hours ago, kiit said: @ L2VANPER Você conseguiu adaptar este mod para o ACIS 398+? Yes! algumas coisas muda o nome mesmo isso e normal. Abre o arquivo que faz o use de alguma skill que voce encontra a referencia pra trabalhar! Quote
kiit Posted August 18, 2021 Posted August 18, 2021 17 hours ago, L2VANPER said: Yes! algumas coisas muda o nome mesmo isso e normal. Abre o arquivo que faz o use de alguma skill que voce encontra a referencia pra trabalhar! You could post the AutoFarmPlayerRoutine.java class because I'm just having an error in it to try to compile and test the mod. Quote
hermesito Posted September 17, 2021 Posted September 17, 2021 Hi Community! im trying to add this code in my Acis 382 and get 1 this error: seens like the "var" cannot be resolved to a type. Any Idea which is the best way to resolve this? Thanks Quote
Ugleethyn Posted September 17, 2021 Posted September 17, 2021 15 minutes ago, hermesito said: Hi Community! im trying to add this code in my Acis 382 and get 1 this error: seens like the "var" cannot be resolved to a type. Any Idea which is the best way to resolve this? Thanks var is varriable type of JavaScript, java doesn't work like that Quote
xdem Posted September 17, 2021 Posted September 17, 2021 5 minutes ago, Ugleethyn said: var is varriable type of JavaScript, java doesn't work like that 😄"> Java 10 introduced the "var" keyword which works similarly to the c++'s keyword "auto" for compile-time variable declaration So the answer is to either upgrade Java version to 10 or above or adapt the code 1 1 Quote
Ugleethyn Posted September 17, 2021 Posted September 17, 2021 (edited) 5 minutes ago, xdem said: Java 10 introduced the "var" keyword which works similarly to the c++'s keyword "auto" for compile-time variable declaration So the answer is to either upgrade Java version to 10 or above or adapt the code Thanks for the info.. I have never saw that before edit : tested and working Edited September 17, 2021 by Ugleethyn Quote
hermesito Posted September 17, 2021 Posted September 17, 2021 (edited) Thanks for the answer. Dont know, if this is the right section for that. I just updated my Java to 11. Maybe someone can give me a hand? I can pay a bit for the time. But i get this errors trying to compile the gameserver: compile: [javac] Compiling 1736 source files to C:\Users\herme\git\l2server\acis_public_server\aCis_gameserver\build\classes [javac] C:\Users\herme\git\l2server\acis_public_server\aCis_gameserver\java\net\sf\l2j\gameserver\autofarm\AutofarmPlayerRoutine.java:36: error: package org.jetbrains.annotations does not exist [javac] import org.jetbrains.annotations.NotNull; [javac] ^ [javac] C:\Users\herme\git\l2server\acis_public_server\aCis_gameserver\java\net\sf\l2j\gameserver\autofarm\AutofarmPlayerRoutine.java:207: error: cannot find symbol [javac] @NotNull [javac] ^ [javac] symbol: class NotNull [javac] location: class AutofarmPlayerRoutine [javac] 2 errors Update: solved. Just took out "import org.jetbrains.annotations.NotNull" and "@NotNull". It works fine. Thanks for sharing Edited September 21, 2021 by hermesito error update Quote
wongerlt Posted November 7, 2021 Posted November 7, 2021 I created interface control for this if someone interested just pm. Quote
wongerlt Posted November 8, 2021 Posted November 8, 2021 how this nonsense must work? var closestTarget = targets.stream().min((o1, o2) -> (int) MathUtil.calculateDistance(o1, o2, false)).get(); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.