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

    • Dynamic traffic, static ISP, unlimited traffic and bandwidth packages HTTP, HTTPS, SOCKS5 Over 195 countries/regions Over 100 million real residential IP address pools, with a normal uptime of 99.9%. Special discount code:VIP999
    • Here is the translation, formatted to look professional, clean, and highly scannable for your forum post: Hello L2JBrasil community! I present to you the newest development from MiaCodeWeb. We have created a robust and advanced adaptation of the Phantom system for aCis / L2JAcis 409, focused on Interlude C6 servers. Our main goal was to transform traditional "ornamental bots" into highly realistic, autonomous players. They are capable of creating themselves, restoring themselves, farming, auto-equipping, using skills, responding in chat using Artificial Intelligence, and being managed directly via an in-game panel. GitHub: https://github.com/miacodeweb/L2-Phantom-AI Video Demonstration: [Insert link here]   ## Main Features and Implementation We implemented the core of the Phantom system directly into the aCis gameserver. The architecture was divided into independent modules for AI, combat, chat, equipment, inventory, progression, logs, and administration. In-Game Admin Panel: Fully functional //phantom command. It allows you to create new phantoms, restore saved ones, reload configs, start/stop the AI, view online phantoms, kill bugged phantoms, delete them individually, and navigate through pages. Data Persistence: Created phantoms can be registered in phantoms.properties, allowing them to be restored later while maintaining all their progress directly from the database. Centralized Configuration: Everything is controlled by the phantoms.properties file, organized by sections: AI, Loot, Skills, Equipment, Zones, PVP/PK, Gemini (Chat), Logs, Respawn, and Anti-Stuck system. ## Phantom Skills and Behavior Smart Combat: They patrol, search for mobs, and claim targets to prevent multiple phantoms from attacking the same monster. Mages rest when they run out of MP and avoid hitting with physical weapons unnecessarily. Automatic Progression: Auto-learning of skills, automatic class changes following the logical tree of the chosen profession, receiving buffs, and inventory clearing when reaching a certain weight/space percentage. Dynamic Equipment System: They auto-equip based on class and level, using varying item combinations so they don't all look the same. Optimized Loot: Each phantom focuses on picking up drops/herbs from its own mob, avoiding that ugly scene of 10 phantoms chasing the same adena. PVP/PK Behavior (Configurable): Immediate response to attacks, detection of PK players in the visible area, and an optional "PK Rage Mode". ## AI and Movement Navigation and Anti-Stuck: Patrol system, free wandering, obstacle and stuck detection, with Geodata validation (when enabled on the server). Respawn: Automatic return to town after death, alongside safety rules to prevent them from getting permanently stuck in textures. Leveling Zones: Configurable leveling zones (automatic teleports to farm zones are disabled by default, as in Interlude/aCis they rely heavily on geodata accuracy and the real coordinates of your server). ## AI Chat Integration (Gemini 2.5 Flash) We integrated a Whisper system via the Gemini 2.5 Flash API, making the phantoms respond like real Lineage 2 players. Support for both free and paid API tiers. Configurable parameters: GeminiApiTier, Keys, Cooldowns, and DailyLimits. The system detects connection failures, API limits, and empty responses, and logs everything. The prompt has been adjusted so that the phantom doesn't reply with empty or robotic phrases when asked where to level up or what it's doing. ## Dedicated Log System We created an exclusive log file located at gameserver/log/phantoms.log. It records: loading of phantoms, auto-skills, buffs, Gemini API errors/successes, anti-stuck actions, kills/deletes by admin, and configuration issues. ## Simplified Distribution and Installation Thinking about ease of use for administrators, the mod is delivered in a ready-to-use package: phantom-acis-installer-client.zip. Includes an automatic PowerShell installer that injects the code into your Eclipse project. Contains README.md, INSTALL_MAP.md, and the payload/ folder with ready-made routes for aCis. Clean configuration files (without my API keys). Just run the installer over your copy of aCis, refresh Eclipse, compile, and test. ## Custom Jobs The project already has a solid and functional base for aCis 409. The ideal next steps would be to refine the farm routes by level and social behavior with long-term testing on live servers. I accept custom jobs! If you need this system adapted for another revision, exclusive modules, or any other development for your server, get in touch. Through MiaCodeWeb, I also offer complete services involving geodata optimization, advanced VPS administration (Linux), and Java backend management for L2J. Send a PM or visit the GitHub!   https://www.l2jbrasil.com/applications/core/interface/file/attachment.php?id=17801&key=135fc8d831b84c05089851b18bfca58a   Link dowload:https://github.com/miacodeweb/L2-Phantom-Acis-409
    • 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
    • PERFECT PERSPECTIVE IS ALMOST ALWAYS A DEATH SENTENCE ▪ Think if the document lies perfectly flat and everything is “level” it’ll be fine? Most of the time, that’s exactly what gives away the fake. Real smartphones, especially wide-angle cameras, always add natural distortions: - Slight warping at the edges of the document - Perspective distortions in the corners - Light curvature of the plane due to distance and shooting angle When everything is perfectly flat and geometrically flawless — algorithms and verifiers immediately recognize a “staged scene.” ▪ A genuine shot is never mathematically perfect. It’s these small lens distortions that make the frame look alive and believable.  Want perspective that won’t raise questions even from the most demanding verifiers? Write to us — we’ll create geometry that looks like it was shot with a real phone in real conditions. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #perspective #editing #geometry
  • 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..