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

    • L2 HARMONY - COMMUNITY BOARD
    • 亲爱的朋友们! 我们正在不断成长和发展,现在终于准备好为您提供在所有 SOCNET 项目中整合广告的机会! 我们的服务提供在以下平台投放广告的机会:网站 socnet.store,我们的 SMM 面板 socnet.pro,Telegram 机器人 socnet.shop 以及 socnet.cc(明星机器人),还有一个新的(目前保密的)项目。 每个平台都提供详细的分析数据和可用广告横幅的信息。 以下文件包含所有详细信息,提供 俄语 和 英语 两个版本。 您将在其中找到关于广告具体投放位置、整合费用、购买流程、限制条件以及其他细节问题的答案。 文档中还包含我们项目当前广告投放排队的表格。 详细信息文档: https://docs.google.com/document/d/1u4ro3fLkjfyvcp1Eu64rkgQy2Xl5lj87_1W25cVsqPM/edit?usp=sharing 感谢您的关注与支持! 此致敬礼, SOCNET 团队。 项目有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 – 通过 Telegram 信使方便地访问商店。 购买 Telegram Stars 的机器人:前往 – 在 Telegram 中快速且划算地购买星星。 SMM 面板:前往 – 推广您的社交媒体账户。 我们想向您介绍当前平台上购买商品和服务的 优惠活动与特别优惠 : 1. 优惠码 OCTOBER2025(8% 折扣)适用于十月份在我们的商店(网站、机器人)购物!您还可以使用首次购买优惠码:SOCNET(15% 折扣) 2. 注册后在我们的网站上使用以下格式发布信息即可获得 $1 店铺余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." — 请在我们的论坛帖子中发布! 3. 第一次试用 SMM 面板即可获得 $1 奖励 — 只需在我们的网站(支持)上创建标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Telegram Stars 购买机器人中举行星星抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 亲爱的朋友们! 我们正在不断成长和发展,现在终于准备好为您提供在所有 SOCNET 项目中整合广告的机会! 我们的服务提供在以下平台投放广告的机会:网站 socnet.store,我们的 SMM 面板 socnet.pro,Telegram 机器人 socnet.shop 以及 socnet.cc(明星机器人),还有一个新的(目前保密的)项目。 每个平台都提供详细的分析数据和可用广告横幅的信息。 以下文件包含所有详细信息,提供 俄语 和 英语 两个版本。 您将在其中找到关于广告具体投放位置、整合费用、购买流程、限制条件以及其他细节问题的答案。 文档中还包含我们项目当前广告投放排队的表格。 详细信息文档: https://docs.google.com/document/d/1u4ro3fLkjfyvcp1Eu64rkgQy2Xl5lj87_1W25cVsqPM/edit?usp=sharing 感谢您的关注与支持! 此致敬礼, SOCNET 团队。 项目有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 – 通过 Telegram 信使方便地访问商店。 购买 Telegram Stars 的机器人:前往 – 在 Telegram 中快速且划算地购买星星。 SMM 面板:前往 – 推广您的社交媒体账户。 我们想向您介绍当前平台上购买商品和服务的 优惠活动与特别优惠 : 1. 优惠码 OCTOBER2025(8% 折扣)适用于十月份在我们的商店(网站、机器人)购物!您还可以使用首次购买优惠码:SOCNET(15% 折扣) 2. 注册后在我们的网站上使用以下格式发布信息即可获得 $1 店铺余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." — 请在我们的论坛帖子中发布! 3. 第一次试用 SMM 面板即可获得 $1 奖励 — 只需在我们的网站(支持)上创建标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Telegram Stars 购买机器人中举行星星抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 亲爱的朋友们! 我们正在不断成长和发展,现在终于准备好为您提供在所有 SOCNET 项目中整合广告的机会! 我们的服务提供在以下平台投放广告的机会:网站 socnet.store,我们的 SMM 面板 socnet.pro,Telegram 机器人 socnet.shop 以及 socnet.cc(明星机器人),还有一个新的(目前保密的)项目。 每个平台都提供详细的分析数据和可用广告横幅的信息。 以下文件包含所有详细信息,提供 俄语 和 英语 两个版本。 您将在其中找到关于广告具体投放位置、整合费用、购买流程、限制条件以及其他细节问题的答案。 文档中还包含我们项目当前广告投放排队的表格。 详细信息文档: https://docs.google.com/document/d/1u4ro3fLkjfyvcp1Eu64rkgQy2Xl5lj87_1W25cVsqPM/edit?usp=sharing 感谢您的关注与支持! 此致敬礼, SOCNET 团队。 项目有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 – 通过 Telegram 信使方便地访问商店。 购买 Telegram Stars 的机器人:前往 – 在 Telegram 中快速且划算地购买星星。 SMM 面板:前往 – 推广您的社交媒体账户。 我们想向您介绍当前平台上购买商品和服务的 优惠活动与特别优惠 : 1. 优惠码 OCTOBER2025(8% 折扣)适用于十月份在我们的商店(网站、机器人)购物!您还可以使用首次购买优惠码:SOCNET(15% 折扣) 2. 注册后在我们的网站上使用以下格式发布信息即可获得 $1 店铺余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." — 请在我们的论坛帖子中发布! 3. 第一次试用 SMM 面板即可获得 $1 奖励 — 只需在我们的网站(支持)上创建标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Telegram Stars 购买机器人中举行星星抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 亲爱的朋友们! 我们正在不断成长和发展,现在终于准备好为您提供在所有 SOCNET 项目中整合广告的机会! 我们的服务提供在以下平台投放广告的机会:网站 socnet.store,我们的 SMM 面板 socnet.pro,Telegram 机器人 socnet.shop 以及 socnet.cc(明星机器人),还有一个新的(目前保密的)项目。 每个平台都提供详细的分析数据和可用广告横幅的信息。 以下文件包含所有详细信息,提供 俄语 和 英语 两个版本。 您将在其中找到关于广告具体投放位置、整合费用、购买流程、限制条件以及其他细节问题的答案。 文档中还包含我们项目当前广告投放排队的表格。 详细信息文档: https://docs.google.com/document/d/1u4ro3fLkjfyvcp1Eu64rkgQy2Xl5lj87_1W25cVsqPM/edit?usp=sharing 感谢您的关注与支持! 此致敬礼, SOCNET 团队。 项目有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 – 通过 Telegram 信使方便地访问商店。 购买 Telegram Stars 的机器人:前往 – 在 Telegram 中快速且划算地购买星星。 SMM 面板:前往 – 推广您的社交媒体账户。 我们想向您介绍当前平台上购买商品和服务的 优惠活动与特别优惠 : 1. 优惠码 OCTOBER2025(8% 折扣)适用于十月份在我们的商店(网站、机器人)购物!您还可以使用首次购买优惠码:SOCNET(15% 折扣) 2. 注册后在我们的网站上使用以下格式发布信息即可获得 $1 店铺余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." — 请在我们的论坛帖子中发布! 3. 第一次试用 SMM 面板即可获得 $1 奖励 — 只需在我们的网站(支持)上创建标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Telegram Stars 购买机器人中举行星星抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
  • 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