Jump to content

Question

Posted

pws mporw na valw otan den exoun target oi players na kanoun ta skills epanw tous... Diladi otan enas Bishop den exei kanena target na kanei ta heal epanw tou.

 

Ligi voi8ia paidia. Eimai Newbie.  :-\

Recommended Posts

  • 0
Posted

pws mporw na valw otan den exoun target oi players na kanoun ta skills epanw tous... Diladi otan enas Bishop den exei kanena target na kanei ta heal epanw tou.

 

Ligi voi8ia paidia. Eimai Newbie.  :-\

 

Νομίζω κάτι με αυτό γίνεται <set name="target" val="TARGET_SELF"/> δοκίμασε κάποιες εκδοχές !!

  • 0
Posted

Νομίζω κάτι με αυτό γίνεται <set name="target" val="TARGET_SELF"/> δοκίμασε κάποιες εκδοχές !!

 

oxi den einai kati tetio... to exw psaksei... kai 2 fores piga na to valw alla kai pali tipota. :P

  • 0
Posted

<skill id="100" levels="15" name="Stun Attack">

  <table name="#mpConsume">20 21 21 22 23 23 25 26 27 29 29 30 32 33 34</table>

  <table name="#power">30 33 35 41 44 48 55 59 64 73 79 84 96 102 109</table>

  <table name="#magicLvl">18 19 20 22 23 24 26 27 28 30 31 32 34 35 36</table>

  <set name="weaponsAllowed" val="16392"/>

  <set name="mpConsume" val="#mpConsume"/>

  <set name="nextActionAttack" val="true" />

  <set name="saveVs" val="CON"/>

  <set name="power" val="#power"/>

  <set name="magicLvl" val="#magicLvl"/>

  <set name="lvlDepend" val="1"/>

  <set name="target" val="TARGET_ONE"/>

  <set name="overHit" val="true"/>

  <set name="SSBoost" val="2.0"/>

  <set name="reuseDelay" val="13000"/>

  <set name="hitTime" val="1080"/>

  <set name="coolTime" val="720"/>

  <set name="skillType" val="PDAM"/>

  <set name="operateType" val="OP_ACTIVE"/>

  <set name="castRange" val="40"/>

  <set name="effectRange" val="400"/>

  <set name="isDebuff" val="true" />

  <for>

    <effect count="1" name="Stun" time="9" val="0" stackOrder="1" stackType="Stun" effectPower="50" effectType="STUN"/>

  </for>

</skill>

 

Alazis To Target Se "TARGET_PARTY" An thes na To pernei olo to Party i  "TARGET_SELF" An thes esy

 

  • 0
Posted

<skill id="100" levels="15" name="Stun Attack">

  <table name="#mpConsume">20 21 21 22 23 23 25 26 27 29 29 30 32 33 34</table>

  <table name="#power">30 33 35 41 44 48 55 59 64 73 79 84 96 102 109</table>

  <table name="#magicLvl">18 19 20 22 23 24 26 27 28 30 31 32 34 35 36</table>

  <set name="weaponsAllowed" val="16392"/>

  <set name="mpConsume" val="#mpConsume"/>

  <set name="nextActionAttack" val="true" />

  <set name="saveVs" val="CON"/>

  <set name="power" val="#power"/>

  <set name="magicLvl" val="#magicLvl"/>

  <set name="lvlDepend" val="1"/>

  <set name="target" val="TARGET_ONE"/>

  <set name="overHit" val="true"/>

  <set name="SSBoost" val="2.0"/>

  <set name="reuseDelay" val="13000"/>

  <set name="hitTime" val="1080"/>

  <set name="coolTime" val="720"/>

  <set name="skillType" val="PDAM"/>

  <set name="operateType" val="OP_ACTIVE"/>

  <set name="castRange" val="40"/>

  <set name="effectRange" val="400"/>

  <set name="isDebuff" val="true" />

  <for>

    <effect count="1" name="Stun" time="9" val="0" stackOrder="1" stackType="Stun" effectPower="50" effectType="STUN"/>

  </for>

</skill>

 

Alazis To Target Se "TARGET_PARTY" An thes na To pernei olo to Party i  "TARGET_SELF" An thes esy

 

Έτσι όπως το λες εσύ,ακόμα και να έχουν target οι παίκτες,πάλι έπανω τους θα γίνεται.

δεν είναι dp side,είναι core.

  • 0
Posted

<skill id="100" levels="15" name="Stun Attack">

  <table name="#mpConsume">20 21 21 22 23 23 25 26 27 29 29 30 32 33 34</table>

  <table name="#power">30 33 35 41 44 48 55 59 64 73 79 84 96 102 109</table>

  <table name="#magicLvl">18 19 20 22 23 24 26 27 28 30 31 32 34 35 36</table>

  <set name="weaponsAllowed" val="16392"/>

  <set name="mpConsume" val="#mpConsume"/>

  <set name="nextActionAttack" val="true" />

  <set name="saveVs" val="CON"/>

  <set name="power" val="#power"/>

  <set name="magicLvl" val="#magicLvl"/>

  <set name="lvlDepend" val="1"/>

  <set name="target" val="TARGET_ONE"/>

  <set name="overHit" val="true"/>

  <set name="SSBoost" val="2.0"/>

  <set name="reuseDelay" val="13000"/>

  <set name="hitTime" val="1080"/>

  <set name="coolTime" val="720"/>

  <set name="skillType" val="PDAM"/>

  <set name="operateType" val="OP_ACTIVE"/>

  <set name="castRange" val="40"/>

  <set name="effectRange" val="400"/>

  <set name="isDebuff" val="true" />

  <for>

    <effect count="1" name="Stun" time="9" val="0" stackOrder="1" stackType="Stun" effectPower="50" effectType="STUN"/>

  </for>

</skill>

 

Alazis To Target Se "TARGET_PARTY" An thes na To pernei olo to Party i  "TARGET_SELF" An thes esy

 

oxi egw 8elw na min exoun target. na min exoun tipota epileksi k na to kanei tote epanw tous. otan dld dn exoun target oti skill na patisei px buff i heal na to kanei epanw tou

  • 0
Posted

pws mporw na valw otan den exoun target oi players na kanoun ta skills epanw tous... Diladi otan enas Bishop den exei kanena target na kanei ta heal epanw tou.

 

Ligi voi8ia paidia. Eimai Newbie.  :-\

 

network/clientpackets/requestMagicSkilluse.java

	// Get the L2Skill template corresponding to the skillID received from the client
	final L2Skill skill = SkillTable.getInstance().getInfo(_magicId, level);
	if (skill != null)
	{
+			if (activeChar.getTarget() == null)
+				switch (skill.getSkillType())
+				{
+					case HEAL:
+					case BUFF:
+						if (skill.getTargetType()==SkillTargetType.TARGET_ONE)
+						activeChar.setTarget(activeChar);
+				}
		if (skill.getId()==51)
		{
			if (!activeChar.isBehindTarget() || !activeChar.isBehind(activeChar.getTarget().getActingPlayer()))
				return;
		}

 

not tested, dokimase to ama vgalei bug pesmou na to ftia3w

  • 0
Posted

RequestMagicSkillUse legete kai den iparxei periptosei na min iparxei sto pack soy giati afto to packet erxete apo ton client, apla psa3e edw: gameserver/network/clientpackets/RequestMagicSkillUse.java

  • 0
Posted

RequestMagicSkillUse legete kai den iparxei periptosei na min iparxei sto pack soy giati afto to packet erxete apo ton client, apla psa3e edw: gameserver/network/clientpackets/RequestMagicSkillUse.java

 

wraia to vrika. alla to simio auto dn mporw na vrw g na pros8esw ton kodika...

 

olo k olo pou mou exei mesa ekei einai auto edw:

 

/*
* 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 net.sf.l2j.gameserver.network.clientpackets;

import java.util.logging.Logger;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.templates.skills.L2SkillType;

/**
* This class ...
*
* @version $Revision: 1.7.2.1.2.3 $ $Date: 2005/03/27 15:29:30 $
*/
public final class RequestMagicSkillUse extends L2GameClientPacket
{
private static final String _C__2F_REQUESTMAGICSKILLUSE = "[C] 2F RequestMagicSkillUse";
private static Logger _log = Logger.getLogger(RequestMagicSkillUse.class.getName());

private int _magicId;
private boolean _ctrlPressed;
private boolean _shiftPressed;

@Override
protected void readImpl()
{
	_magicId      = readD();              // Identifier of the used skill
	_ctrlPressed  = readD() != 0;         // True if it's a ForceAttack : Ctrl pressed
	_shiftPressed = readC() != 0;         // True if Shift pressed
}

@Override
protected void runImpl()
{
	// Get the current L2PcInstance of the player
	L2PcInstance activeChar = getClient().getActiveChar();

	if (activeChar == null)
		return;

	// Get the level of the used skill
	int level = activeChar.getSkillLevel(_magicId);
	if (level <= 0)
	{
		activeChar.sendPacket(ActionFailed.STATIC_PACKET);
		return;
	}

	// Get the L2Skill template corresponding to the skillID received from the client
	L2Skill skill = SkillTable.getInstance().getInfo(_magicId, level);

	// Check the validity of the skill
	if (skill != null)
	{
		if ((activeChar.isTransformed() || activeChar.isInStance())
				&& !activeChar.containsAllowedTransformSkill(skill.getId()))
		{
			activeChar.sendPacket(ActionFailed.STATIC_PACKET);
			return;
		}
		// _log.fine("	skill:"+skill.getName() + " level:"+skill.getLevel() + " passive:"+skill.isPassive());
		// _log.fine("	range:"+skill.getCastRange()+" targettype:"+skill.getTargetType()+" optype:"+skill.getOperateType()+" power:"+skill.getPower());
		// _log.fine("	reusedelay:"+skill.getReuseDelay()+" hittime:"+skill.getHitTime());
		// _log.fine("	currentState:"+activeChar.getCurrentState());	//for debug

		// If Alternate rule Karma punishment is set to true, forbid skill Return to player with Karma
		if (skill.getSkillType() == L2SkillType.RECALL && !Config.ALT_GAME_KARMA_PLAYER_CAN_TELEPORT && activeChar.getKarma() > 0)
			return;

		// players mounted on pets cannot use any toggle skills
		if (skill.isToggle() && activeChar.isMounted())
				return;
		// activeChar.stopMove();
		activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
	}
	else
	{
		activeChar.sendPacket(ActionFailed.STATIC_PACKET);
		_log.warning("No skill found with id " + _magicId + " and level " + level + " !!");
	}
}

/* (non-Javadoc)
 * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
 */
@Override
public String getType()
{
	return _C__2F_REQUESTMAGICSKILLUSE;
}

@Override
protected boolean triggersOnActionRequest()
{
	return true;
}
}

  • 0
Posted

mas douleveis re file? mprosta sou einai

 

if (skill != null)

{

 

nai ein to monadiko auto p exei... ta ipolipa dn ta exei...

entaksi sorry p ginomai ligo pri3as alla dn kserw polla k eim lg epifilaktikos...

 

miso... paw na to dokimasw...

  • 0
Posted

nai ein to monadiko auto p exei... ta ipolipa dn ta exei...

entaksi sorry p ginomai ligo pri3as alla dn kserw polla k eim lg epifilaktikos...

 

miso... paw na to dokimasw...

 

koita otan zitas code help lege pack k client ...

  • 0
Posted

koita otan zitas code help lege pack k client ...

 

opos eipa k prin dn kserw polla. dn kserw pws legete to pack... :P kanenas dn kserei na m pei. xD

exw steilei to guide pou akolou8isa. oso mporw dinw parapanw stixia g na mporesw na voi8isw tous allous wste autoi me ti sira tous na me voi8isoun. eimai kainourios k to paleuw oso mporw.

 

mou pianei la8os auto edw:

if (skill.getTargetType()==SkillTargetType.TARGET_ONE)

 

ti kanw?

  • 0
Posted

opos eipa k prin dn kserw polla. dn kserw pws legete to pack... :P kanenas dn kserei na m pei. xD

exw steilei to guide pou akolou8isa. oso mporw dinw parapanw stixia g na mporesw na voi8isw tous allous wste autoi me ti sira tous na me voi8isoun. eimai kainourios k to paleuw oso mporw.

 

mou pianei la8os auto edw:

if (skill.getTargetType()==SkillTargetType.TARGET_ONE)

 

ti kanw?

 

SkillTargetType kanto TargetType

Guest
This topic is now closed to further replies.


×
×
  • Create New...