Jump to content

Recommended Posts

Posted
7 minutes ago, MaDu7zU said:

l2jAcis 

Bug: When someone kills another players and will survive...he will deflag after 30 seconds or so.

Just need to check that player isinside this zone updatepvpflag

Posted (edited)
49 minutes ago, Reborn12 said:

Just need to check that player isinside this zone updatepvpflag

 

	@Override
	protected void onEnter(L2Character character)
	{
		character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
		character.setInsideZone(ZoneId.MULTI_FUNCTION, true);
		
		if (character instanceof L2PcInstance)
		{
			L2PcInstance activeChar = ((L2PcInstance) character);
			if (classes != null && classes.contains(""+activeChar.getClassId().getId()))
			{
				activeChar.teleToLocation(147448, 26850, -2200, 0);
				activeChar.sendMessage("Your class is not allowed in the flag zone.");
				return;
			}
			
			for (L2ItemInstance o : activeChar.getInventory()._items)
			{
				if (o.isEquipable() && o.isEquipped() && !checkItem(o))
				{
					int slot = activeChar.getInventory().getSlotFromItem(o);
					activeChar.getInventory().unEquipItemInBodySlotAndRecord(slot);
					activeChar.sendMessage(o.getItemName()+ " unequiped because is not allowed inside this zone.");
				}
			}
			
			if (give_noblesse)
				noblesse.getEffects(activeChar, activeChar);
			if (pvp_enabled)
				activeChar.updatePvPFlag(1);
			
			activeChar.sendMessage("You entered in a flag zone.");
			clear(activeChar);
		}
	}

Here?

 

 

The only line with isInsideZone is this one:

	public static void givereward(L2PcInstance player)
	{
		if (player.isInsideZone(ZoneId.MULTI_FUNCTION))
		{
			for (int[] reward : rewards)
			{
				PcInventory inv = player.getInventory();
				inv.addItem("Custom Reward", reward[0], reward[1], player,  player);
			}
		}
	}

Should i put here like this:

	public static void givereward(L2PcInstance player)
	{
		if (player.isInsideZone(ZoneId.MULTI_FUNCTION))
		{
			for (int[] reward : rewards)
			{
				PcInventory inv = player.getInventory();
				inv.addItem("Custom Reward", reward[0], reward[1], player,  player);
			}
			if (pvp_enabled)
				activeChar.updatePvPFlag(1);		
		}
	}

 

 

Found 1 more bug. When some1 hits another player and enter the zone already flagged. In 30 seconds its deflagged

Edited by MaDu7zU
  • 1 month later...
Posted (edited)

Hello Guys, the diff patch doesn't work for me in L2jFrozen, i've setted it up in core and in config/ini file, i haven't 0 errors in Eclipse and seem to doesn't work nothing from it why? I have not errors in GameServer console.

Here is my MultiFunctionZone.ini ( i've tried the same and as MultiFunctionZone.properties)
My PvP zone is Primeval Isle!

 

# ---------------------------------------------------------------------------
# MultiFunctionZone - custom addon for your server
# ---------------------------------------------------------------------------
# This option will turn on PvP flag to all people when entering to the zone
EnablePvP = True

# If set to false, zone will be no-restart zone
NoRestartZone = True

# If set to false, zone will be no-logout zone
NoLogoutZone = True

# If set to false, zone will be no-store zone
NoStoreZone = True

# Give noblesse after revive?
ReviveNoblesse = True

# Heal after revive?
ReviveHeal = True

# Delay, in seconds, to wait before revive
# 0 to disable
ReviveDelay = 0

# Set the spawn points where players will be teleported on revive, if enabled
# example:10711,-24437,-3643;9180,-24096,-3754;7911,-22713,-3685;6990,-22554,-3442;4892,-23466,-3745
SpawnLoc = 10711,-24437,-3643;9180,-24096,-3754;7911,-22713,-3685;6990,-22554,-3442;4892,-23466,-3745

# Random respawn radius
RespawnRadius = 900

# If set to true, players will take noblesse blessing when entering
GiveNoblesse = True

# Remove buffs when entering to the zone
RemoveBuffs = False

# Remove pets when entering to the zone
RemovePets = False

# Special rewards when hunting inside this zone
# example: 9999,1
Rewards = 9999,1

# List of Items(id's) that won't be usable inside this area and also will be unequiped when entering
# (armor, weapons, scrolls, potions, etc), example: 728,7575, 6383, 1538
Items = 

# List of Grades that won't be usable inside this area and also will be unequiped when entering
# example: D,C,B,A,S,S80,S84
Grades = 

# Items with this enchant or more won't be usable inside this area and also will be unequiped when entering
# 0 to disable
Enchant = 0

# Players with one of that classes won't be able to enter to the zone
# example: 93,85,12
Classes = 


P.S. Should i change something and in zone.xml because i use it as it is provided from the diff patch, i didn't changed nothing there.
 

        <zone id="16385" name="Custom" type="MultiFunctionZone" shape="NPoly" minZ="-15000" maxZ="-10000">
             <node X="130000" Y="160000" />
             <node X="130000" Y="130000" />
             <node X="160000" Y="130000" />
             <node X="160000" Y="160000" />
        </zone>


Thank you in advance guys!

King Regards
 

Edited by Rydar
  • 1 month later...
Posted (edited)

another way to convert this into INT i get error 
 

	       public static boolean checkItem (ItemInstance item)
       {
                   int o = item.getItem().getCrystalType();    <- on this line after = 


l2jacis

Edited by Xenokage
Posted
2 hours ago, Xenokage said:

another way to convert this into INT i get error 
 


	       public static boolean checkItem (ItemInstance item)
       {
                   int o = item.getItem().getCrystalType();    <- on this line after = 


l2jacis

i dont know why you need this, but its logical error since you trying to convert enum to int.

item.getItem().getCrystalType().ordinal();

 

Posted (edited)

i dont know why you need this, but its logical error since you trying to convert enum to int.


item.getItem().getCrystalType().ordinal();

 

thank you

Edited by Xenokage
  • 6 months later...
Posted (edited)

Hello, acis 370 rev, maybe anyone can help me fix? 

 

    [javac] C:\Users\Gezis\aCis_gameserver\java\net\sf\l2j\gameserver\model\zone\type\L2MultiFunctionZone.java:125: error: cannot find symbol
    [javac] 			ThreadPool.getInstance().scheduleGeneral(new Runnable()
    [javac] 			          ^
    [javac]   symbol:   method getInstance()
    [javac]   location: class ThreadPool
    [javac] 1 error

BUILD FAILED

Reborn12 (helping me) Thanks to him.

One more question, how to add button to village or revive? Or only to village button if revive function on, because if need go to town it can't because always flag and pvp.

 

Edited by Gezis
  • 1 month later...
Posted (edited)

i have 2 problem in my server and i dont know how to fix .

 

one problem is when 1 player hit  another player and wait for 20 sec . is unflaged .

 

and 2 problem is i need to come out ( to village button)

 

i have look post here but i cant fix pliz help me . 

 

l2jacis pack  interlude 

Edited by xrhstos1994
  • 5 months later...
  • 2 months later...
Posted

i have l2jfrozen  my mind is gonna explode :D i have adpat everything the zone is working but the weird think is and my problem if i use the zone 1632 that someone suggested i dont get pvp, but if i use the normal zone the  16385 iget pvp but my char speed goes to 66 only when is in the zone i dont get that what i have done wrong? so if i use other zone ids my pseed is fine dont get pvp i am confused 

  • 2 months later...
Posted
On 9/12/2012 at 2:53 PM, ^Wyatt said:

Thx all.

 

First post updated. Added patch for l2jfrozen interlude.

hello i have many errors and i would like only the auto-flag code ..if u can help me

  • 1 year later...
  • 4 months later...
  • 2 weeks 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

    • With EA Sports FC 27 officially announced, many players are hoping to get their hands on a coveted Closed Beta code. The FC 27 beta gives fans an early opportunity to test new gameplay features, modes, and updates before the game's full release. Ultimate Team is expected to be one of the most anticipated modes, giving players an early look at the in-game economy and how valuable FIFA 27 coins may be at launch. While there's no guaranteed way to receive a beta invitation, there are several steps you can take to maximize your chances. These methods have helped many players receive beta codes in previous years, and they're still the best options heading into FC 27.     1. Enable EA Email Communications The first and most important step is to make sure EA can actually contact you. Log in to your EA account and head to Communication Preferences. Here, you'll find options related to emails about products, events, and promotions. Make sure to: • Turn on promotional emails. • Set email frequency to "Any Time" instead of monthly updates. • Save your changes. EA typically sends Closed Beta invitations via email, so if these settings are disabled, you could miss your chance entirely.   2. Add FC Games to Your Favorite Titles Under your EA account preferences, you'll find a section for favorite games. Add any football-related EA titles you play, including: • EA Sports FC 26 • EA Sports FC 27 (if available) • EA Play • Other EA football games This helps EA understand your interests and may improve your chances of being selected for football-related tests.   3. Select Your Preferred Platforms Another useful step is updating your preferred gaming platforms. Choose all the systems you actively use, such as: • PlayStation 5 • Xbox Series X|S • PC • Nintendo Switch 2 There's no official confirmation that selecting more platforms increases your odds, but it doesn't hurt to ensure EA knows where you can participate in the beta. Just remember: if you don't own a particular console, there's little point in selecting it.   4. Verify Your Email Address Double-check that the email address associated with your EA account is verified. An unverified email could prevent important messages from reaching you, including beta invitations. It only takes a few seconds to confirm, and it's one of the easiest things to overlook.   5. Link Your Gaming Accounts Make sure your EA account is connected to the platforms you play on. Common account links include: • PlayStation Network • Xbox Network • Steam • Epic Games • Nintendo Account Having your accounts linked ensures your profile is fully set up and ready if you're selected for the FC 27 beta.   6. Consider Joining EA's Playtesting Program If you're interested in testing games beyond FC 27, consider signing up for EA's playtesting program. EA occasionally invites players to participate in early tests for upcoming titles. While joining doesn't guarantee you'll receive an FC 27 beta code, it can improve your chances of being considered for future playtests. Players selected for EA playtests are usually notified via email, so keeping your communication settings enabled remains essential.     Is There a Guaranteed Way to Get an FC 27 Beta Code? Unfortunately, no. EA selects participants based on a variety of factors, and luck still plays a significant role. Even players who have received beta codes in previous years aren't guaranteed to get one again. That said, following the steps above gives you the best possible chance: 1. Enable EA email communications. 2. Set email frequency to "Any Time." 3. Add FC titles to your favorite games. 4. Select your active gaming platforms. 5. Verify your email address. 6. Link your platform accounts. 7. Join EA's playtesting program.   When Does the EA Sports FC 27 Closed Beta Begin? If selected, players may receive their invitations around July 31, so keep an eye on your inbox and check your spam folder regularly. The Closed Beta is scheduled to kick off on August 5 and will remain available until August 25. This gives invited participants nearly three weeks to explore the game and provide feedback to EA. Compared to past beta tests, this is a relatively lengthy testing period, suggesting that EA is placing a strong emphasis on collecting player impressions and identifying potential issues ahead of the official release. Below are the launch and closing times for major regions around the world: Region / Time Zone EA FC 27 Closed Beta Start Date & Times EA FC 27 Closed Beta End Date & Times Pacific Time (PT) 10:00 AM—August 5 10:00 AM—August 25 Central Time (CT) 12:00 PM—August 5 12:00 PM—August 25 Eastern Time (ET) 1:00 PM—August 5 1:00 PM—August 25 Brasilia Time (BRT) 2:00 PM—August 5 2:00 PM—August 25 British Summer Time (BST) 6:00 PM—August 5 6:00 PM—August 25 Central European Summer Time (CEST) 7:00 PM—August 5 7:00 PM—August 25 China Standard Time (CST) 1:00 AM—August 6 1:00 AM—August 26 Korean Standard Time (KST) 2:00 AM—August 6 2:00 AM—August 26 Japan Standard Time (JST) 2:00 AM—August 6 2:00 AM—August 26 Australian Eastern Time (AET) 3:00 AM—August 6 3:00 AM—August 26 New Zealand Standard Time (NZST) 5:00 AM—August 6 5:00 AM—August 26   Which Modes Are Included in the Closed Beta? EA is using the FC 27 Closed Beta to evaluate several of the game's most important experiences before launch. Participants may gain access to popular modes such as Ultimate Team, Career Mode, and Clubs, as well as The Grounds, a brand-new addition making its debut in FC 27. Because multiple game modes are being tested simultaneously, the extended beta period gives players ample time to try different features and report their findings.   Final Thoughts Getting an EA Sports FC 27 Closed Beta code isn't guaranteed, but spending a few minutes optimizing your EA account settings can make a big difference. Every year, thousands of players receive invitations, and many of them simply have their accounts properly configured and ready to go. If you're lucky enough to get a code, you'll be among the first players to experience FC 27's new gameplay changes and features before launch. Until then, keep an eye on your inbox, stay patient, and good luck—you might be kicking off your FC 27 journey sooner than expected.
    • If you need in L2off i can hook you up! many people know me here and the work i offer. Live example https://l2exalta.org
    • Almost 16 years, you never know when a random Korean finds this topic and shares it.
    • Update: Version 3.1.2: * Improved compaction: deleting even a few textures now always reduces the file (previously small deletions could still slightly grow some packages, such as fonts); Version 3.1.1: * Deleting textures now actually shrinks the package: on save it is automatically compacted, reclaiming the space of the deleted textures (format and encryption preserved); Version 3.1.0: * La2Tools now checks for updates on startup and lets you know when a newer version is available on the site; Version 3.0.9: * Fixed textures that appeared blank in some clients (their object carries an embedded shader the reader mis-parsed) — they now decode and display correctly; * ShaderCode is now editable: Texture Properties → Material → ShaderCode shows the texture's real HLSL shader (was a fixed placeholder before); edit it and Apply — works across client formats (Interlude-era through Essence 542); Version 3.0.8: * BMP now imports as a native format, like UnrealEd: 8-bit BMP becomes a P8 (paletted) texture with a real Engine.Palette, 24/32-bit becomes RGBA8, 16-bit becomes G16; * Compress to P8 — adaptive 256-color palette (median-cut quantization); P8 is also selectable as an import "Convert to" target; * Copy / Cut / Paste now works for P8 (paletted) textures; * Non-power-of-two textures are highlighted in red (tiles and table) with a tooltip; new "Fix texture size" menu item pads them to a power of two while keeping the displayed size; * Reads "broken" packages that were tampered to block editors (corrupted size fields) — the client still loads them and now so does La2Tools; * "Repair package" — shown only for a tampered package (its tab is marked red) and restores the corrupted size fields; * Added client license 30 support (reads and imports its textures); * Import dialog now auto-resizes to fit its content; Version 3.0.7: * Import: the file name is now parsed smartly — package.group.name automatically fills the Group and Name fields (the package prefix is ignored); * Import: live name validation with an inline hint and tooltip — OK is blocked until the name is valid (allows - + ' etc., forbids only characters illegal in file names); * Import: textures whose size is not a power of two are now auto-padded for ALL formats (DDS/TGA/BMP too, not only PNG/JPG/GIF) — padded to a power of two with UClamp/VClamp preserving the original display size; * Texture filter now has a clear (×) button; * Light theme: visible Chrome-style tab outlines; Version 3.0.6: * "Save as..." — toolbar button and tab-menu item: save a package under a new name to any folder, choosing the format (Old/New) and Lineage2Ver121 encryption; the tab switches to the saved file; * Tab right-click menu reworked: Save, Save as... and Settings on top; Copy path and Open in Explorer at the bottom; Version 3.0.5: * Animation grouping now follows AnimNext links instead of frame names — chains group correctly with any naming (mixed prefixes, non-sequential or 0-/1-based numbers); * GIF import: animation parameters (frame rate) and TotalFrameNum are now written only to the first frame, the rest keep just the AnimNext link — matches the game's own format; same fix applied to "Create animation"; Version 3.0.4: * Clipboard <-> Explorer: Ctrl+C in the browser then Ctrl+V in Explorer pastes the textures as files; copy files in Explorer then Ctrl+V in the browser imports them; * Rename a package right from Package settings (handles Lineage2Ver121 re-keying); * Hotkeys: F1 (About), F2 (rename), F5 (reload from disk, asks if unsaved), Delete, Enter (Properties), Ctrl+W (close tab); * The application icon now appears in the title bar of every dialog and sub-window; * Fixed flipped preview when importing TGA files;  Download (Installer) |  Download (Portable)
    • Hello! I am creating a new L2 Editor version with most bugs fixed and new features added. PM me for more info!
  • 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..