Jump to content
  • 0

[Request] Skill


Question

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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Would it be possible to update the guide? The images are offline! 😞
    • In the fast-paced world of digital marketing, having the right tools makes all the difference. If you're searching for a reliable SMM panel Nigeria, GoUpSocial is here to take your online presence to the next level. Built for influencers, marketers, startups, and content creators, our platform is the ultimate solution for smart and scalable social media growth. With GoUpSocial, you get more than just numbers—you get engagement that drives real impact. As a trusted Nigerian SMM panel, we help you gain visibility across top platforms like Instagram, TikTok, YouTube, Facebook, and Twitter—all at the most competitive prices in the market. Experience the Power of the Best SMM Panel in Nigeria We understand that quality matters just as much as affordability. That’s why GoUpSocial has become the go-to platform for users seeking the best SMM panel in Nigeria. Here’s what makes us the preferred choice: 🚀 Real-Time Delivery: Get your orders processed and completed in minutes, not hours. 💼 All-in-One Dashboard: Manage all your campaigns with ease from a clean, simple interface. 💡 Effective Strategies: Our tools are tailored for organic-looking growth and high user engagement. 🧾 Transparent Pricing: No hidden fees—just straightforward, affordable packages. 👩‍💻 Expert Support: Our team is available 24/7 to guide you through every step of the process. Whether you need more followers, likes, views, or overall engagement, our SMM panel Nigeria services deliver measurable and meaningful results. Why We’re the Nigeria Fastest and Cheapest SMM Panel GoUpSocial isn’t just another provider—it’s the Nigeria fastest and cheapest SMM panel built with performance and value in mind. We combine automation, intelligent targeting, and local market understanding to help you scale effortlessly. Need to boost a campaign today? Our platform supports instant order processing, real-time tracking, and localized engagement strategies—making it ideal for any influencer or business operating in Nigeria. Plus, as the cheapest SMM panel in Nigeria, we make sure that even clients with limited budgets can access top-quality services without compromise. A Nigerian SMM Panel Built for 2025 and Beyond As social media algorithms evolve, traditional methods of gaining reach and engagement no longer work. That’s why we’ve built the SMM panel Nigeria 2025—a next-gen platform optimized for today’s challenges. From smart delivery settings to niche-specific targeting, GoUpSocial provides you with every advantage in a competitive digital world. Our system adapts to the latest platform changes, helping you stay relevant, visible, and in control. Looking for a localized service? Our SMM panel for Nigerian followers helps you connect directly with your audience—boosting both credibility and conversions. All-in-One Online Panel in Nigeria for Every Social Goal No matter your objective—brand awareness, follower growth, or engagement improvement—GoUpSocial is the online panel in Nigeria that offers it all. With flexible services, dynamic campaigns, and secure systems, we give you the tools to succeed in a crowded online space. And because we’re committed to your growth, our platform is continually updated to reflect the best practices of modern digital marketing. Take the Leap with the Best Nigerian SMM Panel Ready to grow smarter? With GoUpSocial, you don’t just gain social proof—you build real influence. As the cheapest Nigeria SMM panel, we combine speed, quality, and affordability in one seamless platform. Whether you're an aspiring influencer, a marketing agency, or a brand aiming for greater reach, GoUpSocial is the ultimate Nigerian SMM panel to help you reach your full potential. 👉 Sign up today and unlock the next level of social media growth with GoUpSocial.
    • Lineage2 : Website Download now our System Patch. Registration from 12:00 UTC Time.
    • Daily reward system operational. 28 rewards. Option to buy days (Donate). Automatically resets on the first day of each month. External configuration file. You can submit daily rewards by account or IP. Minimum claim level. Claiming on the 28th locks the reward until the next month. Contact Discord: lykoz#0331
  • 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