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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • how do I make it so that you only deal damage to a mob if you have the right items equipped, like jewels, belt, underwear, bracelet, so if you don't have one of those items equipped, you don't deal any damage to the mob thanks
    • I always welcome bug reports and never ban ppl - until proven leaker - not sure where the "arrogant" part comes from, I would like to know what exactly let you think that (quote me please, and not 12y old quotes as the other frog meme dude). I request bug reports to be properly detailed, otherwise it's a waste of time. Other than that, I don't see where I have been arrogant. I got proper discussions with many ppl, not sure why you wouldn't be one of them.   I got 76 bug reports in my list (21 on forums, 55 on gitlab).   I have a single bug report regarding lvl 4 clan quest, which has to be tested since it's not even clear about what is supposed to be broken. Seven Signs was never reworked and is basically L2J based (we got a rework branch to test/commit with reworked AIs). Geoengine got no specific issues (at my knowledge), pathfinding was reworked lately to be way more performant, and I still try to improve performance using some pool system. Movement was partially fixed in latest 410, and probably will get another rework soon (notably reverting to the task wallclock).   "I" surely didn't spend 12y over geoengine - Hasha cared about geoengine during rev 334 / 354 / 390 / 395 and 397. It is solely his work, and always tagged as it. He was rewarded with money for his work, and almost a decade of aCis access.   aCis is a community work, things tagged with Tryskell is my work, the leftover is someone else work. 22 ppl worked as developers in this project over 14 years.   I would gladly accept whatever list of fixes/reports you have to share. You will even be rewarded (you probably know about cookie system), as anyone else sharing bug report or fixes.   My main concerns lately is the lack of decent L2OFF IL data, it is my main bottleneck actually. If you're aware about decent L2OFF data to parse, let me know.
    • Your project doesn't compare to aCis; you have to be an idiot to use that. I know someone who bought the High Five "PREMIUM" version, which has the same bugs as the free version. If you want, I can share his latest premium version. Players are going through walls with their bad geoengine, falling under the Olympiad. If you want, I can record and prove what I'm saying. The aCis project is 50 steps ahead of yours and it's not even stable...
    • l2jteon, l2joneo l2jscoria etc etc. and from that we went to this 
  • 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..

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