Jump to content
  • 0

[request][help]Gold Dragon gia hero


Question

Posted

Geia sas kai pali tha ithela ena item pou as poume an to patas na ginese hero.. px stn mafia einai to Gold Dragon kapws etc.. an mporeite na m dosete to id tous i na m peite pws to ftiaxnw tha sas eimoun evgnomon... :)

Recommended Posts

  • 0
Posted

afto m exei otan anigo to HeroCustomItem.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 com.equal.gameserver.handler.itemhandlers;

import com.equal.Config;
import com.equal.gameserver.handler.IItemHandler;
import com.equal.gameserver.model.L2ItemInstance;
import com.equal.gameserver.model.actor.instance.L2PcInstance;
import com.equal.gameserver.model.actor.instance.L2PlayableInstance;
import com.equal.gameserver.network.serverpackets.ActionFailed;
import com.equal.gameserver.network.serverpackets.SocialAction;

public class HeroCustomItem
    implements IItemHandler
{

    public HeroCustomItem()
    {
    }

    public void useItem(L2PlayableInstance playable, L2ItemInstance item)
    {
    	
        if(Config.HERO_CUSTOM_ITEMS)
        {
            if(!(playable instanceof L2PcInstance))
                return;
            L2PcInstance activeChar = (L2PcInstance)playable;
        	
            if (activeChar.isInOlympiadMode())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
            if (activeChar.isAlikeDead())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
            if (activeChar.isFestivalParticipant())
            {
            	activeChar.sendPacket(new ActionFailed());
            }
            if (activeChar.isSilentMoving())
            {
            	activeChar.sendPacket(new ActionFailed());
            }
            if (activeChar.isDead())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
            if (activeChar.isConfused())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
            if (activeChar.inObserverMode())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
            if (Config.ALLOW_USE_HERO_ITEM_ON_EVENTS)
            {
            if (activeChar.isInFunEvent())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}   
            }
            
            if (Config.ALLOW_USE_HERO_ITEM_ON_SUBCLASS)
            {    
            if (activeChar.isSubClassActive())
        	{
        		activeChar.sendPacket(new ActionFailed());
        	}
         }
            
            if(activeChar.isHero())
            {
                activeChar.sendMessage("You Are Already A Hero!.");
            } 
            else
            {
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
                activeChar.setHero(true);
                activeChar.sendMessage("You Are Now a Hero,You Are Granted With Hero Status , And Hero Skills.");
                activeChar.broadcastUserInfo();
                playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
                activeChar.getInventory().addItem("Wings", 6842, 1, activeChar, null);
            }
        }
    }

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

    private static final int ITEM_IDS[] = {
    	Config.HERO_ITEM_ID
    };
    
}

ti na kanw??

Guest
This topic is now closed to further replies.


  • Posts

    • WoW Midnight — AFK Fishing Bot v2.0     Fully rewritten. No more pixel detection. V2 is audio-only and paired with a companion addon that handles everything inside the game — one keybind does it all.     Showcase:                  What's new in v2.0 Audio-only detection. Listens for the splash. No screen scanning, no calibration, no zone tuning. It just works anywhere. One key for everything. Same keybind casts the line and loots the catch. Bound via the included BobberAssist addon. Auto-buff system. Drop your lures, teas, potions (Haranir Phial, Sanguithorn Tea, Ominous Octopus Lure, etc.) into the addon. Set a timer. The bot refreshes them automatically before each cast. Sit-and-fish mode. Optional — bot types /sit when you start. Fewer interrupts from Root Crabs and roaming mobs. Smart anti-AFK. Fires only between catches, never mid-cast. AutoDestroy addon included. Junk items deleted automatically after every catch. VB-CABLE support. Play music, Discord, YouTube with zero interference. Randomized timing — natural 50–120 ms reactions.                       Features One-key start (F6) — press and walk away Audio isolation via VB-CABLE — play music, YouTube, Discord with zero interference Configurable consumable auto-use (lures / baits / potions / teas) with per-item timers Sit-and-fish mode to avoid ambient mob aggro Anti-AFK built in — jumps every 5 minutes in stand mode, jump + re-sit in sit mode (between catches only, never mid-cast) AutoDestroy addon included — automatically deletes junk items to keep bags clean after every catch Randomized splash→loot and loot→recast delays (natural timing, 50–120 ms reaction) Works in any zone, any fishing spot No pixel detection means no zone-specific tuning — it just works        Why v2 > v1 V1 scanned your screen for the bobber. It broke when the UI changed, the camera moved, or a new zone had different visuals. V2 only listens for the splash — nothing visual to break. Plus the new addon lets a single keybind cast, loot, and use your buffs. Way less setup, way more reliable.            Safety Runs completely external. No injection, no memory reads, no file edits. Watches nothing, listens to audio, presses one key. Use at your own risk. Automation is against Blizzard's ToS.          V1 owners Free upgrade. DM me for the new build.   One-time payment, lifetime access. DM on Discord: Nythrand
    • Hi as the title says, I need a working script for anti captcha. First window appears and have to click continue, then comes up another to type the code. Tell me how much u want for help $$.    
    • Did your boss send you to post this? hahaha
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • 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..