Jump to content

Recommended Posts

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

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

  • 5 weeks later...
Posted
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 😄

Posted
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

Posted (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 by Ugleethyn
Posted (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 by hermesito
error update
  • 1 month later...
Guest
This topic is now closed to further replies.



  • Posts

    • Migrating a legacy Interlude server to PostgreSQL while adding real observability is basically forcing 2006 MMO engineering to attend a 2026 infrastructure conference at gunpoint. PS: which revision of aCis? PS: 🧻what was broken during this whatever you call it.    AAC Guard beign asked to adapt to this be like: - Creating bugs since early 2018
    • OH MY LORDDDDDDDDDDDDDDDDDDDDD   FINALLY
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • I came out of my cave as I do once every 5 years. By now, I know nobody really cares about L2, but I still find it fun to experiment. Everything you see here will be free and open source. I have no interest in selling anything.   Long story short, I like to revisit Interlude and apply what I've learned to see how far I can push it. Here's Outerlude, a public fork of aCis for the modern age.   Video demo:   Work that has been done:   Redone the netcode from scratch to be async The NPC AI was completely redone based on Finite State Machines Moved to PostgreSQL and using some of its cool features Lots of config that should be hot reloadable has moved to the database OpenTelemetry instrumentation, where it makes sense, and a Grafana dashboard A built-in REST API for server management A built-in MCP Server for LLMs Nidrah AI, an AI Agent to make managing the server easier Real-time server map view Chat auditing and live snooping A new Fake Players Engine with a Node logic system and a new LLM planner for any behavior Just watch the video   If there is interest in this and I'm happy with it, or I get bored (which I always do), I will open-source it. Let me know what you think and if there is some feature you'd like me to implement.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..