Jump to content

Question

Posted

απορια για να αλλαξω τις πιθανοτητες να πιανει το bluff πειραζω αυτο ετσι? το θεμα ειναι τι αλλαζω?

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version. This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details. You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.skills.effects;

import com.l2jfrozen.gameserver.model.L2Effect;
import com.l2jfrozen.gameserver.model.actor.instance.L2ArtefactInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2ControlTowerInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2EffectPointInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2FolkInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2SiegeFlagInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2SiegeSummonInstance;
import com.l2jfrozen.gameserver.network.serverpackets.BeginRotation;
import com.l2jfrozen.gameserver.network.serverpackets.StopRotation;
import com.l2jfrozen.gameserver.skills.Env;

/**
 * @author programmos, sword developers Implementation of the Bluff Effect
 */
public class EffectBluff extends L2Effect
{

	public EffectBluff(final Env env, final EffectTemplate template)
	{
		super(env, template);
	}

	@Override
	public EffectType getEffectType()
	{
		return EffectType.BLUFF;
	}

	@Override
	public boolean onActionTime()
	{
		return false;
	}

	/*@Override
	public void onExit()
	{
	    super.onExit();
	}*/

	/** Notify started */

	@Override
	public void onStart()
	{
		if(getEffected().isDead() || getEffected().isAfraid())
			return;

		if(getEffected() instanceof L2FolkInstance || getEffected() instanceof L2ControlTowerInstance || getEffected() instanceof L2ArtefactInstance || getEffected() instanceof L2EffectPointInstance || getEffected() instanceof L2SiegeFlagInstance || getEffected() instanceof L2SiegeSummonInstance)
			return;

		super.onStart();

		// break target
		getEffected().setTarget(null);
		// stop cast
		getEffected().breakCast();
		// stop attacking
		getEffected().breakAttack();
		// stop follow
		getEffected().getAI().stopFollow();
		// stop auto attack
		getEffected().getAI().clientStopAutoAttack();

		getEffected().broadcastPacket(new BeginRotation(getEffected(), getEffected().getHeading(), 1, 65535));
		getEffected().broadcastPacket(new StopRotation(getEffected(), getEffector().getHeading(), 65535));
		getEffected().setHeading(getEffector().getHeading());
		onActionTime();
	}
}

7 answers to this question

Recommended Posts

  • 0
Posted

 

απορια για να αλλαξω τις πιθανοτητες να πιανει το bluff πειραζω αυτο ετσι? το θεμα ειναι τι αλλαζω?

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version. This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details. You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.skills.effects;

import com.l2jfrozen.gameserver.model.L2Effect;
import com.l2jfrozen.gameserver.model.actor.instance.L2ArtefactInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2ControlTowerInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2EffectPointInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2FolkInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2SiegeFlagInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2SiegeSummonInstance;
import com.l2jfrozen.gameserver.network.serverpackets.BeginRotation;
import com.l2jfrozen.gameserver.network.serverpackets.StopRotation;
import com.l2jfrozen.gameserver.skills.Env;

/**
 * @author programmos, sword developers Implementation of the Bluff Effect
 */
public class EffectBluff extends L2Effect
{

	public EffectBluff(final Env env, final EffectTemplate template)
	{
		super(env, template);
	}

	@Override
	public EffectType getEffectType()
	{
		return EffectType.BLUFF;
	}

	@Override
	public boolean onActionTime()
	{
		return false;
	}

	/*@Override
	public void onExit()
	{
	    super.onExit();
	}*/

	/** Notify started */

	@Override
	public void onStart()
	{
		if(getEffected().isDead() || getEffected().isAfraid())
			return;

		if(getEffected() instanceof L2FolkInstance || getEffected() instanceof L2ControlTowerInstance || getEffected() instanceof L2ArtefactInstance || getEffected() instanceof L2EffectPointInstance || getEffected() instanceof L2SiegeFlagInstance || getEffected() instanceof L2SiegeSummonInstance)
			return;

		super.onStart();

		// break target
		getEffected().setTarget(null);
		// stop cast
		getEffected().breakCast();
		// stop attacking
		getEffected().breakAttack();
		// stop follow
		getEffected().getAI().stopFollow();
		// stop auto attack
		getEffected().getAI().clientStopAutoAttack();

		getEffected().broadcastPacket(new BeginRotation(getEffected(), getEffected().getHeading(), 1, 65535));
		getEffected().broadcastPacket(new StopRotation(getEffected(), getEffector().getHeading(), 65535));
		getEffected().setHeading(getEffector().getHeading());
		onActionTime();
	}
}

μέσω xml πήγαινε, στα skills/ 0300-0399.xml ή 4500-4599.xml

δεν θυμάμαι ακριβώς. 

  • 0
Posted

Ψαξε στο αρχειο που ανεφεραν τα παιδια,και 'παιξε' με τις  πιθανοτητες  του skill.

  • 0
Posted

http://prntscr.com/21q19x

 

http://prntscr.com/21q1gz 

γιατι πιανει τοσο μονο :/

προφανώς το μείωσες..

την πιθανότητα του skill την προσαρμόζεις ανάλογα με το πως θες εσύ...

 

	<skill id="358" levels="1" name="Bluff">
		<set name="weaponsAllowed" val="16"/>
		<set name="mpConsume" val="35"/>
		<set name="power" val="40"/>
		<set name="saveVs" val="MEN"/>
		<set name="magicLvl" val="77"/>
		<set name="lvlDepend" val="1"/>
		<set name="target" val="TARGET_ONE"/>
		<set name="skillType" val="STUN"/>
		<set name="operateType" val="OP_ACTIVE"/>
		<set name="castRange" val="40"/>
		<set name="effectRange" val="400"/>
		<set name="reuseDelay" val="30000"/>
		<set name="hitTime" val="1000"/>
		<set name="isDebuff" val="true"/>

αν δεν το έχεις έτσι, τότε κάντο έτσι...είναι η καλύτερη επιλογή για μένα.. 

 

Guest
This topic is now closed to further replies.


  • Posts

    • We will help you pass verification on any service or application you need! Fast, reliable, and secure. Pay for the first verification and get a 10% discount on the second one. Learn more: Go to
    • We will help you pass verification on any service or application you need! Fast, reliable, and secure. Pay for the first verification and get a 10% discount on the second one. Learn more: Go to
    • Long-term rental of virtual numbers — maximum control and convenience. No need to change numbers every time or worry about losing access anymore. Now you can rent virtual numbers for hours, days, or months and use them as permanent ones: — stable SMS reception from popular services — permanent access to accounts — an ideal solution for registration, verification, and repeated logins — one number — full control for the entire rental period This is the choice for those who value reliability, uninterrupted access, and predictable results. Important: even many top SMS services are unable to offer such an exclusive long-term rental option. Go to the SMS service
    • We are looking for partners and account suppliers for cooperation We are open to partnerships with reliable account suppliers for the following dating services: ➡ Tinder ➡ Badoo ➡ Bumble ➡ Hinge ➡ Happn ➡ Meetic ➡ VK Dating We are considering long-term cooperation, stable volumes, and mutually beneficial terms. If you have any offers, we will be glad to discuss the details. Contact us using the details below. ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • We are looking for partners and account suppliers for cooperation We are open to partnerships with reliable account suppliers for the following dating services: ➡ Tinder ➡ Badoo ➡ Bumble ➡ Hinge ➡ Happn ➡ Meetic ➡ VK Dating We are considering long-term cooperation, stable volumes, and mutually beneficial terms. If you have any offers, we will be glad to discuss the details. Contact us using the details below. ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.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