DuRex Posted December 14, 2009 Share Posted December 14, 2009 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... :) Link to comment Share on other sites More sharing options...
0 Yakamoto Posted December 14, 2009 Share Posted December 14, 2009 Ti Pack Exeis? Link to comment Share on other sites More sharing options...
0 DuRex Posted December 14, 2009 Author Share Posted December 14, 2009 l2jequal.. 3erw oti exei kleisei dose m esi an mporeis... an exeis.. Link to comment Share on other sites More sharing options...
0 Lucky Dice Posted December 14, 2009 Share Posted December 14, 2009 Dn Mporeis na kaneis kati. Link to comment Share on other sites More sharing options...
0 Yakamoto Posted December 14, 2009 Share Posted December 14, 2009 Allakse Pack :/ Link to comment Share on other sites More sharing options...
0 ExTrEmEDwarf Posted December 14, 2009 Share Posted December 14, 2009 to pack to exeis kanei compile? giati apo oti thymamai exei items kai gia noblesse kai gia hero Link to comment Share on other sites More sharing options...
0 DuRex Posted December 14, 2009 Author Share Posted December 14, 2009 nai to exw compile.. pws tha mporeso na to ftia3w?? Link to comment Share on other sites More sharing options...
0 Kяaσh Posted December 14, 2009 Share Posted December 14, 2009 sta itemhandlers mpes kai bres to HeroCustomItem.java e kai des to id p exei Link to comment Share on other sites More sharing options...
0 DuRex Posted December 14, 2009 Author Share Posted December 14, 2009 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.. Link to comment Share on other sites More sharing options...
0 Kяaσh Posted December 14, 2009 Share Posted December 14, 2009 einai se config gia enable kai disable dld an douleuei? Link to comment Share on other sites More sharing options...
0 DuRex Posted December 14, 2009 Author Share Posted December 14, 2009 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?? Link to comment Share on other sites More sharing options...
0 Kяaσh Posted December 14, 2009 Share Posted December 14, 2009 e orea einai se config gia na leitourgei i oxi psaxe Link to comment Share on other sites More sharing options...
0 DuRex Posted December 14, 2009 Author Share Posted December 14, 2009 pou akrivws na psa3w omos?? eimai ligo newbie :S... Link to comment Share on other sites More sharing options...
0 Kяaσh Posted December 14, 2009 Share Posted December 14, 2009 gameserver/configs Link to comment Share on other sites More sharing options...
0 DuRex Posted December 15, 2009 Author Share Posted December 15, 2009 pou akrivws omos re krash??? dn to vriskw sta configs :/.. plzz help ligo.. Link to comment Share on other sites More sharing options...
0 DuRex Posted December 18, 2009 Author Share Posted December 18, 2009 soz gia to double post.. kante kapoios mod lock.. ty Link to comment Share on other sites More sharing options...
Question
DuRex
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... :)
Link to comment
Share on other sites
16 answers to this question
Recommended Posts