Jump to content
  • 0

auto-flag are


Question

Posted (edited)

Γεια σας παιδια .χρειαζομαι την βοηθεια σας

εχω βαλει το type: "arena" αλλα δεν γινονται flag οι chars.. εχω αυτον τον code: 

        <zone id="99991" type="Arena" shape="NPoly" minZ="-3035" maxZ="-3025">
                <stat name='name' val='halisha'/>
                <stat name='spawnX' val='81236'/>
                <stat name='spawnY' val='148638'/>
                <stat name='spawnZ' val='-3469'/>.

Ο οποιος ειναι το halisha's  room ..οταν κανω teleport μου βγαζει το enter combat zone ..και λειτουργει κανονικα δλδ μπορεις να hit χωρις"ctrl"

αλλα οι  chars δεν γινονται  flagged και τα pvp δν μετρανε καν ουτε to custom reward που εχω βαλει το δινει.

ξοδεψα πανω απο 5ωρες σε guides και τπτ δν με βοηθησε  .οποτε αποφασισα να απευθυνθω σε εσας .στο 

type="arena" <~εδω το εχω αλλαξει με FlagZone ,BossZone ,ChaoticZone και κανενα απ αυτα δν λειτουργει.

επισης εβαλα και αυτο <stat name ='Flying' val='true'/> και παλι τπτ.ΒΟΗΘΕΙΑ!

 

Pack:l2jfrozen rev 1132

Edited by scraw

2 answers to this question

Recommended Posts

  • 0
Posted
package com.l2j.gameserver.model.zone.type;

import com.l2j.gameserver.datatables.csv.MapRegionTable;
import com.l2j.gameserver.model.L2Character;
import com.l2j.gameserver.model.actor.instance.L2PcInstance;
import com.l2j.gameserver.model.zone.L2ZoneType;
import com.l2j.gameserver.network.SystemMessageId;
import com.l2j.gameserver.network.serverpackets.SystemMessage;

/**
 * 
 * @author LastWarrior
 * @Version:1.1.7
 *
 */

public class L2PvPZone extends L2ZoneType
{
	private L2PcInstance activeChar;

	public L2PvPZone(int id)
	{
		super(id);
	}
	        	
	protected void onEnter(L2Character character)
	{
		if (character instanceof L2PcInstance)
		{
			if (!character.isInsideZone(L2Character.ZONE_FLAG_PVP))
				((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.ENTERED_COMBAT_ZONE));
		}
		character.setInsideZone(L2Character.ZONE_FLAG_PVP, true);
		character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true);
		activeChar.decayMe();
		activeChar.spawnMe();
        activeChar.isNoblesseBlessed();
		activeChar.setPvpFlag(1);
		activeChar.setTitle("Lets Fight");
		activeChar.broadcastUserInfo();
	}

	protected void onExit(L2Character character)
	{
		character.setInsideZone(L2Character.ZONE_FLAG_PVP, false);
		character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false);
		activeChar.decayMe();
		activeChar.spawnMe();
		activeChar.stopNoblesseBlessing(null);
		activeChar.setPvpFlag(0);
		activeChar.setTitle("");
		activeChar.broadcastUserInfo();
		
		if (character instanceof L2PcInstance)
		{
			if (!character.isInsideZone(L2Character.ZONE_FLAG_PVP))
				((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE));
		}
	}

	public void onDieInside(L2Character character) 
	{
		MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
	}

	public void onReviveInside(L2Character character) 
	{
		//nothing 
	}
}
/*
<zone id="11037" type="ZONE_FLAG_PVP" shape="NPoly" minZ="-3600" maxZ="-3400">
		<stat name="isPeaceZone" val="false" />
		<spawn X="x" Y="y5" Z="z" /> 
</zone>
On X,Y,Z is loc
*Change Location from data/zone/
*/

Εγω ειχα κανει αυτο καποτε δεν ξερω αν δουλευει σε σενα. Θα το βρεις com.l2jforzen.gameserver.model.zone. αν θυμαμαι καλα

 

  • 0
Posted

θα ήταν καλύτερο να κάνεις γύρω απο το Boss σε 2000 απόσταση κύκλου να γίνονται flag είναι ποιο αποτελεσματικό 

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

    • Damn there are still people that value Lineage! Great job Elfo as always!
    • Payment Methods Credit/Debit Card, PayPal, Wise, Payoneer, Binance Pay, Bybit, Crypto, and other supported payment options depending on availability. Delivery Time / TAT General delivery time: Instants to 24 hours Depended on Products. Some products may take longer depending on stock, account eligibility, product type, payment confirmation, or activation requirements. Refund & Replacement Policy If we cannot deliver the product within the confirmed delivery time and you do not want to wait, you are eligible for a refund. If the account, gift link, gift code, or activation does not work at first login/activation, please contact us within 24 hours with screen recording proof before start purchasing. If the product is successfully delivered and activated, refund is not available unless a specific warranty was mentioned for that product. Warranty period depends on the product type. Some products may include replacement support for a limited period. Please ask before ordering if warranty is important. No refund/replacement is available if the buyer shares account details, changes recovery/security settings without asking, uses VPN/proxy in a risky way, violates platform rules, fails to provide proof, or changes their mind after successful use. If a platform changes its policy, eligibility, country availability, or subscription system after delivery, we will try to help, but we cannot control third-party platform changes. Important Notes Stock may be limited for some products at klouditem. Prices may change depending on market, stock, and product availability. Some services may require your personal email/account for upgrade. Some services are ready-made accounts only. Some products may have country or account eligibility requirements. Please read the product details before ordering. We do not claim to be an official partner of any platform unless clearly stated by the platform itself. Product names and logos belong to their respective owners. Review Copies Review copies are not always available. If we open a review copy round, we will announce it in this thread and select qualified members based on account history, activity, and availability. Please do not request review copies unless we have announced them. FAQ Q: Do you deliver instantly? A: Delivery is usually Instant to 24 hours, depending on stock and payment confirmation. Q: Can I upgrade my own account? A: Some services support own account upgrade, while others are ready-made account only. Please ask before ordering. Q: Do you provide support after delivery? A: Yes, we provide support for login, activation, and basic setup issues related to the delivered product. Q: Can I check stock before payment? A: Yes, please ask before payment. We will confirm stock and delivery time first. Q: Are prices fixed? A: Some prices are fixed, and some depend on stock/package. Q: What should I do if I face an issue? A: Contact us as soon as possible with clear screenshot or screen recording proof from purchase, and we will check it.   Contact Buy Now: https://klouditem.com Telegram Support: https://t.me/Klouditem
    • https://prnt.sc/MCxO-vS1MHuA how to zoom in? and on every click ad popup.. nonsense.
    • A new template is available: https://tplbox.store/umbroria-html-template    
  • 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..