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 SEO TRAINING (Bot Ranking in Search) I teach a complete system for ranking Telegram bots at the top of search results by keywords and countries. The method works for services, shops, crypto projects, and any type of Telegram bot. You can also direct the traffic to your groups, channels, websites, or sales funnels. ⸻  Countries I work with USA, Israel, Russia, India, Turkey, China, Ukraine, Uzbekistan. If you need another country — message me, we’ll find a solution. ⸻ ️ Results First search results appear in 2–3 days. ⸻  What’s included in the training • how the Telegram search algorithm works and key ranking factors • keyword research for your country and niche • bot optimization: description, settings, greeting text • fixing and maintaining positions • specific promotion nuances for different countries ⸻  What you will receive • a complete system for ranking bots in search • understanding how to work with keywords, traffic, and positions • a skill you can use to promote your own projects or earn from clients ⸻  Who this training is for • beginners with zero experience — I explain everything from scratch • those who don’t have a bot — I provide a ready one for practice • anyone who wants to learn promotion and earn from this service ⸻  Why learn from me • doing Telegram SEO since 2021 • over 1000 successful orders • my own panel SMMTG.PRO and private databases • experience working with markets of Russia, Uzbekistan, Ukraine, Israel, USA, Turkey, China, India, Vietnam, Europe, and more ⸻  For pricing — message me t.me/smmtg_link
    • Hey everyone, I was wondering if anyone knows where the client loads all the .dat files. Is there some kind of manifest or list you can specify which dat files the client loads?
    • 🔥 Welcome to Lineage 2 Haruna x3 – True Classic Interlude Experience 🔥 At Haruna x3, we’re bringing back the true essence of Interlude – slow, meaningful progression where every level matters, every item has value, and PvP is real. We’re not about fast servers, pay-to-win advantages, or fake populations. Our goal is simple: create a fair, stable, and long-term server where players can enjoy real competition, strategic clan warfare, and the thrill of open-world PvP. 💎 What Makes Haruna x3 Special? x3 Rates – Perfect for steady, rewarding progression Classic Interlude Mechanics – Relive the nostalgia of Interlude Stable & Lag-Free Gameplay – Optimized for thousands of players online Fair & Balanced – No pay-to-win, every victory is earned PvP & Clan Warfare Focused – Every battle counts 🌟 Quality of Life Features to Enhance Your Experience We keep the classic feel while adding features that make the game more convenient and enjoyable, including: Shift + Click to view monster droplists Free item mail and buy/sell via Adena Daily login rewards & Stream Rewards ALT+K Skill Panel & Alt+Click buffs removal Offline shop system Captcha for security Donate Coins currency (cannot be traded, dropped, or destroyed) Classic P110 client – no custom interface 🏰 Our Philosophy We believe Lineage 2 is about the journey, not just the destination. Haruna x3 is designed for months and years of growth, not weeks. We provide a community-driven environment where honest gameplay, fair competition, and strategic teamwork are at the forefront. 🌍 Join Our Community Whether you’re a veteran of Interlude or a returning player seeking a true classic experience, Haruna x3 offers a place to fight, trade, and grow alongside dedicated players. Step into the world of Haruna x3 – where every decision matters, every fight counts, and every victory is yours to earn. Discord: https://discord.gg/7DDC9Dsxnh Website : www.l2haruna.com
    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
  • 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