Jump to content

Question

Posted (edited)

I love when Raids have mechanics... And i want to create this *Mechanic on this raid i am creating.

 

What i want to do and i am asking to see if i can do this is :

 

I Want to place a boss in the middle of a big room... 

 

I Want the Mobs (Not Raid Mobs) to get aggro when you hit the boss Like Protecting him...

But when you hit the mobs... (again not the Raid Mobs) to make the boss ignore that.

 

Hit the boss u get the Whole room on you because they are soldiers and they will help their lord...

But the Raid dont attack when you hit the monsters on the room Except when you hit him or the raid mobs.

 

And i dont want the whole room to attack you when u hit one mob...  just the mobs that are close to that mob and you. 

 

Damn i wish i was better in English to Explain it better.

Edited by One Shot Mario

5 answers to this question

Recommended Posts

  • 0
Posted

I love when Raids have mechanics... And i want to create this *Mechanic on this raid i am creating.

 

What i want to do and i am asking to see if i can do this is :

 

I Want to place a boss in the middle of a big room... 

 

I Want the Mobs (Not Raid Mobs) to get aggro when you hit the boss Like Protecting him...

But when you hit the mobs... (again not the Raid Mobs) to make the boss ignore that.

 

Hit the boss u get the Whole room on you because they are soldiers and they will help their lord...

But the Raid dont attack when you hit the monsters on the room Except when you hit him or the raid mobs.

 

And i dont want the whole room to attack you when u hit one mob...  just the mobs that are close to that mob and you. 

 

Damn i wish i was better in English to Explain it better.

So you want less aggresive mobs to protect the boss?

As for eng,never too late to hit the desks and become a student :d

  • 0
Posted

So you want less aggresive mobs to protect the boss?

As for eng,never too late to hit the desks and become a student :D

U get into the room ... u kill 2 mobs (boss doesnt move a muscle) u say hey i am clever i will hit the boss and bypass the mobs... u hit the boss boom every focking shit in the room attacks you ... even though you did it right and the mobs were actualy far away.

  • 0
Posted

u can play with checks ...

 

in doAttack() method you should check if the attacker is gonna hit your boss and then control the mobs you want , send attack

take an example:

if (this instanceof L2PcInstance && target instanceof L2MonsterInstance)
{
	L2MonsterInstance boss = (L2MonsterInstance) target;
	if (boss.getNpcId() == your boss id)
	{
		for (L2Character mob : boss.getKnownList().getKnownCharactersInRadius(your radius))
		{
			if (mob instanceof L2MonsterInstance && !((L2MonsterInstance)mob).isRaid())
			{
				((L2MonsterInstance)mob).getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
			}
		}
	}
}
  • 0
Posted

 

u can play with checks ...

 

in doAttack() method you should check if the attacker is gonna hit your boss and then control the mobs you want , send attack

take an example:

if (this instanceof L2PcInstance && target instanceof L2MonsterInstance)
{
	L2MonsterInstance boss = (L2MonsterInstance) target;
	if (boss.getNpcId() == your boss id)
	{
		for (L2Character mob : boss.getKnownList().getKnownCharactersInRadius(your radius))
		{
			if (mob instanceof L2MonsterInstance && !((L2MonsterInstance)mob).isRaid())
			{
				((L2MonsterInstance)mob).getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
			}
		}
	}
}

Thanks alot m8 

  • 0
Posted (edited)

It's basically clan faction system, but for the specific case of RB, you have to deny aggro. Simply write a faction name for all case, and for rb case you can write ignoredId (implemented for aCis, not sure about your pack). It's even part of retail behavior, where some mobs will defend but some won't.

 

Example of blood queen :

<ai type="DEFAULT" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="500" clan="cave_servant_clan" clanRange="400" ignoredIds="20237;20273;20238;20274;20239;20275;20240;20276;20246;20277;20134;20287" canMove="true" seedable="true"/>
		

She got a clan, but won't help any of ignoredIds. If you haven't ignoredIds system, you can simply port aCis version.

 

If your room is big you can use clanRange to adjust the "spread aggro".

Edited by Tryskell

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
Answer this question...

×   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

    • Looking to hire a skilled L2J developer or team to build a custom private server for solo play with advanced server-side AI bots. This is NOT for public launch — just a self-hosted project where I can simulate a full L2 experience alone or with a few friends. 🔹 What I Need A private L2J server ( High Five preferred, newer versions can work as well) with bots that: Farm 24/7 on their own (solo or in bot parties) Can be invited into party and follow basic orders (attack, follow, res, heal, etc.) Are able to join Olympiad, fight with proper logic (per class), and rank up Can coordinate for Raid Bosses (check spawn, move, assist, heal, DPS, etc.) Act like real players: town routines, rebuffing, restocking, even chatting if possible Have different roles: tanks, healers, nukers, archers, etc. Can interact through simple in-game commands or NPC interface 🔹 Your Job Set up the server and geodata Integrate a scalable bot system (written in Java or scriptable) Write clean, modular AI behavior (farming, PvP, party play, raid logic, etc.) Allow me to control/assign bots easily (in-game or config) Bonus: basic UI or GM panel for bot config 🔹 Payment Serious budget for serious work PayPal, crypto, or preferred method Project-based or hourly, negotiable Milestone-based OK 🔹 Contact Send me: Your experience with L2J or similar projects Any bot/AI systems you've built before Estimated timeframe Pricing expectations
    • Yeah, it’s wild how much gambling has changed. When I was growing up, even scratch-off tickets felt like a big thing, but now with so many casino apps and betting sites, it’s just everywhere. I know a few people who got caught up in online slots during lockdown and really struggled to stop, just because it was always on their phone.   I stick to in-game stuff like skin trading for games like CS2 or Dota, which to me feels less risky, especially if you know the value of the items. If you’re curious how these trades work or want to see some guides, just visit website—there’s a lot of info about trading without real gambling involved.
    • Yea, his work is amazing, very well done designs, but the timing is not really his thing. I’m waiting for logo and launcher design since December 2024, so 10 days is not really that much lol
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchihamkt.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/uthciha-servicess  | https://campsite.bio/utchihaamkt  
  • 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