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.


  • Posts

    • Done. Thanks for your choose and trust us, we are the only and LAST, authentic L2OFF Service.
    • sell adena l2rebon signature x1 - 1kk = 1 dollars l2reborn x10 - 500kk = 4.7 dollars E-Global x Lu4 - 1kk = 2.7 dollars BOHPTS - x20-x500 TOP PRICE DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Hello send me on discord to receive the files source packages you order fron team, thanks you.
    • 亲爱的 SocNet 用户! 我们想向您介绍我们平台当前的促销和特惠活动列表: 1. 在 9 月使用优惠码 SEPTEMBER2025(9 折优惠)即可在我们的商店(网站、机器人)购物!您还可以在首次购买时使用优惠码:SOCNET(85 折优惠) 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后按照以下模板填写您的用户名: "SEND ME BONUS, MY USERNAME IS..." ——需要在我们的论坛主题帖中发布! 3. 获得 $1 用于首次试用 SMM 面板:只需在我们网站(支持中心)提交一个主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和机器人中每周都会赠送 Telegram Stars! 当前链接: 数字商品商店(网站):前往 购买 Telegram Stars 的 Telegram 机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 商店 Telegram 机器人:前往 新闻资源: Telegram 频道: https://t.me/accsforyou_shop WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord 服务器: https://discord.gg/y9AStFFsrh 我们正在积极寻找以下商品类别的供应商: — Snapchat 新旧账号 | 带积分 (snapscores) | 地区: 欧洲/美国 | 邮箱/手机号完全访问权限 — Reddit 老账号(暴力破解或被盗来源,自注册)| 帖子和评论业力值 100 至 100,000+ | 含邮箱完全访问权限 — LinkedIn 老账号 | 拥有真实连接 (connections) | 地区: 欧洲/美国 | 邮箱完全访问权限 + 活跃的 2FA 密码 — Instagram 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — Facebook 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码)| 有好友或无好友 | 地区: 欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — TikTok/Facebook/Google ADS 代理广告账号 请通过以下联系方式联系我们 —— 我们来讨论合作条件! 我们也随时欢迎其他合作机会。 联系方式和支持: Telegram: https://t.me/socnet_support WhatsApp: https://wa.me/79051904467 Discord: socnet_support 邮箱: solomonbog@socnet.store 通过这些联系方式您还可以: — 咨询批量采购 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商
  • 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