Jump to content

Autofarm server bot like L2Warland


Recommended Posts

  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 2 months later...
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

DanYtk4.png

 

  • 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 by L2VANPER
Link to comment
Share on other sites

  • 5 months later...
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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 5 weeks later...

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.image.png.9666fa3d22f2fb22414b7ee7efbe72c4.png

 

Any Idea which is the best way to resolve this? 

Thanks

Link to comment
Share on other sites

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.image.png.9666fa3d22f2fb22414b7ee7efbe72c4.png

 

Any Idea which is the best way to resolve this? 

Thanks

var is varriable type of JavaScript, java doesn't work like that 😄

Link to comment
Share on other sites

5 minutes ago, Ugleethyn said:

var is varriable type of JavaScript, java doesn't work like that <font style=😄">

 

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 1
  • Upvote 1
Link to comment
Share on other sites

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 by Ugleethyn
Link to comment
Share on other sites

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 by hermesito
error update
Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...