Jump to content

Recommended Posts

  • 2 weeks later...
  • 4 weeks later...
Posted

im make some changes, im like beuty things .. so this is most beuty than old :D

 

Change Log

- Social 16  (Light) Removed

- Added as Effect 2025 (Firewrks)

- Changed Item ID

- Messages Reworked 100% .. you can see Messages in Html File

 

New Code

package net.sf.l2j.gameserver.handler.itemhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;
import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;

public class NobleCustomItem implements IItemHandler
{
    private static final int ITEM_IDS[] =
    { 
    9171
    };


    public void useItem(L2PlayableInstance playable, L2ItemInstance item)
    {
        if(Config.NOBLE_CUSTOM_ITEMS)
        {
            if(!(playable instanceof L2PcInstance))
                return;
            L2PcInstance activeChar = (L2PcInstance)playable;
            if(activeChar.isNoble())
            {
            	NpcHtmlMessage HtmlMessage = new NpcHtmlMessage(1);
            	HtmlMessage.setHtml("<html><body>Sorry, You are already Noblesse!</html></body>");
            	activeChar.sendPacket(HtmlMessage);
            } 
            else
            {
             activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 2025, 1, 1, 1));
            	activeChar.setNoble(true);
            	
            	NpcHtmlMessage HtmlMessage = new NpcHtmlMessage(1);
            	HtmlMessage.setHtml("<html><body>Congratulation, now you are Noblesse!</html></body>");
            	activeChar.sendPacket(HtmlMessage);
            	
            	activeChar.broadcastUserInfo();
                playable.destroyItem("Destroy", item.getObjectId(), 1, null, false);
            }
        }
    }

    public int[] getItemIds()
    {
        return ITEM_IDS;
    }

}

  • 1 month later...
Posted

Loled.... Well for sure it's not complete as i can see from code that there is no subclass request, that means you can get a noblesse status even if you started a game with char lvl 1 with no subclass, just the item required to do so :)

 

And why the hell item id is 6673 as i can see from this:

 

                private static final int ITEM_IDS[] = {

        6673

    };

 

And you pointed a different in *.config section?

 

Anyways nice try, just keep your work up and don't forget to support other ppl, as you said you will...

  • 1 month later...
  • 1 month later...
Posted

As I see this is a very old post that someone dug up. Can anyone just tell us how to register this in itemhandler for Gracia final? because in itemhandler.java there is no

registerItemHandler(new SpiritLake());so where do we put this registerItemHandler(new NobleCustomItem());

in l2jfree there is such a place to register a new item BUT not in l2j

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
Reply to this topic...

×   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

    • 🤝 SocNet is looking for new partners and suppliers!  We are building a reliable partner network across all areas of online business.  If you're in digital, traffic, accounts, or media — let’s discuss collaboration opportunities. 📌 Open to:  — Webmasters and media buyers  — Telegram channel and website owners  — Sellers of accounts and auto-registered profiles  — Developers of digital services  — Marketing agencies and freelancers 💬 We value quality, transparency, and growth. If that resonates with you — get in touch! 📎 Our current list of partners:  🔗 https://socnet.bgng.io/partners 📦 Our key products:  🛒 Online Store: Click ✅  🤖 Telegram Bot: Click ✅  📲 SMM Panel: Click ✅ 📩 Contact us:  💬 Telegram: https://t.me/solomon_bog  📱 WhatsApp: https://wa.me/79051904467  🎮 Discord: https://discord.gg/y9AStFFsrh  📧 Email: solomonbog@socnet.store 📢 Follow updates: https://t.me/accsforyou_shop ✅
    • 🤝 SocNet is looking for new partners and suppliers!  We are building a reliable partner network across all areas of online business.  If you're in digital, traffic, accounts, or media — let’s discuss collaboration opportunities. 📌 Open to:  — Webmasters and media buyers  — Telegram channel and website owners  — Sellers of accounts and auto-registered profiles  — Developers of digital services  — Marketing agencies and freelancers 💬 We value quality, transparency, and growth. If that resonates with you — get in touch!   📎 Our current list of partners:  🔗 https://socnet.bgng.io/partners   📦 Our key products:  🛒 Online Store: Click ✅  🤖 Telegram Bot: Click ✅  📲 SMM Panel: Click ✅   📩 Contact us:  💬 Telegram: https://t.me/solomon_bog   📱 WhatsApp: https://wa.me/79051904467  🎮 Discord: https://discord.gg/y9AStFFsrh  📧 Email: solomonbog@socnet.store   📢 Follow updates: https://t.me/accsforyou_shop ✅
    • 🔥 **L2MADPvP - Interlude x1200 | GRAND OPENING 19  2025!** 🔥 ✅ Classic Interlude PvP experience — No custom items, only fair gameplay. ✅ Balanced classes — No OP donations, pure skill PvP. ✅ Epic battles, daily GM events, active community. ✅ Auto Farm areas — No grind, just fight! ✅ Vote Reward system — Earn Donate Coins for free. 🌍 Website: www.l2madpvp.com   💬 Join our Discord: https://discord.gg/qDmRjMQ2   🎁 Grand Opening Giveaway  🗓️ Opening: **23/07/2025 at 16:00 GMT+2** 👉 Gather your clan, dominate the battlefield & become legend!
    • [center][size=6][b][color=#FF0000]🔥 L2MadPvP - Lineage 2 Interlude 🔥[/color][/b][/size] [b]🌍 Website:[/b] [url=https://www.L2MadPvP.com]www.L2MadPvP.com[/url]   [b]💬 Discord:[/b] [i]Coming Soon[/i] (Βάλε το link σου εδώ)   [b]📅 Grand Opening:[/b] [i]Βάλε ημερομηνία[/i] [hr] [size=5][b][color=#00BFFF]🎯 Server Rates[/color][/b][/size] [b]• Instant Level:[/b] 80   [b]• EXP/SP:[/b] x1200   [b]• Drop:[/b] Custom   [b]• Epic RB Jewel Drop:[/b] x1 (Most Damage) [hr] [size=5][b][color=#00BFFF]🔨 Enchant Details[/color][/b][/size] [b]• Safe Enchant:[/b] +3   [b]• Max Blessed Enchant:[/b] +14   [b]• Max Crystal Enchant:[/b] +16 [b]• Normal Scroll Chance:[/b] 65% (+0 → +14)   [b]• Blessed Scroll Chance:[/b] 100% (+0 → +14)   [b]• Crystal Scroll Chance:[/b] 50% (+14 → +16) [i](Fail = Same enchant)[/i] [b]• Custom Scroll Chance:[/b]   → +0 → +16: 100%   → +16 → +17: 95%   → +17 → +18: 90%   → +18 → +19: 85%   → +19 → +20: 80% [i]Fail = Item remains at previous enchant.[/i]   Example: Fail from +19 → +20 = stays +19 [hr] [size=5][b][color=#00BFFF]💎 Augmentation[/color][/b][/size] [b]• Max Augment Skills:[/b] 1 Active + 1 Passive   [b]• High Grade Lifestone:[/b] 10%   [b]• Top Grade Lifestone:[/b] 20% [hr] [b][color=#FF0000]👉 JOIN US NOW! PvP Madness Awaits![/color][/b]   [url=https://www.L2MadPvP.com][b]🌐 www.L2MadPvP.com[/b][/url][/center]
    • I don't have a verification code! So in that case, I can't run it and open it offline on my computer? Why did you post the files if they need verification?
  • 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