Jump to content

Recommended Posts

Posted

Hello there. This is my first java creation that i create without help ;D

Its a item and when you click it it gives you 100.000.000 adena.

 

Lets start.

 

Go to config.java and find this

public static int BANKING_SYSTEM_ADENA;

 

After this add

	/** Adena custom item */
public static boolean ADENA_CUSTOM_ITEM;

 

Then find

TIME_BETWEEN_EVENTS          		    = Integer.parseInt(L2JModSettings.getProperty("TimeBetweenEvents", "60"));

 

And after this add

								// Adena custom item
							ADENA_CUSTOM_ITEM = Boolean.parseBoolean(L2JModSettings
                                                                                 .getProperty("EnableAdenaCustomItem", "false"));

 

Then go to - net.sf.l2j.gameserver.handler.itemhandlers create a new file named AdenaItem.java and paste this

/*
* 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 2, 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
/**
* Adena Item Handler
*
* @author uNiQue
*/

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;
public class AdenaItem
    implements IItemHandler
{

    public AdenaItem()
    {
    }

    public void useItem(L2PlayableInstance playable, L2ItemInstance item)
    {
        if(Config.ADENA_CUSTOM_ITEM)
        {
            if(!(playable instanceof L2PcInstance))
                return;
            L2PcInstance activeChar = (L2PcInstance)playable;
            {
                playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
                activeChar.sendMessage("(1) Festival adena disappeared. You have received 100.000.000 adena.");
                activeChar.getInventory().addItem("Adena", 57, 100000000, activeChar, null);
            }
        }
    }

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

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

}

 

Save it and go to net.sf.l2j.gameserver.handler.itemhandlers.

And add this

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

 

Then find this

		registerItemHandler(new SpiritLake());

And after this paste

                registerItemHandler(new AdenaItem());

 

The last thing that we have to do is to add the item to configs

Go to l2jmods.properties down down

and paste this

# Adena item - By one click you get 100.000.000
# Item ID = 6673
EnableAdenaItem = True

 

hf ;]

  • 10 months later...
  • 2 weeks later...
  • 3 weeks later...
Posted

Author of this share, was active last time:   June 28, 2009, 01:29:08 PM

 

So better add it manually and don't expect patch.

  • 8 months later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.



  • Posts

    • Hi, could someone please share a C1 L2 Off cheat code for local play?
    • I’ve worked with a web designer Tacoma before, and it really reminded me how much smoother projects run when design and development stay in sync. Your setup looks solid, and pairing clean UI work with steady backend support can save a ton of back‑and‑forth later. If you ever decide to push harder on conversions or need outside perspective on structure, that mix helped me spot gaps early on.
    • If you’re juggling mixed payment methods and tricky setups, I’ve found that easing the pressure on the subscription side can make the whole flow smoother. I started using Subscription Revenue Growth for handling my own recurring payments, upgrades, and all that messy churn stuff, and it took a big weight off. Pairing something stable for subs with your gateway setup can keep cashflow from going off the rails.
    • L2Avalon launches February 20 High Five project (Salvation client) focused on classic world progression — not instance spam and not “twink” metas. What is L2Avalon? L2Avalon is built around real Lineage 2 gameplay: farming spots, open world conflict, raids, epics, economy and competition. No Kamael Reduced instanced content **Discord:** https://discord.gg/NbM2cXmAem 🌐 **Website:** https://l2avalon.net Balance & Economy Every class is tuned to be viable in PvE and PvP Off-meta classes get buffed instead of adding power-creep garbage Adena-based economy Farming matters: boosted Drop/Spoil for each stage of progression Rates & Settings Dynamic XP: 50x (Lv 1–40) → 1x (Lv 78+) Staged progression with new content unlocking weekly Adena / Drop / Spoil: 3x / 5x / 5x NPC Buffer: 2 hours (Premium: 3 hours) Box limit: 2+1 windows per PC MP potion: 1000 MP, 10s cooldown Free2Play System (earn Donate Coins by playing) You don’t have to donate to progress. Donate Coins drop in-game, so everything is achievable through playtime and activity. Where Donate Coins drop: Mobs Lv 76+, Raid Bosses Lv 70+, Epic Bosses Auto-farm (controlled) Limit: only 1 window can use auto-farm at the same time Daily time: 1 hour/day without Premium Extra tickets: purchasable with PC Bang points (earned by being online) Disabled zones: CC / IT / FOG / VARKA / KETRA Equipment Changes Reworked set bonuses Reworked SA system Enchanted set bonuses Enchanted shirt bonuses Fake Epic jewelry (weakened alternative) Skills (High Five mechanics) New skills added Old skills updated New enchant branches + updated existing ones Subclass skills Clan skills Daily Activities (solo-friendly) Events / Missions / Instances Stages Soon — stage schedule and weekly unlocks will be published February 20 — we start. **Discord:** https://discord.gg/NbM2cXmAem 🌐 **Website:** https://l2avalon.net
  • 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..

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