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

krash piga k eida ekei mesa.. afto to vazw kai dn m kanei tpt oute se kanoniko char oute se tpt... :S peite m ligo plzz..

  • 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

    • For exact same reason - there were accusation that I scammed. When was it? 2016? But in that time, admins actually didn't listen. I got banned, then unbaned (when I prooved I've refunded) but I was trash talking to mods. When few months later same shit happened, Grisom (?) old global mod, banned me anyway. You can read somewhere on forum how I was shitting on him for doing that (from other account because original account was banned) - which was banned too. He is not here anymore I think. Back in the days I was well know for not carring that much if I was talking to mod or admin, I didn't hold my tongue. Now You know. Just like You know - if I delay, I deliver or refund. I'm not a scammer, even if my old time haterz love to repeat themselfs like mantra. I don't care.
    • Okay I respect that but why is your other account banned?   I don't think this happened just because you delayed somebodys work even in 2012
    • Do You understand the fact, I won't scam anyone? Can You grasp such idea?  Second of all, if a random restaurant on Google Maps has 599 positive reviews and few negative ones with 4,8* score, do You ask Google to block it's profile and burn the place down? No? Then why the fuck You are crying about my random delays? If someone can't get a CUSTOM DESIGN on time, I refund. I'm not 16  y.o. anymore. I don't make living out of this L2 bullshit. Never did. Since 2012 I've made shit tons of projects. How many delays did I have? 12? 15? Out of hundrets of projects. Calm Your tits please. If I would actually take 4k euro and NOT deliver and NOT refund - admins can ban me. So don't compare me to Simple. And just so You know, Celestine sent me customers, so it's not like I've worked with him on his account all the time. That's another thing You won't understand. I won't waste anymore time on You and any other cunt who never was my customer but is bitching just because he has nothing better to do in his life. You don't like my work? Hove along, I don't give a shit. 
    • So he's like unsimple you would say? Cherry picking who's getting scammed.   Deliver 5 projects, don't deliver/delay the other 2 projects. Of course he won't scam you because he know what's gonna happen after since he's dealing with the admin himself.
  • Topics

×
×
  • Create New...