Jump to content

Recommended Posts

Posted

Hello !

Here is mine simple script.

This script will allow the normal players to equip the hero items !

And Here is it:

Index: /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java

===================================================================

--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java (revision 341)

+++ /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java (revision 342)

@@ -319,4 +319,5 @@

    public static int      DONATOR_NAME_COLOR;

    public static int      DONATOR_TITLE_COLOR;

+    public static boolean  STRICT_HERO_SYSTEM;

   

    /** Event Settings Parameters */

@@ -1653,4 +1654,5 @@

                DONATOR_NAME_COLOR              = Integer.decode("0x" + Modifications.getProperty("DonatorColorName", "00FFFF"));

                DONATOR_TITLE_COLOR              = Integer.decode("0x" + Modifications.getProperty("DonatorTitleColor", "00FF00"));

+                STRICT_HERO_SYSTEM              = Boolean.parseBoolean(Modifications.getProperty("StrictHeroSystem", "true"));

            }

            catch (Exception e)

Index: /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java

===================================================================

--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java (revision 281)

+++ /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java (revision 342)

@@ -936,6 +936,5 @@

            L2PcInstance player = (L2PcInstance)getOwner();

           

-            if(!player.isGM())

-                if (!player.isHero())

+            if (Config.STRICT_HERO_SYSTEM && !player.isGM() &&  !player.isHero())

                {

                    int itemId = item.getItemId();

@@ -1197,6 +1196,5 @@

                L2PcInstance player = (L2PcInstance)getOwner();

               

-                 if(!player.isGM())

-                     if (!player.isHero())

+                 if (Config.STRICT_HERO_SYSTEM && !player.isGM() &&  !player.isHero())

                    {

                        int itemId = item.getItemId();

Index: /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties

===================================================================

--- /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties (revision 341)

+++ /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties (revision 342)

@@ -233,4 +233,8 @@

EnchantHeroWeapons = False

 

+# Hero Items Can Be Weared Only By Heros ?

+# Default: True

+StrictHeroSystem = True

+

Its realy simple.

I hope that is useful

  • 1 month later...
Posted

Oh come on... Share for JUST an if statement? You have to be kidding... This exists everywhere.

 

 

are you sure ? I have seeng it only in l2emu

  • 1 year later...
Posted

are you sure ? I have seeng it only in l2emu

 

You can't say that because e.g: I can me too or somebody else to take a look into Inventory.java and we can see these linies and then make this config. If other had the same idea before us that doesn't mean isn't our work (I can't call it "work" but whatever).

  • 6 months later...
  • 1 month later...

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

    • Hello, I'd like to share with you a web template of me. https://www.mediafire.com/file/cslzde4h89it91y/Shinemaker.rar/file    
    • I never touch client, but now i want to use lordanov shared interface, but when i use it my lobby background change. in loging screen shows this static image: https://ibb.co/QF47WDmC But if i click on RECORD normal lobby shows up https://ibb.co/tpsG6F3G any idea how to fix it? i been looking for a solution, this thing happen when i paste interface.u file i decompiled interface.u but no idea where to do changes... thanks in advance, and sorry for poor english,
    • 🎙️ 1/ Creators, meet your new favorite tool: Chord.fm Record. Enhance. Deliver. A fully AI-powered recording studio, right in your browser. 🎧 Whether you're a podcaster, interviewer, or team running remote interviews — this is your upgrade. 🎥 2/ Record high-quality audio & video effortlessly ✅ Up to 4K video ✅ Uncompressed WAV audio ✅ Network-proof performance ✅ Multi-participant recording ✅ AI-powered post-processing 💡 No more "can you hear me?" moments. 🔊 3/ Get individual tracks for every participant One of Chord.fm’s superpowers: 🎚️ Each speaker's audio/video is recorded and exported separately. Perfect for post-production: 🎛️ Clean edits 🎧 Custom audio mixes 🎙️ Noise isolation per track   🧠 4/ Let AI do the heavy lifting 💬 Auto-generated subtitles 📝 Transcriptions you can trust 🧾 Smart summarization of recordings 🔍 Keyword highlights & topics Turn raw content into share-ready material without lifting a finger. 🧰 5/ Built for creators who value quality 🎬 Audiograms from your voice 🎚️ Auto-leveling 🌐 Browser-based (no install) 📁 Local backups during recording ⏱️ Time-saving features everywhere Chord.fm isn’t a Zoom alternative — it’s a production studio. 🚀 6/ Ready to level up? If you’re creating podcasts, interviews, or async team content — Chord.fm is what you've been waiting for. 🆓 Start for free: https://chord.fm You won't look back.
    • Who doesn't? 🤣 On topic. I would suggest you to work on Mobius files since there is a lot of space to work on things. @Mobius has done amazing job and deserves as match help as possible, this guy needs to be rewarded! Different type of packs since he has the most of the chronicles. I dont want to say that aCis hasn't done amazing job, it's one of the most stable and oldest projects around but I'm with mobius just because he supports way more clients. Working on either of projects will make you better.
  • 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