Jump to content
  • 0

How To Add Animation To Enchantments?


Question

Posted (edited)

Hello. I needsome help to add animations to enchantments..

Like, when the enchantment is successful, the server sends a packet with a message to player: "You successfully enchanted your weapon" for example. Together with this packet I want to send a skill animation.

The same when Fails the enchant and the same for skill enchants.

 

Im taking a look at RequestExEnchantSkill and I found the code part where the system sends the message but i cannot figure out how to add the animation from a skill there.

Edited by vecc

Recommended Posts

  • 0
Posted

 

2 packets.

  1. MagicSkillUse
  2. SocialAction

 

This doesnt help,I dont code. I can only copy/paste from existing codes. Thats why im searching im my head if in game there is something similar already So i can copy.

  • 0
Posted (edited)

What logic is this? Try to code lol... Ofc you will not be able to code but if you just searching for codes whats the point? You want server and you dont even try to code? why? wtf people...??

Edited by melron
  • 0
Posted (edited)

This doesnt help,I dont code. I can only copy/paste from existing codes. Thats why im searching im my head if in game there is something similar already So i can copy.

That means that you won't be able to make this work?

player.broadcastPacke*(new MagicSkillU*e(blablabla, read, my, description, kap, pa))
Edited by IpotoniC
  • 0
Posted

That means that you won't be able to make this work?

 

player.broadcastPacke*(new MagicSkillU*e(blablabla read my description))

 

Basically yes. Thats why after searching a lot I found nothing and I came here to create a post and wait if someone with better knowledge could help. Thats why this is help section. Thank you, I will try to fill in the blanks of your line.

 

And melron can gtfo out of here cause he never wanted to help anyway. just a show off guy.

  • 0
Posted

player.broadcastPacket(new MagicSkillUse(1047,4))...

 

MagicSkillUse cannot be resolved as a Type.

 

I got that error

  • 0
Posted

You are wrong... I helped you... the thing is i didnt gave you the whole code you need... what to say m8... if you cant just add 2 fucking lines u dont deserve to open a server srsly now... 

  • 0
Posted

Basically yes. Thats why after searching a lot I found nothing and I came here to create a post and wait if someone with better knowledge could help. Thats why this is help section. Thank you, I will try to fill in the blanks of your line.

 

And melron can gtfo out of here cause he never wanted to help anyway. just a show off guy.

Its better to be carefull with your way...

He gave you 2 answers not one but if you wait ready code and you will never search about this 2 words in your eclipse you will never learn something..

  • 0
Posted

Basically yes. Thats why after searching a lot I found nothing and I came here to create a post and wait if someone with better knowledge could help. Thats why this is help section. Thank you, I will try to fill in the blanks of your line.

 

And melron can gtfo out of here cause he never wanted to help anyway. just a show off guy.

Don't ever talk like that for melron. He told you the 2 packets after ..(new MagicSkillUse is for skills, (new SocialAction .. is for social actions ^^

 

If you can't understand that he helped you then it's your fault. Also he pointed that your logic is totally WRONG. And he is right, so better appreciate cause he replied and stfu if you didn't understood it. Oka?

 

player.broadcastPacket(new MagicSkillUse(1047,4))...

 

MagicSkillUse cannot be resolved as a Type.

 

I got that error

You don't deserve any help

  • 0
Posted (edited)

So it means that you only help ppl that know how to code? If i knew java code I would not need to come here and ask for help lol. now whose logic is broken? 

And why all of u think I want to open a server? Im only having fun with my pack and addind/removing basic things that I can do alone.

 

I already read lots of java codes searching for those lines, like RequestMagicSkillUse etc but didnt help. thats why I came here lol..

Edited by vecc
  • 0
Posted

So it means that you only help ppl that know how to code? If i knew java code I would not need to come here and ask for help lol. now whose logic is broken? 

And why all of u think I want to open a server? Im only having fun with my pack and addind/removing basic things that I can do alone.

 

I already read lots of java codes searching for those lines, like RequestMagicSkillUse etc but didnt help. thats why I came here lol..

You're rude, you don't try to learn, you only c/p ready things w/o knowing the basic stuff. You are attacking ppl cause you can't understand that they helped you.

 

I am NOOB at java and at l2j, but i'm trying and learning every day. You said I DON'T CODE I ONLY COPY PASTE.

 

If you really wanted to learn, then with the 1 word that melron wrote, you would instantly go to search if there's something similar to that word. But instead you said: I NEED THE SPOON TO MY MOUTH.

 

 

So better don't continue it. =)

  • 0
Posted (edited)

I think you missunderstood me... all i want to say is, you are in a "help" section... that means you will get help... not "what ever i need"... look the first line of your first post and then realize your other answer when you got help "This doesnt help,I dont code. I can only copy/paste from existing codes. "...

Edited by melron
  • 0
Posted

Funny thing, both of you started attacking me when I said "I dont code". Many topics other users give the code ready for compilation when the person doesnt know how to code and if its small thing like my request here.

 

The problem is that you are not willing to help someone that doesnt know how to code. you will only give tips so I can search. Guess what? I already searched 10 files but that doesnt help cause I dont understand java logic. Is it to hard to understand? Sorry If I offended you when I said "that didnt help cause I dont know how to code". But I was just being sincere and hopping for a ready line to test.

 

Anyway, I will wait for other guy who doesnt have a problem to paste 1 java line for me to test. 

  • 0
Posted (edited)

Funny thing, both of you started attacking me when I said "I dont code". Many topics other users give the code ready for compilation when the person doesnt know how to code and if its small thing like my request here.

 

You are right actually. I received ready codes many times already when I couldnt solve the problem my self.

Now its my turn to help another user. Here you go:

final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_IN_ENCHANTING_THE_SKILL_S1);
sm.addSkillName(_skillId);
player.sendPacket(sm);
+ MagicSkillUser  MSU = new MagicSkillUser(player, player, 2024, 1, 1, 0);
+ player.broadcastPacket(MSU);  

I used firework skill (skill id 2024), but you can change to another skill you wish.

Edited by tiguz
Guest
This topic is now closed to further replies.


  • Posts

    • Wts adena 1kk = 10$  LU4 1kk = 1.6$ discord - GODDARDSHOP 
    • Dear partners! At the moment, we are in great need of the following items: TikTok Ads and Google Ads advertising accounts with an ad limit starting from $100. Countries: Europe, USA, Asia Contact us via the contacts in the thread or in this post. We look forward to cooperating! Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website using the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Dear partners! At the moment, we are in great need of the following items: TikTok Ads and Google Ads advertising accounts with an ad limit starting from $100. Countries: Europe, USA, Asia Contact us via the contacts in the thread or in this post. We look forward to cooperating! Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website using the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Hey everyone, I’m thrilled to introduce our upcoming server, Dragon‑Network, built on the powerful Interlude+ chronicle and crafted for serious PvP, balanced progression and community fun. Below you’ll find all the key details — rates, features, event structure, and why this will be your next home for Lineage 2. 📅 Grand Opening November 21, 2025 — mark the date, rally your friends, prepare your gear. The realm opens, and the wars begin. ⚙️ Rates & Server Setup XP: 10× Chronicle: Interlude+ (expanded from our previous server) PvP-focused content, daily events, and reward-rich systems These core settings ensure you’ll feel progress and power, without losing the depth of classic Interlude. 🎯 Features & Highlights Based on our features page: Alternative class change quests: skip the lengthy standard quests by collecting tradable items dropped by monsters. Dragon-Network Full Interlude+ content: Kamaloka, Labyrinth, Pailaka quests, Hellbound Island, S80 items, Attribute system, Isle of Prayer hunting zone, siegeable fortresses and more. Dragon-Network Daily Team vs Team (TvT) events: prove your worth, climb the ranks and earn valuable rewards. Dragon-Network Balanced PvP mechanics: custom sub-stack features, armor mastery rules, optimized skill effects — all to keep the fight fair and skill-based. Dragon-Network Other extras: Raid Bosses with defined respawn times, rich loot systems, improved QOL features like improved buffs, combo songs/dances, tattoo system, etc. Dragon-Network 🎮 Why This Server Matters You’re playing Interlude+, but with modern enhancements — classic content with new mechanics, not a simple resurrect of the old. PvP and events are daily and structured, so you don’t wait weeks to engage. We’ve designed progression to be meaningful: rewards, class changes, content unlocks all move you forward without feeling pay-to-win. Community-first: Whether you enter solo or with friends, you’ll find team action, clans forming, and events where everyone has a chance to shine. 🗺 What to Do Next Visit our website: dragon-network.eu (check out the “Features” tab for full details) Prepare your Master Account, get your clan or buddies ready. On launch day (Nov 21), log in early, grab your spot, participate in the first TvT, and start building your legacy. Get ready — the gates open soon. The grind begins. The battles await. Will you rise to become legend on Dragon-Network? 🐉 Feel free to ask any questions below or share this post with your friends. Let’s make this launch one to remember.
  • 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