Jump to content

Recommended Posts

Posted

Γεια σας και πάλι έχω βρει ένα java code με το οποίο κάνεις ένα item που μπορείς να είσαι hero μέχρι να κάνεις restart..

 

Πρώτα απ' όλα πρέπει να πάτε εδώ : net.sf.l2j.gameserver.handler.itemhandlers και κάντε ένα file με όνομα HeroItem.java

 

/*

* This program is free software: you can redistribute it and/or modify it under

* the terms of the GNU General Public License as published by the Free Software

* Foundation, either version 3 of the License, or (at your option) any later

* version.

*

* This program is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS

* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more

* details.

*

* You should have received a copy of the GNU General Public License along with

* this program. If not, see <http://www.gnu.org/licenses/>.

*/

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

 

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;

 

 

/**

*

* @author  HanWik

*/

public class HeroItem implements IItemHandler

{

  private static final int[] ITEM_IDS = { Το Item ID εδώ };

 

  public void useItem(L2PlayableInstance playable, L2ItemInstance item)

  {

      if (!(playable instanceof L2PcInstance))

        return;

      L2PcInstance activeChar = (L2PcInstance)playable;

      int itemId = item.getItemId();

     

      if (itemId == To Item ID εδώ) // Item to become hero

      {

          activeChar.setHero(true);

          activeChar.broadcastUserInfo();

      }

  }

 

  /**

    * @see net.sf.l2j.gameserver.handler.IItemHandler#getItemIds()

    */

  public int[] getItemIds()

  {

      return ITEM_IDS;

  }

}

 

Μετά πηγαίνουμε εδώ : GameServer.java και προσθέτουμε αυτά...

 

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

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

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

 

      _itemHandler.registerItemHandler(new BeastSpice());

      _itemHandler.registerItemHandler(new HeroItem());

 

 

Credits Go To HanWik !!

Posted

Είναι κάπου εδώ μέσα στο Forum βαθιά βαθιά μέσα ... Και απλώς εγώ το ξανά έκανα Share γιατί ήταν πολύ πίσω !! Γράφω Credits : HanWik

Posted

Είναι κάπου εδώ μέσα στο Forum βαθιά βαθιά μέσα ... Και απλώς εγώ το ξανά έκανα Share γιατί ήταν πολύ πίσω !! Γράφω Credits : HanWik

lol..με αυτήν την λογική όλα τα βαθιά θαμμένα share θα ξαναγίνουνε και τα 'φρέσκα' θα φαυτούνε μέσα σε λίγες μέρες...

το βρίσκω απίστευα useless αυτό που έκανες.

Posted

lol..με αυτήν την λογική όλα τα βαθιά θαμμένα share θα ξαναγίνουνε και τα 'φρέσκα' θα φαυτούνε μέσα σε λίγες μέρες...

το βρίσκω απίστευα useless αυτό που έκανες.

 

όπως νομίζει κανείς !!

Guest
This topic is now closed to further replies.


  • Posts

    • 🔥 L2Pride Interlude by DVP is NOW LIVE! 🔥 📅 Opened on June 10, 2026 at 21:00 GMT+2 ⚔️ The server is currently in the Tier 1 stage, giving everyone a fair chance to gear up and compete. 🔓 Tier 2 Items will be unlocked on June 27, 2026! ✅ Active players ✅ Stable server ✅ Competitive PvP ✅ Growing community Whether you're a solo player, clan leader, or PvP enthusiast, now is the perfect time to join and prepare for the next stage of progression. See you in-game, warriors! ⚔️ WEB: www.l2pride.ddns.net DISCORD: https://discord.gg/JVdpESC5Ry
    • Stock updates constantly. Only top items are posted on the forum. For current availability and ordering, message us on Telegram.   G2G Business 🇪🇺 EU Fully verified seller's account.   Revolut Business 🇪🇺 EU | Multi-currency IBAN, Virtual & physical cards, Instant SEPA transfers, ₿ Crypto exchange & settlements.   SumUp Business 🇬🇧 GB | POS, 1 physical card, 2 virtual cards. Payouts time: 1 day even on weekends and bank holidays, Multi-user access.   Vivid Business | Merchant POS, DE IBAN, up to 50 IBANs, SEPA Instant, unlimited transfers, up to 25 virtual and 3 physical cards.
    • 🔎 Find us: 👉🏼 Website: L2Dexter.eu 👉🏼 Discord: discord.gg/dttX9FE23W 👉🏼 Facebook: facebook.com/L2Dexter
    • G Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • REAL PHOTOS ALWAYS «BREAK» ▪ Think a high-quality photo should be perfect? Think again. In real shots, something is almost always “off”: ▪ Noise in the shadows — especially noticeable in low light ▪ Local overexposures on highlights and glossy surfaces ▪ Loss of fine details in the brightest and darkest areas ▪ Overall “dirt” and unevenness that no editor can fully remove ▪  It’s exactly these imperfections that make the frame look alive. Algorithms already know well: a sterile clean image without these “flaws” is almost always a fake. Reality is never perfect. A fake tries to be.  Want photos that look genuinely “broken,” like they were taken on a real phone? Write to us — we’ll make even the flaws work in your favor. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #photoshop #verication #fake
  • 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..