Jump to content

Recommended Posts

Posted

hello all... before my post i have search on forum about like that.. but i don't have find anything like that.

-----------------------------

1)Is easy Code!

2)Work!

 

go to: net.sf.l2j.gameserver.model.clientpackets

open file attackrequest.java

 

after that:

protected void runImpl()
{
	L2PcInstance activeChar = getClient().getActiveChar();
	if (activeChar == null) return;

 

add that:


+		// Peace Zone Attack Exploit Fix
+		//player can hit mobs(etc) but no players
+		L2PcInstance ptarget = (L2PcInstance)activeChar.getTarget();
+      	if (ptarget.isInsideZone(L2Character.ZONE_PEACE))
+       	{
+      		activeChar.sendMessage("[Guard]: You cant attack player in Peace Zone");
+			activeChar.sendPacket(new ActionFailed());
+			return;
+       }
+
	// avoid using expensive operations if not needed

 

i know is easy code but work fine :)

 

Posted

This is the code that dont allows to players hit NPCs in towns?

with that code don't allow hit players if players is in peace zone..

 

check the trick:

 

(trick: Stun one mob and change fast target you start attack with normal hit you new target..)

 

  • 2 months later...
Posted

hello all... before my post i have search on forum about like that.. but i don't have find anything like that.

-----------------------------

1)Is easy Code!

2)Work!

 

go to: net.sf.l2j.gameserver.model.clientpackets

open file attackrequest.java

 

after that:

protected void runImpl()
{
	L2PcInstance activeChar = getClient().getActiveChar();
	if (activeChar == null) return;

 

add that:


+		// Peace Zone Attack Exploit Fix
+		//player can hit mobs(etc) but no players
+		L2PcInstance ptarget = (L2PcInstance)activeChar.getTarget();
+      	if (ptarget.isInsideZone(L2Character.ZONE_PEACE))
+       	{
+      		activeChar.sendMessage("[Guard]: You cant attack player in Peace Zone");
+			activeChar.sendPacket(new ActionFailed());
+			return;
+       }
+
	// avoid using expensive operations if not needed

 

i know is easy code but work fine :)

 

working???? yes its working but its bugged... if someone have townwar event  or a event in town... and the pet Bug: you can leave your pet in peace zone with out getting damage the pet... half damage  goes to nobody and you will getting the half damage in game the mage will be like a super man with half damage... here is the fix:

 

if (ptarget.isInsideZone(L2Character.ZONE_PEACE))

                {

                L2PetInstance pet = (L2PetInstance)getPet();

                if (!activeChar.isInFunEvent() || !ptarget.isInFunEvent() || !(pet !=null))

                {

                activeChar.sendMessage("[Guard]: You cant attack player in Peace Zone");

                activeChar.sendPacket(new ActionFailed());

                return;

                }

my oppinion: you can add it in l2pcinstance doAttack its better...

if i am wrong correct me... :P

 

 

Posted

If you 're open to few suggestions,i can provide you with the most suitable fix.

First of all,attack is caused by skill intention.There are several skills that force the character to attack when the casting is finished.

 

I believe the problem is in L2Character/void onMagicFinalizer

Just change this line:

	if (skill.getSkillType() == SkillType.PDAM || skill.getSkillType() == SkillType.BLOW 
			|| skill.getSkillType() == SkillType.DRAIN_SOUL || skill.getSkillType() == SkillType.SOW 
			|| skill.getSkillType() == SkillType.SPOIL)
	{
-			if ((getTarget() != null) && (getTarget() instanceof L2Character))
+                       if ((getTarget() != null) && (getTarget() instanceof L2Character) && targets[0] == getTarget())
			getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, getTarget());
	}

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

    • Dear friends, we are glad to present our new service — KYC verification for any platforms!️ We verify crypto exchanges, marketplaces, social networks, hosting providers, casinos, and other legitimate websites. Verification is done using a passport or driver’s license. Services engaged in illegal activity are not supported. Available countries: Eastern Europe: Russia, Ukraine, Belarus, Uzbekistan, Armenia, Kyrgyzstan, Kazakhstan — $30–33 European Union (Western Europe, often Latvia and Estonia) — $80–88 Africa: Nigeria, Kenya — $30–33 If you need both registration and verification of your account, an additional 10% fee is applied to the transaction amount. Contact us to request KYC verification or for other support inquiries: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store Active SOCNET Store Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — simply post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh
    • Dear friends, we are glad to present our new service — KYC verification for any platforms!️ We verify crypto exchanges, marketplaces, social networks, hosting providers, casinos, and other legitimate websites. Verification is done using a passport or driver’s license. Services engaged in illegal activity are not supported. Available countries: Eastern Europe: Russia, Ukraine, Belarus, Uzbekistan, Armenia, Kyrgyzstan, Kazakhstan — $30–33 European Union (Western Europe, often Latvia and Estonia) — $80–88 Africa: Nigeria, Kenya — $30–33 If you need both registration and verification of your account, an additional 10% fee is applied to the transaction amount. Contact us to request KYC verification or for other support inquiries: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store Active SOCNET Store Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — simply post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh
    • Dear friends, we are glad to present our new service — KYC verification for any platforms!️ We verify crypto exchanges, marketplaces, social networks, hosting providers, casinos, and other legitimate websites. Verification is done using a passport or driver’s license. Services engaged in illegal activity are not supported. Available countries: Eastern Europe: Russia, Ukraine, Belarus, Uzbekistan, Armenia, Kyrgyzstan, Kazakhstan — $30–33 European Union (Western Europe, often Latvia and Estonia) — $80–88 Africa: Nigeria, Kenya — $30–33 If you need both registration and verification of your account, an additional 10% fee is applied to the transaction amount. Contact us to request KYC verification or for other support inquiries: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store Active SOCNET Store Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — simply post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh
    • Dear friends, we are glad to present our new service — KYC verification for any platforms!️ We verify crypto exchanges, marketplaces, social networks, hosting providers, casinos, and other legitimate websites. Verification is done using a passport or driver’s license. Services engaged in illegal activity are not supported. Available countries: Eastern Europe: Russia, Ukraine, Belarus, Uzbekistan, Armenia, Kyrgyzstan, Kazakhstan — $30–33 European Union (Western Europe, often Latvia and Estonia) — $80–88 Africa: Nigeria, Kenya — $30–33 If you need both registration and verification of your account, an additional 10% fee is applied to the transaction amount. Contact us to request KYC verification or for other support inquiries: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store Active SOCNET Store Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — simply post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh
    • Dear friends, we are glad to present our new service — KYC verification for any platforms!️ We verify crypto exchanges, marketplaces, social networks, hosting providers, casinos, and other legitimate websites. Verification is done using a passport or driver’s license. Services engaged in illegal activity are not supported. Available countries: Eastern Europe: Russia, Ukraine, Belarus, Uzbekistan, Armenia, Kyrgyzstan, Kazakhstan — $30–33 European Union (Western Europe, often Latvia and Estonia) — $80–88 Africa: Nigeria, Kenya — $30–33 If you need both registration and verification of your account, an additional 10% fee is applied to the transaction amount. Contact us to request KYC verification or for other support inquiries: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store Active SOCNET Store Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — simply post your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Telegram bot for Star purchases! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh
  • 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