Jump to content
  • 0

[HELP] me java codes


Question

Posted

Geia sas.!

Exw ena problem me ta java codes. Exw parei merika codes ke dn mporw na ta balw. ;/

prospa8w na balw auto to code alla dn mporw na brw to java/config/l2jmods.properties

(Exw L2J High Five Pack)

Index: java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java	(revision 4420)
+++ java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java	(working copy)
@@ -253,7 +253,7 @@
			return false;
		if (item.isWear())
			return false;
-		if (item.isPvp())
+		if (item.isPvp() && !Config.ALT_ALLOW_REFINE_PVP_ITEM)
			return false;
		if (item.getItem().getCrystalType() < L2Item.CRYSTAL_C)
			return false;
Index: java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java	(revision 4420)
+++ java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java	(working copy)
@@ -67,7 +67,7 @@
			return;
		}

-		if (item.isPvp())
+		if (item.isPvp() && !Config.ALT_ALLOW_REFINE_PVP_ITEM)
		{
			activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_IS_NOT_A_SUITABLE_ITEM));
			return;

Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java	(revision 4425)
+++ java/com/l2jserver/Config.java	(working copy)
@@ -715,6 +715,7 @@
	public static int L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP;
	public static int L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP;
	public static TIntIntHashMap L2JMOD_DUALBOX_CHECK_WHITELIST;
+	public static boolean ALT_ALLOW_REFINE_PVP_ITEM;

	//--------------------------------------------------
	// NPC Settings
@@ -2449,6 +2450,7 @@
							}
						}
					}
+					ALT_ALLOW_REFINE_PVP_ITEM = Boolean.parseBoolean(L2JModSettings.getProperty("AltAllowRefinePVPItem", "False"));
				}
				catch (Exception e)
				{
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4425)
+++ java/config/l2jmods.properties	(working copy)
@@ -418,3 +418,11 @@
# will be 1+2=3. Use 0 or negative value for unlimited number of connections.
# Default: 127.0.0.1,0 (no limits from localhost)
DualboxCheckWhitelist = 127.0.0.1,0
+
+# ---------------------------------------------------------------------------
+# Items
+# ---------------------------------------------------------------------------
+
+# Allows players to refine (augment) PVP items.
+# Default: False
+AltAllowRefinePVPItem = True
\ No newline at end of file

Exw prospa8isei na to brw alla dn mporw me tpt.

sas Dixnw merikes Eikones mpas ke mporesete na me boi8isete... ;/

clip00060002.jpg

clip00070001.jpg

clip000900011.jpg

width=349 height=768http://img696.imageshack.us/img696/5213/clip00090001.jpg[/img]

Mpas ke exw allo eclipse ke mou dixnei allios to pack?

 

15 answers to this question

Recommended Posts

  • 0
Posted

prwta ap'ola an deis exi ena kokkino X pou simeni oti kati paei la8os , 2n mporis na to valis kai alou

+					ALT_ALLOW_REFINE_PVP_ITEM = Boolean.parseBoolean(L2JModSettings.getProperty("AltAllowRefinePVPItem", "False"));

apla alazontas to L2JModSettings se oti alo 8es :)

  • 0
Posted

dn se epiasa... :P

1) sou leei build failed epidi exi ena kokkino X sto java , des

 http://img443.imageshack.us/img443/4209/clip00070001.jpg

2) mporis na to pas se alo arxio , oxi mono sto l2jmods.properties alazontas to apo dw

+ ALT_ALLOW_REFINE_PVP_ITEM = Boolean.parseBoolean(L2JModSettings.getProperty("AltAllowRefinePVPItem", "False"));

  • 0
Posted

1)pws mporw na bgalw auto to x?

2)pou allou mporw na to balw?

1)poli apla exis kati la8os sto code sou

2)se oti alo property exis...

  • 0
Posted

paw na balw auto ke pali x :@

ALT_ALLOW_REFINE_PVP_ITEM = Boolean.parseBoolean(communityServerSettings.getProperty("AltAllowRefinePVPItem", "False"));

aaa xriazete ke to java/config/l2jmods.properties pou 8a to brw?

  • 0
Posted

re stoke pws 8a perasw auto

--- java/config/l2jmods.properties	(revision 4425)
+++ java/config/l2jmods.properties	(working copy)
@@ -418,3 +418,11 @@
# will be 1+2=3. Use 0 or negative value for unlimited number of connections.
# Default: 127.0.0.1,0 (no limits from localhost)
DualboxCheckWhitelist = 127.0.0.1,0
+
+# ---------------------------------------------------------------------------
+# Items
+# ---------------------------------------------------------------------------
+
+# Allows players to refine (augment) PVP items.
+# Default: False
+AltAllowRefinePVPItem = True
\ No newline at end of file

  • 0
Posted

1) sou leei build failed epidi exi ena kokkino X sto java , des

 http://img443.imageshack.us/img443/4209/clip00070001.jpg

2) mporis na to pas se alo arxio , oxi mono sto l2jmods.properties alazontas to apo dw

+ ALT_ALLOW_REFINE_PVP_ITEM = Boolean.parseBoolean(L2JModSettings.getProperty("AltAllowRefinePVPItem", "False"));

zwo diavase

  • 0
Posted

Όπου έχεις αυτό:

	if (item.isPvp() && !Config.ALT_ALLOW_REFINE_PVP_ITEM)
			return false;

Η αυτό:

	if (item.isPvp()
			return false;

 

Σβήσε τα τελείως (Δηλαδή σβήσε τελείως αυτές τις γραμμές). Αν δεν κατάλαβες τι εννοώ τότε δεν μπορώ να κάνω κάτι άλλο.

Είναι η ευκολότερη λύση.

 

  • 0
Posted

ne dn to exei pws 8a to perasw?

re file sou eksigo oti dn xriazete na vris afto to arxio , to pernas se alo , px sto other.properties

 

sto gameserver config den exi katholou afto  l2jmods.properties

exw apantisi idi

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

    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Basic anti-bot detection, which proved quite effective—we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
    • ACTUALIZATION > SAMURAI CROW PRICE. 500$ (P542) 300$ (P520) 200$ (P509)  
  • 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..

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