Jump to content

Recommended Posts

Posted

if someone kill the some character more than 1 time dont take pvp point (lol)

well for faction server's it may be good (propablY)

but for the boting pvp protection you can make something else like :

if someone try to increase his pvp point's from the SAME IP ADDRESS

       // Check if it's pvp

	String attacker = getClient().getConnection().getInetAddress().getHostAddress();
	String attacked = targetPlayer.getClient().getConnection().getInetAddress().getHostAddress();

	if (attacker.equals(attacked))
	{
		sendMessage("What you though? You cannot use dumb exploit's NOOB!");
		return;
	}
	if (
			(
					checkIfPvP(target) &&            //   Can pvp and
					targetPlayer.getPvpFlag() != 0   //   Target player has pvp flag set
			) ||                                     // or
			(
					isInsideZone(ZONE_PVP) &&         		 //   Player is inside pvp zone and
					targetPlayer.isInsideZone(ZONE_PVP) 	 //   Target player is inside pvp zone
			)
	)
	{
            increasePvpKills();
	}
	else                                                                        // Target player doesn't have pvp flag set
	{
            // check about wars
            if (targetPlayer.getClan() != null && getClan() != null)
            {
                if (getClan().isAtWarWith(targetPlayer.getClanId()))
                {
                    if (targetPlayer.getClan().isAtWarWith(getClanId()))
                    {
                        // 'Both way war' -> 'PvP Kill'
                        increasePvpKills();
                        return;
                    }
                }
            }
            
            // 'No war' or 'One way war' -> 'Normal PK'
    		if (attacker.equals(attacked))
    		{
    			sendMessage("What you though? You cannot use dumb exploit's NOOB!");
    			return;
    		}
            else if (targetPlayer.getKarma() > 0)                                        // Target player has karma
		{
			if ( Config.KARMA_AWARD_PK_KILL )
			{
                    increasePvpKills();
			}
		}
		else if (targetPlayer.getPvpFlag() == 0)                                                                    // Target player doesn't have karma
		{
			if (attacker.equals(attacked))
			{
				sendMessage("What you though? You cannot use dumb exploit's NOOB!");
				return;
			}

this is the protection for same IP w/e and your's it's correct

 

 

this code in what folder we put it?

Posted

thx for info cobra...and one last question...i just take all this code and put it at the end of the file or somewhere else?

Posted

damn so for replying again : i just got some errors from this code.I use gracia final l2jserver last rev.

 

 

 

Syntax error, insert "}" to complete Block L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5825 Java Problem

Syntax error, insert "}" to complete Statement L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5825 Java Problem

Syntax error, insert "else Statement" to complete IfStatement L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5825 Java Problem

target cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5763 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5754 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5764 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5768 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5778 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5780 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5782 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5797 Java Problem

targetPlayer cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 5804 Java Problem

 

 

Maybe it is need to import smth ??i just dont know what :/

 

Posted

Syntax error, insert "}" to complete Block   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5825   Java Problem

Syntax error, insert "}" to complete Statement   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5825   Java Problem

Syntax error, insert "else Statement" to complete IfStatement   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5825   Java Problem

target cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5763   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5754   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5764   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5768   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5778   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5780   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5782   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5797   Java Problem

targetPlayer cannot be resolved   L2PcInstance.java   /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance   line 5804   Java Problem

 

 

Are you lazy to read ?

Posted

Syntax error, insert "}" to complete Block  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5825  Java Problem

Syntax error, insert "}" to complete Statement   L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5825  Java Problem

Syntax error, insert "else Statement" to complete IfStatement  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5825  Java Problem

target cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5763  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5754  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5764  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5768  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5778  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5780  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5782  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5797  Java Problem

targetPlayer cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 5804  Java Problem

 

 

Are you lazy to read ?

 

 

Ok man for the first 2 errors i can fix them,but for the rest???Lol i ask if you know because i am not expert....

Posted

It is not offtopic man,it concerns about the code of pvp bot protecting.

But ok,as you wish.

you ask help about osiris code not mine.
Posted

you ask help about osiris code not mine.

shut up nooB!!!! both codes are cool stop acting like [gr] (xazo)[/gr] :)

P.S {your's XD {credits Savormix} w/eeee

 

It is not offtopic man,it concerns the code of pvp bot protecting.

But ok,as you wish.

off topic : if you wanna add this code send me a message here with your msn and i will help ya

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

    • TP Data: X=150148 Y=203643 Z=-3634
    • Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK We also have items, epics, etc. discord - adver745645 Our prices are reasonable, so have a nice shopping and a nice day.
    • Dear friends, we are pleased to announce great news — we are launching our new bot for purchasing and renting virtual numbers for receiving SMS from any services! Are you tired of reused or resold numbers from other platforms? Try our solution! Our service allows you to receive SMS from any major popular services. The list includes more than 200 services! SMS receiving country: USA (+1). Real physical US numbers are used — never previously used on other platforms! Currently, only short-term rental is available. The rental duration for each phone number is shown when purchasing. The cost of each number is also shown next to the service before purchase. You can also receive an additional SMS for your number for the selected service (no extra charge for receiving one more SMS). To quickly find the service you need, you can use the convenient search — just type the name of the service you need and get a number for activation. Available payment methods: cryptocurrencies, bank cards, and balance transfer from our other bots. Thank you for your trust! Active links: Virtual Number Service: Go Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store through Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing goods and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during October! You can also use the promo code for your first purchase: 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 using 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 ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! 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 Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Dear friends, we are pleased to announce great news — we are launching our new bot for purchasing and renting virtual numbers for receiving SMS from any services! Are you tired of reused or resold numbers from other platforms? Try our solution! Our service allows you to receive SMS from any major popular services. The list includes more than 200 services! SMS receiving country: USA (+1). Real physical US numbers are used — never previously used on other platforms! Currently, only short-term rental is available. The rental duration for each phone number is shown when purchasing. The cost of each number is also shown next to the service before purchase. You can also receive an additional SMS for your number for the selected service (no extra charge for receiving one more SMS). To quickly find the service you need, you can use the convenient search — just type the name of the service you need and get a number for activation. Available payment methods: cryptocurrencies, bank cards, and balance transfer from our other bots. Thank you for your trust! Active links: Virtual Number Service: Go Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store through Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing goods and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during October! You can also use the promo code for your first purchase: 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 using 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 ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! 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 Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: 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