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

  • Thanks 1
  • Upvote 1
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...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • 🌟 L2Avalon – Interlude Rework x20 – Grand Opening July 4! 🌟 📅 Server Launch: Open Beta: June 26, 18:00 GMT+3 Grand Opening: July 4, 2025 📦 Chronicle & Client: Reworked Interlude (based on latest High Five features) Custom launcher with up-to-date client support ⚔️ Rates & Progression: EXP/SP: Lv 1–39: x20 Lv 40–52: x15 Lv 52–60: x10 Lv 61–70: x8 Lv 71–75: x5 Lv 76–79: x4 → x3 Lv 80+: x2 Adena: x1 (subject to adjustment) Drop/Spoil/Raid Drop: x5 Quest Drop: custom Party Bonus: up to +290% EXP 🛠️ Core Features: Auto-loot (normal drops) Auto-learn skills up to level 75 High Five-style skill system with full rebalancing Passive MP regen: +1000 MP / 15s Inventory space: 150 slots Weight limit increased Auto CP/HP/MP potions Global chat from level 40 (!), offline shop (.offline), buff selling system (.sellbuff) 🔼 Class Progression: 1st & 2nd class: Free 3rd class: Kill 700 mobs → get 1 Giant Codex Subclass: Custom quest + 4 raid bosses + 1000 B-grade Crystals Noblesse: Either via Caradine's Letter (Lv 65+) or Noblesse box from raid bosses 🏪 NPC Shops & Support: GM Shop: Full D/C gear, Low B gear Luxury Shop: TOP B gear Donation Shop: Cosmetics, premium, etc. NPC Buffer: Save & load buff schemes (premium buffs for Premium Account) Mammon functions via NPC in Giran (unseal, augment, etc.) Offline Traders, Coin of Luck auction system Special blacksmiths and unique item services 💡 Why L2Avalon? Balanced seasonal x20 rates – smooth and long-term growth Quality-of-life systems for casual & hardcore players alike Custom skill system, refined raid rewards, and unique gear upgrades Active community, continuous development, and fair monetization Beta rewards & early start advantage 🔗 Useful Links: 🌐 Website: https://www.l2avalon.net 📘 Full Server Info: https://l2avalon-net.gitbook.io/info 💬 Discord: https://discord.gg/NbM2cXmAem 📝 Join the adventure this July! Prepare your characters during Beta and get rewarded at launch!  
    • You spent over a month calling a lot of people names. I get that you want to change, but it will take a lot more than this for me to believe its sincere. And honestly, for your apology to matter, I'd have to care enough to be offended in the first place.
    • we all love you very much Guytis💖 🤗
    • W/e u smoke there, i want aswell... life has been cruel all this time! Maybe it will help me
    • I would like to take this opportunity to publicly apologize to the following people:   @Acacia, @Victory, @Splicho, @ShadowNetwork, @l2gold2025, @SkyLord, @maneco, @F4sh10n, @Maxtor, @Celestine, @911reg, @Nightw0lf. @UnknownSoldier   If at any point my words, actions, or posts offended you, I sincerely apologize. I recognize that in the past there were moments of tension and unnecessary conflict, but today I want to leave all of that behind. From now on, I choose not to hold any grudges against anyone and to let go of everything that happened — from both sides. The path I want to follow in this community is one of collaboration, mutual respect, and growth. Thank you to those who are still contributing and sharing. Sincerely,   Guytis
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock