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

    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • REBORN ETERNAL IL x10 WTS  1gb 8e (a lot in stock) DR set +6 180e Frintezza+6 200e Zaken+6 200e AQ+6 200e You must go first or Pufa middleman service
    • There's many reasons why it would be more NO than YES : Using NCSoft assets is a death wish, they can lawyer any LU3/Unity if they wanted, since it's a plain steal of intellectual property. It's an hobby, as you said it, and it's not specially about money. Money is a way to filter idiots/resellers, nothing more. It's really about trying to replicate old content and optimize it which I find it fun. I just align with the basic idea than an emulator emulates. When you launch Project64 and SuperMario 64, you don't expect to get something more than 120 stars and Bowser boss in the end - which should have been L2J project to begin with Even if I played a lot with TESCS from Morrowind, back in time, it's not enough to handle current engines, and I'm too lazy to learn Unity/Unreal Engine. Moreover, it would mean buying assets. While doing it alone would be a fail, coupling to L2J / L2 community would still be shitty (since the majority is RU/BR) ; people is only about fame/glory/reselling shit on back of others. Opening to others, the project would be leaked day 1, rebranded and resold. MMO genre is basically dead, and that's not a reboot of any game (l2/wow classic :D) which will turn the tide. Regarding L2 or an remastered version of it, you can obviously blatantly copy-cat it (as Propnight did for Dead by daylight).   All frenchies aren't supposed to do Expedition 33 :).
    • 190euro until last month, don't miss it.
  • 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