Jump to content

Recommended Posts

Posted

Well , Since It's My Very FIRST Java Creation , I Want To Hear Your Opinions..

 

This Is A Custom Item , That Allows You When You Double-Click On It , To Grand You With Noblesse Status + Noblesse Skills . ( For Ever. NOT Until Restart! )

 

NOTE!: Tested On L2JFree And L2J And It's Working. ( The Following Guide Is For L2J )

 

 

Okay Let's Start..

 

 

First , Go To java.net.sf.l2j.gameserver.handler.itemhandlers

And Create a New .java File Named "NobleCustomItem" ( Without The Quotes )

 

Second , Open It And Paste Inside It , These :

 

// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov  Date: 5/10/2008 2:12:00 μμ
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   NobleCustomItem.java

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.ActionFailed;
import net.sf.l2j.gameserver.network.serverpackets.SocialAction;

public class NobleCustomItem
    implements IItemHandler
{

    public NobleCustomItem()
    {
    }

    public void useItem(L2PlayableInstance playable, L2ItemInstance item)
    {
        if(Config.NOBLE_CUSTOM_ITEMS)
        {
            if(!(playable instanceof L2PcInstance))
                return;
            L2PcInstance activeChar = (L2PcInstance)playable;
            if(activeChar.isNoble())
            {
                activeChar.sendMessage("You Are Already A Noblesse!.");
            } else
            {
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
                activeChar.setNoble(true);
                activeChar.sendMessage("You Are Now a Noble,You Are Granted With Noblesse Status , And Noblesse Skills.");
                activeChar.broadcastUserInfo();
                playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
            }
        }
    }

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

    private static final int ITEM_IDS[] = {
        6673
    };

}

 

Third , Save It And Close It.

 

Fourth , Go To  java.config

Find The File "Character.properties" And Open It.

 

Go At The Bottom And Paste This :

#============================================================#
#                          Custom Noblesse Item Configuration                                  #
#============================================================#


# Noble Custom Item Configuration.
# Item Id = 7196.
# When ActiveChar will use this item will gain Noble Status.

EnableNobleCustomItem = True

 

Save It And Close It.

 

Fifth , Go To java.net.sf.l2j

And Find The File "Config.java"

 

Find This Line  :

    public static int		PARTY_XP_CUTOFF_LEVEL;

 

And Paste This Right After It :

    public static boolean 	NOBLE_CUSTOM_ITEMS;

 

Now , Find This Line :

                PARTY_XP_CUTOFF_LEVEL				= Integer.parseInt(Character.getProperty("PartyXpCutoffLevel", "30"));

 

And Paste This Right After It :

                NOBLE_CUSTOM_ITEMS              = Boolean.parseBoolean(Character.getProperty("EnableNobleCustomItem", "true"));

 

Save It , And Close It.

 

Sixth, Go To java.net.sf.l2j.gameserver.handler

And Find The File "ItemHandler.java" Open It.

 

Find This :

import net.sf.l2j.gameserver.handler.itemhandlers.*;

 

And Paste This Right After It :

import net.sf.l2j.gameserver.handler.itemhandlers.NobleCustomItem;

 

Then Find This :

	registerItemHandler(new SpiritLake());

 

And Paste This , Right After It :

                registerItemHandler(new NobleCustomItem());

 

Save It And Close It.

 

Seventh, Compile Your Gs ( Via Maven , Ant Build Doesn't Really Matter..But Since I Use L2J I Did It Via Ant Build ) And You Are Okay..!

 

Enjoy!

 

P.S: Special Thanks To Cobra For Showing Me The First Steps Of Java...

Also , I'll Post a Video Later In Order To See What This Item Does..

 

[EDIT]

 

 

Ready Patch Files ( .diff )

 

http://www.4shared.com/file/87327813/a83a8f7a/NobleCustomItem.html

 

 

 

Posted

its awsome dude!! gg bro you rock!

 

nothing special....

 

for ppl without java  knowledge is just copy/past the "hero item handler"  and change only this part

activeChar.setNoble(true);

... shared by mafia

Posted

Good Job Stefoulis ;)

 

nothing special....

 

for ppl without java  knowledge is just copy/past the "hero item handler"  and change only this part

activeChar.setNoble(true);

... shared by mafia

 

About you, why dont you show us your Uber Mega Java Skills By Creating something by your Own ? (Using JAVA), Istead of criticizing other ppl work.

 

thanks again Stefoulis. Much appreciated.

Posted

Good Job Stefoulis ;)

 

About you, why dont you show us your Uber Mega Java Skills By Creating something by your Own ? (Using JAVA), Istead of criticizing other ppl work.

 

thanks again Stefoulis. Much appreciated.

 

LOL IiIiJacKiIiI you are omfg...Have you ever seen Fogotend's shares?? LOL...Learn first then speak..(check forum for his creations)..Anyway Stefoulis Thank you for the awesome share..

 

Posted

nothing special....

 

for ppl without java  knowledge is just copy/past the "hero item handler"  and change only this part

activeChar.setNoble(true);

... shared by mafia

 

Look the other share is from Vago and Hanwik did it .... the wrong on other share is the item can't be disapear ..

 

Wen the Character press on the item ....!! So if you understand about java you must see it ....!!!

 

Anyway ([Gr]O kathenas me tin trela tou)

 

//End

 

p.s: Stef Again you do great job :)

 

Posted

Look the other share is from Vago and Hanwik did it .... the wrong on other share is the item can't be disapear ..

 

Wen the Character press on the item ....!! So if you understand about java you must see it ....!!!

 

Anyway ([Gr]O kathenas me tin trela tou)

 

//End

 

 

Yep I agree with you...(3 months ago I played in a server and when i click 1 item i get full buffs..I will check it in mxc forum..)

[GR]Ti na peis....Epeidi o allos dn kanei search nomizei oti o Fogotend einai kanenas tyxaiws pou aplos einai perastikos apo to mxc...Anyway o ka8enas me tn trela tou edw mesa :)

Posted

nothing special....

 

for ppl without java  knowledge is just copy/past the "hero item handler"  and change only this part

activeChar.setNoble(true);

... shared by mafia

 

Man he learn how to make things in java...

I dont know why but there are some ppl like you who said its not a big deal easy to make but thats nonsense because you talk but dont do anything i see too many ppl in mxc like you...

correct me if i'm wrong but i dont see any JAVA guide share or else from you only a subclass delay(but its implemented in l2jfree so easy to have it...) make a USEFULL JAVA share when you have it you can talk like that but until you dont have it plz let them to learn java and dont insult them...

Posted

Man he learn how to make things in java...

I dont know why but there are some ppl like you who said its not a big deal easy to make but thats nonsense because you talk but dont do anything i see too many ppl in mxc like you...

correct me if i'm wrong but i dont see any JAVA guide share or else from you only a subclass delay(but its implemented in l2jfree so easy to have it...) make a USEFULL JAVA share when you have it you can talk like that but until you dont have it plz let them to learn java and dont insult them...

 

Look his insulting style is F@cking wrong but he knows things(L2 modding etc...)I didnt agree with IiIiJacKiIiI because he said that Fogotend didnt make any good share..Anyway all these things are offtopic...

Posted

Look his insulting style is F@cking wrong but he knows things(L2 modding etc...)I didnt agree with IiIiJacKiIiI because he said that Fogotend didnt make any good share..Anyway all these things are offtopic...

 

Thats all nice and good BUT you dont understand my reply i said LET THEM LEARN...look what stef said: Well , Since It's My Very FIRST Java Creation , I Want To Hear Your Opinions.. for fogotend its not a hard thing to make?thats ok but for stef its a good start because java is not an easy thing and because of that the only thing we can do is thanks the work he made not reply like this: for ppl without java  knowledge is just copy/paste... ahh i really start to understand why A-style leave...

Posted

Well ,Thanks For Your Comments People..

 

Also , Yes Maybe It Is a C/p Fogotendx20 for people without java knowledge..

 

but u can check that the people that created the hero item , wasn't working fully..

 

so it can't be a c/p

 

 

W/e , I'll Continue Creating Things.. Don't Really Care If You Like It Or Not.

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

    • I have a highly customized Hi5 pack based on L2JMobius with a lot of features for performance and modern game design. Disclaimer: I do not run any public server, but I run a "private" server for a group of 10 friends and about 2000 AI bots that required me to do heavy modifications on core systems of the game.  So my opinion will obivously be biased towards L2JMobius.   What I can tell you though without bias is: Most of the features you are asking for are nowadays considered de-facto, don't pay money for them. TvT, offline mode, community boards, premiums, vote rewards are in most packs including the open source ones. So before you pay a thousand plus euro for a pack ask yourself what you are paying that money for, that open source packs don't have.   Also a lot of the "strong points" some old packs were made for are nowadays obsolete. L2JFree derived packs for example used to have a lot of GC optimizations (Trove library) which are not not maintained, but most importantly not needed cause Java has evolved a lot since then and the performance issues these tricks tried to solve back then, are currently solved by Java's JVM itself. So if someone tries to sell you packed / unpacked integers in special hashmap data structures and other such things know that they have really lost their value nowadays.    A lot of people are selling thin air, things that everyone has. "Quality geodata" being one of them. I mean what's "quality geodata" ? Has someone painted them by hand ? Hell there's an online tool for free in github that extracts quality geodata, I think Galagard made it ? In contrast I'll tell you without wanting to boast about it that I use 3D navmesh on my project because 2000 bots could not pathfind large distances on A* on geodata. As far as I know, L2JMobius has it in its subscription version too. So if I could do an acceptable transition to navmesh from geodata in a week alone, I would assume that a decent pack with dedicated developers could do it better and faster. Red flag if someone still tries to sell you geodata in 2026.   Multi-protocol support gives small value and is a high risk.   I would not go for multi-protocol support for a public server cause you are locking yourself to specific providers and the functionality they support. If you need to change (eg pricing issues), you will be locked to a handful of providers. And what are you really gaining from a new client on an old game version ? Better UI ? The engine is still the same, static targeting and menus.    Agentic AI will make old hard features easy to implement, and drop their money value. Pay for AI-proof value. And compared to what most insecure devs claim, its a very powerful tool that allows those who know how to use it to accelerate their development. So a lot of features that took in the past a lot of time and effort to be developed and were a reason to charge money, are becoming a commodity today. So think to: The thing I am paying money for right now, how easy will it be to implement in a year from now ? If for example you are paying money for a game launcher that Claude Code can generate in top 1 hour without issues, I think you are wasting money.    I want to emphasise this a lot. Software engineering is in a transition atm. Most things that were mediocre to implement, launchers, guards, CMS, are nowadays easy. Yet the dev community continues to market them as premium content. They are not, sooner or later, when everyone starts selling them, they will realize that they will have to offer value in more complex features.  Private or public ? Bottom line is that a private pack and 1000 euro wont get you a sucessful server. You're the one that make it or break it. There have been many sucessful servers both in private packs and public packs in the past. It's really on the hands of the beholder, not on the source. A pack that plays good is a good indicator to buy as Trance said, but I would disagree that it's not enough. A server owner is not a player. He's a business man and has to account for longevity, vendor lock-in, expandability, hidden costs,  amortization, price changes and many more. Don't pick a pack based on how it played only.    
    • You don’t even need to look for a ghost project. Just buy the files from a project you’ve personally tested or played. That’s a much better starting point.
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • You have to put deep inside your pocket for something like this, for sure 😄
    • Hello everyone, I'm looking for a High Five Java server pack for a long-term project. I'm not looking for free packs. I'm interested in purchasing a professional pack with full source code if it's worth the investment. My priorities are: Stable core Clean and well-structured source code Good geodata and AI Modern Community Board Offline Trade / Offline Craft Premium Account system Vote Reward system Auto Events (TvT, CTF, DM, etc.) HWID protection Auto Farm  Buffer / QoL systems Modern admin tools Good Olympiad & Seven Signs implementation Excellent instance support (Freya, Frintezza, Zaken, Beleth, etc.) A huge bonus would be: Multi-protocol support (High Five + newer clients such as Salvation/Classical clients) Full source code (no closed binaries) Some custom things over Elegia At the moment I'm considering packs like Sunrise and L2-Scripts, but I'd really like to hear opinions from people who have actually worked with them. If you've been running a serious High Five project, I'd appreciate your honest feedback: Which pack are you using? What are its strengths and weaknesses? Would you buy it again? Are there any better alternatives available today? I'm looking for real experience rather than advertisements. Thanks!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..