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

    • WE HAVE VERY BIG DISCOUNTS ON ADEN, ITEMS, AND ACCOUNTS!!! HURRY TO BUY!!! DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Connect to the server you need to >>>download a patch<<< Login server setup on autoregistration, admin rights in game by default . Or you can use a patch specifying the l2.ini Connect to address auth.lucera2.com All major/minor subsystems operate in a proper view. Absolutely ready to combat the server.
    • Specification: The above products work was carried out during 10 years. The main blow we did on:   Asynchronous network tested in a live online 5000 online without lag   Augmentation system according to the official server.   Normal operating GEODATA and geo engine.   Official spawn system, loot, an item of skills, etc. - All data in XML format   Working on offlike quests and refinement.   Adequate AI, corresponding PTS-server.   Operating system skills.   The normal system of working with objects in the "world", close to the pts-server.   Siege close to the official server, without lags and bugs.   Fully working Olympiad without problems and fully configurable.   Advanced version control system and bug reports allow you to quickly solve a problem Now we invite all who wish to use a product that has no analogues in the market builds Interlude. Rate quality: Test server is always available for you What is included: We have split the price of the license - the kit includes all:  Event - TvT, CtF, DM, Event Finder and other game events that are available on the server.  "Proxy slider" for DDOS protection. Geodata all our production. Community Bordes in 2 versions - a full formal look and functionality of a custom and a Buffer etc. The vast number of services in Community, and at NPC The assembly is adapted to systems of protection against packet hacks - Smart-Guard, Strix-Guard, Active-AntiCheat Phantom system (fake players) Auto Farm system for players You can also write their own scripts and plug Extension - we have available an API for developers and a bunch of guides And a lot of more. The price and terms of sale: The product is provided 100% prepayment. The product is sold under license, after the acquisition you will need to go through the activation process, together with support staff and receive a serial key The cost of the full package is 120 USD. Later monthly cost support is 20 USD, which includes an update(access to repository) of the product and is not binding on delivery - optional payment, only if you need access to updates. We do not sell source code and do not recommend any developers! We do not write any addons for money and do not maintain an individual code! We write add-ons for all participants and place them on the repository - if any new mod is relevant in the current realities. The assembly is provided with a binding for a key, and is available in one external Ip address (License IP you can change for free). This file provides a fully compiled state.
    • Hardware: Processor - 4-core ARM/x86 RAM - 5 gigabytes (for the Java process) Hard drive - 20 GB, preferably with a large cache or SSD   Software: Oracle Java SE Runtime Environment 17 MySQL 5.7 or higher (Minimum 5.7, It is recommended to install the latest version from the developer's website) or MariaDB 10.5 and higher   Operating Systems: Any operating system you feel comfortable working with and are proficient in! It can be any fresh Server/regular Win OS or Linux or Unix.   User Profile: Basic knowledge of English, basic understanding of algebra and geometry
    • Dunno, but there is as much L2Pride server as L2gold ones
  • 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