Jump to content
  • 0

[HELP] Java row kill system


Question

Posted

Hi guys, well i have Coyote's faction engine , the row killing system dont apply on Faction members.

On normal players work great. Can anyone help me to make it work to faction member aswell?

 

 

 

here it is

Recommended Posts

  • 0
Posted

i don't have eclipse from where i am but give me the code for normal members to take a look.

You just have to adapt it for faction.

  • 0
Posted

i never use that system please explain maybe i help you

Well actually when i kill sombody , a mesge apprea on announcement and a skill cast on player,

but this work perfect on normal player(check video), after i chose faction  dont work .

+ i can show you on my server

  • 0
Posted

Hi guys, well i have Coyote's faction engine , the row killing system dont apply on Faction members.

On normal players work great. Can anyone help me to make it work to faction member aswell?

 

 

 

here it is

 

this song for this code is perfect! the code is failed :S

  • 0
Posted

this song for this code is perfect! the code is failed :S

code fail?

 

Why ppl comment about things that they dont even know.... make better code with numbers animations etc, and after comment.

  • 0
Posted

For upper posts, don't feed trolls.

 

The SpreeKills have been added twice in 2 differents methods, wtf ? Do a search with "switch(SpreeKills)", you will see what I talk.

 

- Just create a method "SpreeKillsCall", and call it when you need it... Normally once is enough.

- Your SpreeKills isn't reseted at death... Only at delog lol. On the "doDie" method, put a "SpreeKills = 0;"

 

-----

 

Second, and this should answer your question, the 2 uses of SpreeKills are in "increasePvpKills" and "increasePkKillsAndKarma" methods.

 

"increasePkKillsAndKarma" got a faction restriction (and it's normal, to avoid to get karma). The whole method is just ignored.

 

For "increasePvpKills" method, it is surely not used in your faction system.

 

Try to verify first if you get a pvp point from an enemy.

 

If you haven't, add "increasePvpKills;" where it is needed.

If you have, you're unlucky and need more searches.

 

As I'm very cute (:>)

you will surely have to edit "onKillUpdatePvPKarma".

And as I'm INSANELY cute

it's after "// Check if it's pvp" commentary.

Normally a faction system haven't a pvpflag, so this pvp checker is failed, and works for normal players, but not for faction.

 

End of the spoiler.

 

----

 

Finally, and as old intensive player of faction servers, and developer of my own, I think the idea is a fail in the sense some guys can reach easily 400 pvps in a row (and it has really happen on a well known server), so what ? You code 400 different sprees ? Even if the render is very graphical and candy-eye looking, it's bad idea finally. Idea is good, but in gamers' reality... Well you got my point.

 

Was my 2,1 cent.

 

----

 

Try that :

 

After // Check if it's pvp, you got

 

		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(target);
	else
	// Target player doesn't have pvp flag set
	{
		// check about wars
		if (targetPlayer.getClan() != null && getClan() != null
				&& getClan().isAtWarWith(targetPlayer.getClanId())
				&& targetPlayer.getClan().isAtWarWith(getClanId())
				&& targetPlayer.getPledgeType() != L2Clan.SUBUNIT_ACADEMY
				&& getPledgeType() != L2Clan.SUBUNIT_ACADEMY)
		{
			// 'Both way war' -> 'PvP Kill'
			increasePvpKills(target);
			return;
		}

           // 'No war' or 'One way war' -> 'Normal PK'
		if (targetPlayer.getKarma() > 0)                                        // Target player has karma
		{
			if (Config.KARMA_AWARD_PK_KILL)
                   increasePvpKills(target);
		}
		else if (targetPlayer.getPvpFlag() == 0)                                                                    // Target player doesn't have karma
		{
			increasePkKillsAndKarma(target);
			//Unequip adventurer items
			checkItemRestriction();
		}
	}

 

You have to add a code to say "hiho, i'm in a faction server, all those checks are useless and make my code buggy". For that we will use a variable, like that you can ON/OFF the system. This variable seems to be already used by your faction engine, on configs .txt part.

 

The code I wroten must be taken between that :

 

if (!Config.ENABLE_FACTION_ENGINE)
{
     code I linked
}
else
    increasePvpKills(target);

 

What it does exactly ? It bypasses all checks if the variable is set to "True", and go directly to the "increasePvpKills" method, which supposed to add you 1 pvpkill and do your abracadabra system.

 

Don't forget to remove the uselesss code you added in "increasePkKillsAndKarma". It's not needed for your faction system, except for normal players.

Guest
This topic is now closed to further replies.


  • Posts

    • If it is AI-generated, you used a really shit model. Even AI wouldn't be able to generate obvious errors like the badge misalignment.   I do find it funny, however, that out of everyone to accuse you, Splicho, who used AI to fully generate this https://nimeracp.com/, is the one to talk.
    • You’re free to dislike the design, that’s subjective and totally fine. But calling everything you personally don’t like “AI generated” is not really an argument 😄 The funny part is that the layout constraints you’re criticizing are actually intentional design decisions for toplist platforms — ads, rankings, visibility blocks, sponsor placements, and high information density. This isn’t a portfolio landing page or a SaaS dashboard where you can leave half the screen empty for aesthetics. Also, AI-generated UIs usually look generic, over-animated, inconsistent, and impractical for real long-term usage. Our platform has been evolving for years based on actual user behavior, server owner needs, CTR optimization, and functionality requirements. You may not like the visual style, and that’s okay. But confusing “I don’t like this design” with “this was made by AI” just shows you’re judging emotionally instead of technically. Anyway, appreciate the feedback. Good luck to you too 🙂
    • You don't get it what I am trying to say. Your UI is simply ai generated, entirely. The current theme what you are using. I am not talking about the backend. It's just my personal preference/opinion that I think your UI looks really bad because it's AI generated and whoever worked on it didn't give a single fuck about how it looks, or at least take the time to rework the UI that AI generated yourself.   AI is just bad with design and your website is a proof of concept once again. But how would someone know what looks good and what does not look good if one doesn't have the design skills or knowledge.   Whatever, good luck with your site.
    • Of course AI can generate Bootstrap now, but back in 2021 nobody was building sites with Codex like today 😄 And yes, the site looks different because we kept updating the UI over the years — colors, cards, spacing, dark mode, mobile tweaks, animations, badges, and layout refinements. That’s called maintenance and redesign iterations, not rebuilding the whole backend from scratch. The core architecture is still the same Bootstrap-based structure we’ve used for years because toplist websites need specific blocks and banner placements to work properly. You can literally compare both screenshots and see the evolution. One is the older 2021 version, the other is the current polished version after years of manual improvements. No AI magic involved, just hand-coded work and years of updates 🙂 And honestly, if someone thinks every Bootstrap website is AI-generated now, then half the internet was apparently built by ChatGPT before ChatGPT even existed 😂
    • Hello,   I am looking for clean patch for patch Classic 3.5 Tales Untold NA P 286. Thanks in advance!
  • 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..