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

    • Good evening everyone! I wouldn't normally ask for help with something like this, but I'm honestly stuck and can't figure it out anymore. I have a C3 pack (I'll also include the link below since it took me a while to find a good one with everything needed to run it): (https://www.mediafire.com/file/glhnscql6hkd6ra/l2jnvc3_rev178_Greenhope_l2j_%2Bjava_%2Bsql.zip/file) The problem is that I'm completely stuck on one thing. No matter what I do, I can't log in. I keep getting a "wrong protocol" error. I've tried changing the protocol from 550–700 all the way to 1–999. I've tested many different C3 versions and every main system I could find, but I still haven't managed to log in successfully. I'm not sure if I'm doing something wrong when saving the .ini file after changing it to my server's IP address. If anyone could help me, I would really appreciate it. I'll keep the server online so that if someone is willing to assist, they can try logging in and help me figure out what's wrong. Server IP: 194.219.108.63 Thank you very much in advance to anyone who decides to take the time to help me. I'd really love to get this pack running properly and preserve it for the future.
    • Anosim Update   - New updated design is live - Free Numbers added on the mainpage - Use free numbers for activation - Receive SMS for free   ⸻   New Blog added Future news, updates and platform changes will be posted there   ⸻   Partner Section added New space for partners and integrations   ⸻   New Websites for Activation added   🇩🇪 Germany wg-gesucht.de dikidi.net 🇨🇭 Switzerland Tutti.ch Ricardo.ch 🇦🇺 Australia Gumtree.com.au 🇬🇧 UK Askable.com   ⸻   New Countries added for Activation   🇦🇷 Argentina 🇧🇬 Bulgaria 🇨🇲 Cameroon 🇭🇷 Croatia 🇬🇷 Greece 🇰🇿 Kazakhstan 🇲🇦 Morocco   ⸻   New Full Rent 🇬🇪 Georgia +995 Numbers Full Rent now available Real SIM Cards No VoIP   ⸻   Available now on https://anosim.net
    • Shadowsocks Released   World’s first Dedicated Mobile Proxy with Shadowsocks support. Dedicated 4G/5G mobile proxies can now be used with Shadowsocks.   New dedicated mobile proxy locations added: 🇩🇪 Germany (Leipzig) 🇳🇬 Nigeria (Lagos) 🇺🇸 USA (South Haven)   Also available: 🌐 Residential Proxies from $1/GB   ⚡️ Datacenter Proxies from $0.50/GB   Available now on Proxied.   https://proxied.com For Free Trials, write us a DM with your registered E-mail.
  • 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..