Jump to content
  • 0

[Request] Skill


Question

Posted

Usable skill when u are Debuffed.

For example... Turn to Stone...

I would like to be able to use it... even if my character is Feared-Stuned...

Any idea on how i could do that?

Recommended Posts

  • 0
Posted

Thats core side and its a bit complicated to do that, but for what reason a player should use skills when stun that is just lol.

Better try to rethink ur ideas, cause i dont think that anyone will try helping you with that.

  • 0
Posted

Thats core side and its a bit complicated to do that

i just dont know in wich direction to Look for something like that in eclipse...

tbh..

then maybe i could add some Configs to allow something like that for that skill.

"i just started with java btw"

  • 0
Posted

i just dont know in wich direction to Look for something like that in eclipse...

tbh..

then maybe i could add some Configs to allow something like that for that skill.

"i just started with java btw"

 

give me the type of the skill and i will give you the code

  • 0
Posted

give me the type of the skill and i will give you the code

<set name="skilltype" val="CANCEL_DEBUFF" />

or

<set name="skilltype" val="BUFF" />

w/e fits more...

PS:the code will make every skill with that Type to be able to do that?

or i can Mark "just some skills"?

 

Btw really thnx... for that.

  • 0
Posted

ok so you want a skill TYPE CANCEL to be casted on stun targets? so go model/L2Skill.java open it and add

 

a boolean (for example)

 

 

public final boolean isStunned()

{

return getSkillType() == SkillType.CANCEL;

                return false;

}

 

delete on :

public final boolean isPvpSkill()
{
	switch(_skillType)
	{
		case DOT:
		case AGGREDUCE:
		case AGGDAMAGE:
		case AGGREDUCE_CHAR:
		case CONFUSE_MOB_ONLY:
		case BLEED:
		case CONFUSION:
		case POISON:
		case DEBUFF:
		case AGGDEBUFF:
	-	case STUN:
		case ROOT:
		case FEAR:
		case SLEEP:
		case MDOT:
		case MANADAM:
		case MUTE:
		case WEAKNESS:
		case PARALYZE:
		case CANCEL:
		case MAGE_BANE:
		case WARRIOR_BANE:
		case FATALCOUNTER:
		case BETRAY:
			return true;
		default:
			return false;
	}
}

 

i am sure i made mistakes but i think it is based there just try it nothing to lose besides i am still learning

  • 0
Posted

Well... thnx isnt enough...

iam going to try it, right now.

:)

 

boof.png

boo2.png

 

So the code looking like that.

public final boolean isStunned()
{
      return getSkillType() == L2SkillType.CANCEL;
                
   }

Iam compiling it right now to see the effect in game...

but the fact that i removed

return false;

make me feel that wont work.

 

 

Nah didnt work... in this way.

i will try to fix the errors with other options.

  • 0
Posted

You character Recieves a

Explain better what you want. Personally I didn't understand a shit about.

 

Give eventually a simple example.

your character recieves a stun/fear w/e

And by using Turn to stone or something like that... you removing that Debuff...from your self...

Normally that cant happened... cause there is a restriction while your Stunned... "You cant use any skill"

So iam asking how can i change/remove that Restriction from Turn to stone or another skill...

 

btw Malzahax... i tried to Edit it...

by adding an IF...

its looking like that right now...

public final boolean siStunned()
{
if (getSkillType() == L2Skilltype.CANCEL())
return_canBeDispeled;
}

still aint work... but w/e

 

  • 0
Posted

Why do you have two return statements next to each other? As soon as you reach the first one the stack space from the function is destroyed and you will never get to the return false.

  • 0
Posted

Why do you have two return statements next to each other? As soon as you reach the first one the stack space from the function is destroyed and you will never get to the return false.

 

public final boolean isStunned()
{
if (getSkillType() == L2Skilltype.CANCEL())
return _canBeDispeled;
}

Typed it wrong here...in Eclipse has space^^

  • 0
Posted

I mean in your screenshot, you original had:

boo2.png

 

Unless you know what you're doing, you really should only have 1 return statement inside a function. Once the code reaches the first statement, anything after it won't be executed. Also you have a flat value return false; but why? Keep in mind that this is probably a commonly used functions for a lot of things. If you modify it so it's value is always false then you'll ruin it's application everywhere it's used.

 

To be honest, what I think you want to do is well kind of illogical. It's already placed in that if this effect is on you won't be doing anything else, so you're going to have to do a lot more modification.

 

EDIT: I also don't understand the first return statement. getSkillType() == L2SkillType.CANCEL();

By doing the fix, you created a function that does nothing I think. Also == is a comparison operator. I think maybe what you mean is return ( getSkillType() == L2SkillType.CANCEL; )

  • 0
Posted

I mean in your screenshot, you original had:

boo2.png

 

Unless you know what you're doing, you really should only have 1 return statement inside a function. Once the code reaches the first statement, anything after it won't be executed. Also you have a flat value return false; but why? Keep in mind that this is probably a commonly used functions for a lot of things. If you modify it so it's value is always false then you'll ruin it's application everywhere it's used.

 

To be honest, what I think you want to do is well kind of illogical. It's already placed in that if this effect is on you won't be doing anything else, so you're going to have to do a lot more modification.

 

EDIT: I also don't understand the first return statement. getSkillType() == L2SkillType.CANCEL();

By doing the fix, you created a function that does nothing I think. Also == is a comparison operator. I think maybe what you mean is return ( getSkillType() == L2SkillType.CANCEL; )

 

sorry i messed them up , you need if char is stuned also another debuff to land? then is aswell on xml the stacktype i think..

  • 0
Posted

Well... the main idea... is:

You Have one skill... "Imagine something like Cleance" SELF_TARGET

And someone... Stuns you...

Then you Use your "self Cleance"  "while you are Stunned"

And you remove the Stun before its Duration over...

 

"Doesnt sound logical to be able to Clean a Debuff " From your Self, i know "

But if you can help me. I will appreciate it :)

  • 0
Posted

Creates a skillhandler with a new SkillType ? If skillhandlers are restricted too, well you have to register a variable in L2Skill (let's say a boolean _isInstantActionSkill, with isInstantActionSkill() method and too a check on the "db" reading about it). Then on the check on the doCast or wherever it's made simply apply your new method. I'm lazy to explain all...

 

Btw your ask is still kinda "vague". What sort of debuff do you want to cancel ? Any ? A certain type ?

  • 0
Posted

Creates a skillhandler with a new SkillType ? If skillhandlers are restricted too, well you have to register a variable in L2Skill (let's say a boolean _isInstantActionSkill, with isInstantActionSkill() method and too a check on the "db" reading about it). Then on the check on the doCast or wherever it's made simply apply your new method. I'm lazy to explain all...

 

Btw your ask is still kinda "vague". What sort of debuff do you want to cancel ? Any ? A certain type ?

why i think that a method that when you are inAction on that skill exist? then i am really bored searching it but i am sure it exists and you can just add a code to doCast while you are stunned (care to add checks not to be with all skills like heal/etcetcetc)

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

    • 我们的 Telegram 频道 已达到 3000 名订阅者! 感谢大家对我们项目的支持与关注! 我们即将举办一场精彩的抽奖或比赛,专为您准备! 不要错过参与的机会 — 立即订阅:https://t.me/accsforyou_shop✅ 活跃链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 用于购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账户。 我们向您展示当前的 促销与特别优惠,可用于购买我们平台的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月期间通过我们的网站或机器人购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在我们网站注册后在论坛留言:“SEND ME BONUS, MY USERNAME IS...”。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在我们网站(支持页面)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和用于购买 Stars 的机器人中赠送 Telegram Stars!
    • 我们的 Telegram 频道 已达到 3000 名订阅者! 感谢大家对我们项目的支持与关注! 我们即将举办一场精彩的抽奖或比赛,专为您准备! 不要错过参与的机会 — 立即订阅:https://t.me/accsforyou_shop✅ 活跃链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 用于购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账户。 我们向您展示当前的 促销与特别优惠,可用于购买我们平台的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月期间通过我们的网站或机器人购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在我们网站注册后在论坛留言:“SEND ME BONUS, MY USERNAME IS...”。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在我们网站(支持页面)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和用于购买 Stars 的机器人中赠送 Telegram Stars!
    • 我们的 Telegram 频道 已达到 3000 名订阅者! 感谢大家对我们项目的支持与关注! 我们即将举办一场精彩的抽奖或比赛,专为您准备! 不要错过参与的机会 — 立即订阅:https://t.me/accsforyou_shop✅ 活跃链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 用于购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账户。 我们向您展示当前的 促销与特别优惠,可用于购买我们平台的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月期间通过我们的网站或机器人购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在我们网站注册后在论坛留言:“SEND ME BONUS, MY USERNAME IS...”。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在我们网站(支持页面)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和用于购买 Stars 的机器人中赠送 Telegram Stars!
    • 我们的 Telegram 频道 已达到 3000 名订阅者! 感谢大家对我们项目的支持与关注! 我们即将举办一场精彩的抽奖或比赛,专为您准备! 不要错过参与的机会 — 立即订阅:https://t.me/accsforyou_shop✅ 活跃链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 用于购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账户。 我们向您展示当前的 促销与特别优惠,可用于购买我们平台的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月期间通过我们的网站或机器人购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在我们网站注册后在论坛留言:“SEND ME BONUS, MY USERNAME IS...”。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在我们网站(支持页面)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和用于购买 Stars 的机器人中赠送 Telegram Stars!
    • 3000 subscribers in our Telegram channel! Thank you all for your support and interest in our project! Very soon, we’ll be hosting an exciting giveaway or contest just for you! Don’t miss the chance to take part — subscribe here: https://t.me/accsforyou_shop✅ Active Links: Digital goods store (Website): Go Store Telegram bot: Go Telegram bot for purchasing Telegram Stars: Go SMM Panel: Go – promote your social media accounts. We would like to present you with the current list of promotions and special offers for purchasing products and services from our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website or Bot) during October! You can also use the first-time promo code SOCNET (15% discount). 2. Get $1 credited to your store balance or a 10–20% discount — just post your username after registration on our website using the following format: "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a support ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly giveaways of Telegram Stars in our Telegram channel and in our Telegram bot for Star purchases!
  • 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