Jump to content

Recommended Posts

Posted

Hi

i think its my first share, its not big but its usefull for servers with pk guards.

If some1 have cursed weapon, guards will not attack him(ofc when he will hit them, they will hit back).

 

Just in com.l2jserver.gameserver.ai.L2AttackableAI.java.java from:

	if (getActiveChar() instanceof L2GuardInstance)
	{

		// Check if the L2PcInstance target has karma (=PK)
		if (target instanceof L2PcInstance && ((L2PcInstance) target).getKarma() > 0)

make

	if (getActiveChar() instanceof L2GuardInstance)
	{

		// Check if the L2PcInstance target has karma (=PK)
		if (target instanceof L2PcInstance && ((L2PcInstance) target).getKarma() > 0 && !target.getActingPlayer().isCursedWeaponEquipped())

and in same file from:

		
		if (target instanceof L2PcInstance && ((L2PcInstance) target).getKarma() > 0)
			return GeoData.getInstance().canSeeTarget(me, target); // Los Check
		else
			return false;
	}

make

			
		if (target instanceof L2PcInstance && ((L2PcInstance) target).getKarma() > 0 && !target.getActingPlayer().isCursedWeaponEquipped())				
return GeoData.getInstance().canSeeTarget(me, target); // Los Check
		else
			return false;
	}

If u want players with cursed weapons be able to use gatekeeper, wh or other npcs change in com.l2jserver.gameserver.model.actor.l2Npc.java from:

public void showChatWindow(L2PcInstance player, int val)
{
	if (!player.isCursedWeaponEquipped() && (!(player.getTarget() instanceof L2ClanHallManagerInstance) || !(player.getTarget() instanceof L2DoormenInstance)))
	{
		player.setTarget(player);
		return;
	}
	if (player.getKarma() > 0)
	{

to:

public void showChatWindow(L2PcInstance player, int val)
{
	if (!player.getActingPlayer().isCursedWeaponEquipped() && player.getKarma() > 0)

 

:s i should make patch but no idea how :(

  • 4 weeks later...
  • 3 weeks later...
Posted

Well, thanks, its useful because it will be stupid if someone got a pvp server with pk killer npc and make imba the cursed weapons... Because without this pk killers are going to pwn him :P.... Well, thanks....

Posted

Well, thanks, its useful because it will be stupid if someone got a pvp server with pk killer npc and make imba the cursed weapons... Because without this pk killers are going to pwn him :P.... Well, thanks....

mostly thats why i did it, its stupid that in some servers cursed weapons are completly useless

  • 2 weeks later...
  • 4 months later...

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

    • Let's be clear about what's happening here. You came to this thread as a provocateur, having already created a coordinated thread on MMO-Dev and invited people who have never been our clients and never will be — because their entire approach to this industry is based on free downloads and reverse engineering other people's work. Not a single person who wrote negatively about us on MMO-Dev has ever been our customer. Not one. Meanwhile, real clients wrote there too — but you conveniently ignore those. Your goal was never objectivity. It was a deliberate smear campaign, and the pattern is transparent to anyone reading this thread. As for MMO-Dev — platforms built on facilitating hatred and settling personal scores don't tend to last. We've seen it before with Zonegame. Communities that exist to tear others down eventually turn on themselves. In the meantime, our clients are running successful projects — the kind that generate real revenue, real growth, real results. That's where our focus is and will remain. While you wait for the 58th reopening of your server, we'll be here doing what we've been doing for 20 years — working.     Haha, well, the math is flattering — thank you for doing it for us! 😄 On the AI point — you might actually be right, and we're not afraid of that. We've been adapting for 20 years already. When new tools arrive, experienced developers use them better than anyone else. AI helps us work faster, not replace us — at least for now. And when the day comes that AI can fully build, maintain, and support a complex private L2 server end-to-end — we'll be the first to embrace it. Until then, our developers are doing just fine. 😉
    • The core strength of Novproxy Perfectly unlock overseas AI large models: 100% pure residential IP, perfectly bypassing various strict risk controls such as ChatGPT, Claude, Midjourney, etc. This is an essential tool for parents to train AI on weekends and during work! Available in 195+ countries/regions worldwide: covering an extremely wide range. Whether it's setting up accounts for cross-border e-commerce, conducting overseas web crawling, or conducting network gray-scale tests, it can all be handled easily. Ultra-fast concurrency: Real residential network, stable and non-blocking, high-concurrency business can also run at full capacity.
    • You charge 10,000 - 15,000 USD for Java files and your site shows 370 projects and 786 customers. you're not just a millionaire, you're a multimillionaire bro 😂 and enjoy it while it lasts. Ai is coming in hot and your 18 developers better start updating their CVs. soon everyone will build whatever they need for free. The 15k Java files era is over 😄  
  • 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..