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
  On 2/9/2012 at 3:37 PM, DeViLoS said:

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
  On 2/9/2012 at 3:41 PM, DeViLoS said:

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
  On 2/9/2012 at 3:40 PM, B00D said:

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
  On 2/12/2012 at 5:12 PM, DeViLoS said:

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

 

  Quote

sto gameserver config den exi katholou afto  l2jmods.properties

exw apantisi idi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Running ads or working with voice verification? We provide the essential tools for arbitrage, marketing, e-commerce, and anonymous operations! Ready-to-use Google Ads and Google Voice accounts — verified, warmed up, with logs and full access. Perfect for: ✔ Media buyers launching campaigns via Google ✔ Agencies and PPC specialists ✔ Businesses needing fast and safe ad launches without bans ✔ Users working with Google Voice (2nd-step verification, US numbers, etc.) ✔ Google Ads: accounts with budgets from €10 to $1000+, with or without verification ✔ All come with 2FA, backup email, cookies, and UserAgent Promo code: GOOGLE10 (10% discount) Payment: bank cards · crypto · other popular methods How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Assortment: ➡Google Voice Accounts (GMAIL US NEW) | Year: 2024 (random) | Phone Verified | Price from: $9.00 ➡Google Voice Accounts (GMAIL US OLD) | Year: 2006–2018 | Phone Verified | Price from: $14.00 ➡Google Ads Account USA/EUROPE (UK, Germany, France, etc.) | Manually farmed 7+ days | Created ad account | Includes 2FA, backup codes, backup email, UserAgent, Cookies | Price from: $13.00 ➡Google Ads Account USA/EUROPE | VERIFICATION COMPLETED – €10 BILL | Manually farmed 7+ days | Ad created | Includes 2FA, backup email, UserAgent, Cookies | Price from: $55.00 ➡Google Ads Account EUROPE/USA with ad campaigns and spend $100/$500/$1000+ | Verification not completed | Full access & setup | Price from: $200.00 ➡Google Ads Account EUROPE/USA with ad campaigns and spend $100/$500/$1000+ | Verification completed | Full access & setup | Price from: $400.00 Regular buyers get extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current partners: https://socnet.bgng.io/partners ) — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
    • Running ads or working with voice verification? We provide the essential tools for arbitrage, marketing, e-commerce, and anonymous operations! Ready-to-use Google Ads and Google Voice accounts — verified, warmed up, with logs and full access. Perfect for: ✔ Media buyers launching campaigns via Google ✔ Agencies and PPC specialists ✔ Businesses needing fast and safe ad launches without bans ✔ Users working with Google Voice (2nd-step verification, US numbers, etc.) ✔ Google Ads: accounts with budgets from €10 to $1000+, with or without verification ✔ All come with 2FA, backup email, cookies, and UserAgent Promo code: GOOGLE10 (10% discount) Payment: bank cards · crypto · other popular methods How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Assortment: ➡Google Voice Accounts (GMAIL US NEW) | Year: 2024 (random) | Phone Verified | Price from: $9.00 ➡Google Voice Accounts (GMAIL US OLD) | Year: 2006–2018 | Phone Verified | Price from: $14.00 ➡Google Ads Account USA/EUROPE (UK, Germany, France, etc.) | Manually farmed 7+ days | Created ad account | Includes 2FA, backup codes, backup email, UserAgent, Cookies | Price from: $13.00 ➡Google Ads Account USA/EUROPE | VERIFICATION COMPLETED – €10 BILL | Manually farmed 7+ days | Ad created | Includes 2FA, backup email, UserAgent, Cookies | Price from: $55.00 ➡Google Ads Account EUROPE/USA with ad campaigns and spend $100/$500/$1000+ | Verification not completed | Full access & setup | Price from: $200.00 ➡Google Ads Account EUROPE/USA with ad campaigns and spend $100/$500/$1000+ | Verification completed | Full access & setup | Price from: $400.00 Regular buyers get extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current partners: https://socnet.bgng.io/partners ) — Become a supplier SocNet — Digital Goods & Premium Subscriptions 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