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

    • Hello community, I’d like to share an improved version of the L2smr editor for StaticMeshes, focused on solving some workflow issues I found in the original tool. CreditsThis project is based on the original acmi/L2smr repository https://github.com/acmi/L2smr , created by acmi, and I updated it to Java 17 with some additional features. Issues in the original L2smr Too many windows: each StaticMesh opened in a new one → cluttered desktop. No search: navigating through hundreds of StaticMeshActors was slow and tedious. Added improvements Flexible views Single Window Mode: reuse one window instead of opening new ones. Multiple Window Mode: still available for those who prefer having several views open simultaneously. Real-time Search Field Instant filtering as you type. Case-insensitive search. “Reset” button to quickly clear the search.     Installation and Execution: Clone the repository: git clone https://github.com/Jeep12/l2smr.git cd l2smr        2.Build the project:   ./gradlew build        3. Run the application:     ./run.bat      Or simply double-click on run.bat.     The run.bat script automatically extracts JavaFX from the included javafx-17.0.2.zip file in the javafx/ directory, sets up the required libraries, and launches the application. You don’t    need to install JavaFX separately.      Repository: https://github.com/Jeep12/l2smr     Maybe these features already existed in another version or fork, and they might not be very big changes, but since I didn’t know about them and found them necessary, I decided to          implement them myself and wanted to share them.      
    • no....Mobius L2Clientdat and L2FileEditor can do that...but still cant works with TaiWanese Grand Crusade ,especially Armorgrp.dat and Armorgrp-Classic.dat
    • L2GOLD - Halcyon x45 Project Classic Interlude   C6 - Classic Interlude: Protocol 110     Is a complete copy of L2Gold in Classic [110 Protocol] with L2OFF files.   Fully L2Gold Features - Daily Quest - Daily Mining Quest - Ancient Weapons -Refine System  -Rebirth System -Fully configurable everything you want -Gold stats/Gold skills/Gold items working 100% -Zones 100% alike  -Unique donations system (npc or voicedcommand .donate) - On Enchant success announcement ( if +16 for weapon, 8 for armor , 7 for jewel) - Announce of Castle Lord - Announce of Hero  - Olympiad Max A grade - Olympiad Buffs on matches changed to Gold Alike - Working fully Dreadbane   - AI Mods: Static Time for RB   Automated Events: Squash Watermelon RB Event High rate  (those are fully automated)   Server is running a Test Server: Online to anyone can test it.   Game Client: https://www.mediafire.com/file/1d8xe18rvgi04lx/L2_Classic_Interlude_Client_V2.rar/file   Game Patch: https://www.mediafire.com/file/3z4b8ezy93h2z1g/L2Halcyon+Gold+Patch.rar/file   GM Accounts: ID: root pass root [ accounts go from  root1 until root20 ]   Regular Accounts Registrations: http://84.247.164.27/?page=register   Some Screenshots: https://imgur.com/a/o7TxzTN   Contact me here via PM (only serious buyers).    Price of the product: Fully Server Pack + Source ( 250 Euros )
    • ✨ A Service with Vibes  Vibe SMS ✨   Vibe SMS is not just a platform for working with numbers. We’ve built it to be simple, convenient, and stress-free, so your tasks get done without hassle. We value real communication: we listen to your ideas, provide support, and make sure everyone feels calm and confident. With us, you’re not just a client  you’re part of a space built on trust, support, and a human touch. Vibe SMS is a place where people matter and where we create an atmosphere you’ll want to stay in.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
  • 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