2 Duvidas em 1

7 respostas
S

Galera seguinte tenho um arquivo salvo .jar executado eu acho … Blz até ai .
Extrai isso e com isso surgiu varios pastas arquivos Class e etc…
E queria editar apenas um arquivo adicionar o seguinte

<blockquote> if (activeChar.getPvpKills()>= 100)

{

activeChar.getAppearance().setNameColor(99FFFF);

}

if (activeChar.getPvpKills()>= 500)

{

activeChar.getAppearance().setNameColor(0099FF);

}

if (activeChar.getPvpKills()>= 1000)

{

activeChar.getAppearance().setNameColor(FF00FF);

}

if (activeChar.getPvpKills()>= 5000)

{

activeChar.getAppearance().setNameColor(000000);

}

</blockquote>

E queria saber na onde exatamente devo por ele tem algum lugar especifico ?

2º Depois que adicionar isso como faço pra salvar a pasta novamente no .jar que estava antes?

Valeuu

7 Respostas

B

Tem algum jeito de pegar o código-fonte desse jogo? É nele que você deveria inserir essa modificação.

S

Entao vo por aqui o Codigo Fonte do Jogo e nao Onde eu adiciono aquilo que postei acima??

// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 16/6/2008 18:57:42
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   EnterWorld.java

package net.sf.l2j.gameserver.clientpackets;

import java.io.UnsupportedEncodingException;
import java.sql.*;
import java.util.*;
import java.util.logging.Logger;
import javolution.util.FastList;
import net.sf.l2j.*;
import net.sf.l2j.gameserver.*;
import net.sf.l2j.gameserver.cache.HtmCache;
import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager;
import net.sf.l2j.gameserver.datatables.MapRegionTable;
import net.sf.l2j.gameserver.datatables.PcColorTable;
import net.sf.l2j.gameserver.handler.AdminCommandHandler;
import net.sf.l2j.gameserver.instancemanager.*;
import net.sf.l2j.gameserver.model.*;
import net.sf.l2j.gameserver.model.actor.appearance.PcAppearance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.actor.stat.PcStat;
import net.sf.l2j.gameserver.model.entity.*;
import net.sf.l2j.gameserver.model.entity.L2JOneoEvents.*;
import net.sf.l2j.gameserver.model.quest.Quest;
import net.sf.l2j.gameserver.network.L2GameClient;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.serverpackets.*;
import net.sf.l2j.gameserver.services.WindowService;
import net.sf.l2j.gameserver.util.FloodProtector;

// Referenced classes of package net.sf.l2j.gameserver.clientpackets:
//            L2GameClientPacket

public class EnterWorld extends L2GameClientPacket
{

    public EnterWorld()
    {
    }

    public TaskPriority getPriority()
    {
        return TaskPriority.PR_URGENT;
    }

    protected void readImpl()
    {
    }

    protected void runImpl()
    {
        L2PcInstance activeChar = ((L2GameClient)getClient()).getActiveChar();
        if(activeChar == null)
        {
            _log.warning("EnterWorld failed! activeChar is null...");
            ((L2GameClient)getClient()).closeNow();
            return;
        }
        FloodProtector.getInstance().registerNewPlayer(activeChar.getObjectId());
        if(L2World.getInstance().findObject(activeChar.getObjectId()) != null && Config.DEBUG)
            _log.warning((new StringBuilder()).append("User already exist in OID map! User ").append(activeChar.getName()).append(" is character clone").toString());
        if(activeChar.isGM())
        {
            if(Config.GM_STARTUP_INVULNERABLE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_GODMODE || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_invul")))
                activeChar.setIsInvul(true);
            if(Config.GM_STARTUP_INVISIBLE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_GODMODE || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_invisible")))
                activeChar.getAppearance().setInvisible();
            if(Config.GM_STARTUP_SILENCE && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_MENU || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_silence")))
                activeChar.setMessageRefusal(true);
            if(Config.GM_STARTUP_AUTO_LIST && (!Config.ALT_PRIVILEGES_ADMIN && activeChar.getAccessLevel() >= Config.GM_MENU || Config.ALT_PRIVILEGES_ADMIN && AdminCommandHandler.getInstance().checkPrivileges(activeChar, "admin_gmliston")))
                GmListTable.getInstance().addGm(activeChar, false);
            else
                GmListTable.getInstance().addGm(activeChar, true);
            if(Config.GM_NAME_COLOR_ENABLED)
            {
                if(activeChar.getAccessLevel() >= 100)
                    activeChar.getAppearance().setNameColor(Config.ADMIN_NAME_COLOR);
                else
                if(activeChar.getAccessLevel() >= 75)
                    activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR);
                if(Config.SHOW_GM_LOGIN)
                {
                    String name = activeChar.getName();
                    String text = (new StringBuilder()).append("GameMaster ").append(name).append(" Is Currently Online.").toString();
                    Announcements.getInstance().announceToAll(text);
                }
            }
        }
        if(Config.PLAYER_SPAWN_PROTECTION > 0)
            activeChar.setProtection(true);
        activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());
        if(L2Event.active && L2Event.connectionLossData.containsKey(activeChar.getName()) && L2Event.isOnEvent(activeChar))
            L2Event.restoreChar(activeChar);
        else
        if(L2Event.connectionLossData.containsKey(activeChar.getName()))
            L2Event.restoreAndTeleChar(activeChar);
        if(SevenSigns.getInstance().isSealValidationPeriod())
            sendPacket(new SignsSky());
        if(Config.STORE_SKILL_COOLTIME)
            activeChar.restoreEffects();
        activeChar.sendPacket(new EtcStatusUpdate(activeChar));
        if(Config.ALLOW_WEDDING)
        {
            engage(activeChar);
            notifyPartner(activeChar, activeChar.getPartnerId());
            if(!activeChar.isMaried())
            {
                L2ItemInstance item = activeChar.getInventory().getItemByItemId(9140);
                if(item != null)
                {
                    activeChar.destroyItem("Removing Cupid's Bow", item, activeChar, true);
                    activeChar.getInventory().updateDatabase();
                    _log.info((new StringBuilder()).append("Character ").append(activeChar.getName()).append(" of account ").append(activeChar.getAccountName()).append(" got Cupid's Bow removed.").toString());
                }
            }
        }
        L2ItemInstance arr$[];
        int len$;
        if(activeChar.getAllEffects() != null)
        {
            arr$ = activeChar.getAllEffects();
            len$ = arr$.length;
            for(int i$ = 0; i$ < len$; i$++)
            {
                L2Effect e = arr$[i$];
                if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME)
                {
                    activeChar.stopEffects(net.sf.l2j.gameserver.model.L2Effect.EffectType.HEAL_OVER_TIME);
                    activeChar.removeEffect(e);
                }
                if(e.getEffectType() == net.sf.l2j.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME)
                {
                    activeChar.stopEffects(net.sf.l2j.gameserver.model.L2Effect.EffectType.COMBAT_POINT_HEAL_OVER_TIME);
                    activeChar.removeEffect(e);
                }
            }

        }
        arr$ = activeChar.getInventory().getAugmentedItems();
        len$ = arr$.length;
        for(int i$ = 0; i$ < len$; i$++)
        {
            L2ItemInstance temp = arr$[i$];
            if(temp != null && temp.isEquipped())
                temp.getAugmentation().applyBoni(activeChar);
        }

        ExStorageMaxCount esmc = new ExStorageMaxCount(activeChar);
        activeChar.sendPacket(esmc);
        activeChar.getMacroses().sendUpdate();
        if(Config.DONATOR_DELETE_RENTED_ITEMS)
            activeChar.donatorDeleteDelayedRentedItems();
        sendPacket(new UserInfo(activeChar));
        sendPacket(new HennaInfo(activeChar));
        sendPacket(new FriendList(activeChar));
        sendPacket(new ItemList(activeChar, false));
        sendPacket(new ShortCutInit(activeChar));
        SystemMessage sm = new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE);
        sendPacket(sm);
        if(Config.SHOW_L2J_LICENSE)
        {
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString(getText("VGhpcyBzZXJ2ZXIgaXMgcnVubmluZyB0aGUgTDJKT25lbyBkaXN0cmlidXRpb24gb2YgTDJqLg=="));
            sendPacket(sm);
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString(getText("TDJKT25lbyBEZXYgVGVhbTpEYVJrUmFHZSwgc2NodXJzaW4sIEFobWVkLA=="));
            sm.addString(getText("bmVvRGV2aWwsIFNseWNlciwgQmFvcmMsIFZpY2UsIEV6RXJhbCwgTGlxdWlkSWNlLg=="));
            sendPacket(sm);
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString(getText("TDJKIHdhcyBmb3VuZGVkIGJ5IEwyQ2hlZiBhbmQgdGhlIEwySiBUZWFtLg=="));
            sm.addString(getText("IEwySiB0ZWFtLg=="));
            sendPacket(sm);
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString(getText("VmlzaXQgaHR0cDovL3d3dy5sMmpzZXJ2ZXIuY29t"));
            sm.addString(getText("ICBmb3Igc3VwcG9ydC4="));
            sendPacket(sm);
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString(getText("V2VsY29tZSB0byA="));
            sm.addString(LoginServerThread.getInstance().getServerName());
            sendPacket(sm);
            if(Config.SERVER_VERSION != null)
            {
                sm = new SystemMessage(SystemMessageId.S1_S2);
                sm.addString((new StringBuilder()).append(getText("TDJKIFNlcnZlciBWZXJzaW9uOg==")).append("   ").append(Config.SERVER_VERSION).toString());
                sendPacket(sm);
                sm = new SystemMessage(SystemMessageId.S1_S2);
                sm.addString((new StringBuilder()).append(getText("TDJKIFNlcnZlciBCdWlsZCBEYXRlOg==")).append(" ").append(Config.SERVER_BUILD_DATE).toString());
                sendPacket(sm);
            }
        }
        sm = null;
        SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);
        Announcements.getInstance().showAnnouncements(activeChar);
        activeChar.checkBanChat(false);
        if(Config.ALLOW_AUTOHERBS_CMD)
            activeChar.getAutoLootHerbs();
        if(Config.ALLOW_WITHDRAW_CWH_CMD)
            activeChar.getCanWithdrawCWH();
        if(activeChar.isDonator())
        {
            activeChar.getAppearance().setNameColor(Config.DONATOR_NAME_COLOR);
            activeChar.sendMessage((new StringBuilder()).append("Welcome ").append(activeChar.getName()).append(" to our L][ Server!").toString());
            activeChar.sendMessage("Enjoy your Stay Donator!");
        }
        if(activeChar.isKoof() && Config.ENABLE_FACTION_KOOFS_NOOBS)
        {
            activeChar.getAppearance().setNameColor(Config.KOOFS_NAME_COLOR);
            activeChar.sendMessage((new StringBuilder()).append("Welcome ").append(activeChar.getName()).append(" u Are fighiting for ").append(Config.KOOFS_NAME_TEAM).append("  Faction").toString());
            activeChar.setTitle(Config.KOOFS_NAME_TEAM);
        }
        if(activeChar.isNoob() && Config.ENABLE_FACTION_KOOFS_NOOBS)
        {
            activeChar.getAppearance().setNameColor(Config.NOOBS_NAME_COLOR);
            activeChar.sendMessage((new StringBuilder()).append("Welcome ").append(activeChar.getName()).append(" u Are fighiting for ").append(Config.NOOBS_NAME_TEAM).append(" Faction").toString());
            activeChar.setTitle(Config.NOOBS_NAME_TEAM);
        }
        if(Config.ONLINE_PLAYERS_AT_STARTUP)
        {
            int PLAYERS_ONLINE = L2World.getInstance().getAllPlayers().size() + Config.PLAYERS_ONLINE_TRICK;
            sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString("Players online: ");
            sm.addNumber(PLAYERS_ONLINE);
            sendPacket(sm);
        }
        Quest.playerEnter(activeChar);
        activeChar.sendPacket(new QuestList());
        String serverNews = HtmCache.getInstance().getHtm("data/html/servnews.htm");
        if(serverNews != null)
            WindowService.sendWindow(activeChar, "data/html/", "servnews.htm");
        PetitionManager.getInstance().checkPetitionMessages(activeChar);
        if(Config.SHOW_HTML_WELCOME)
            WindowService.sendWindow(activeChar, "data/html/", "OneoInfo.htm");
        if(Config.SHOW_HTML_NEWBIE && activeChar.getLevel() < Config.LEVEL_HTML_NEWBIE)
            WindowService.sendWindow(activeChar, "data/html/", "newbie.htm");
        if(Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN)
            activeChar.checkAllowedSkills();
        if(activeChar.getClanId() != 0 && activeChar.getClan() != null)
        {
            sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar));
            sendPacket(new PledgeStatusChanged(activeChar.getClan()));
        }
        if(activeChar.isAlikeDead())
            sendPacket(new Die(activeChar));
        if(Config.ALLOW_WATER)
            activeChar.checkWaterState();
        if(Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(Integer.valueOf(activeChar.getObjectId())))
            activeChar.setHero(true);
        setPledgeClass(activeChar);
        activeChar.setOnlineStatus(true);
        notifyFriends(activeChar);
        notifyClanMembers(activeChar);
        notifySponsorOrApprentice(activeChar);
        notifyCastleOwner(activeChar);
        activeChar.onPlayerEnter();
        checkCrown(activeChar);
        if(Olympiad.getInstance().playerInStadia(activeChar))
        {
            activeChar.teleToLocation(net.sf.l2j.gameserver.datatables.MapRegionTable.TeleportWhereType.Town);
            activeChar.sendMessage("You have been teleported to the nearest town due to you being in an Olympiad Stadium");
        }
        if(DimensionalRiftManager.getInstance().checkIfInRiftZone(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false))
            DimensionalRiftManager.getInstance().teleportToWaitingRoom(activeChar);
        if(!activeChar.isGM() && activeChar.getSiegeState() < 2 && activeChar.isInsideZone(4))
        {
            activeChar.teleToLocation(net.sf.l2j.gameserver.datatables.MapRegionTable.TeleportWhereType.Town);
            activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone");
        }
        if(Config.SET_LVL_ON_START && activeChar.getLevel() >= 1 && activeChar.getLevel() < 80)
        {
            if(!Config.HIGH_LEVEL_ON_START_FOR_SUBCLASS && activeChar.isSubClassActive())
                return;
            activeChar.getStat().addExp(0x32116200L);
            activeChar.getStat().addExp(0x32116200L);
            activeChar.getStat().addExp(0x32116200L);
            activeChar.getStat().addExp(0x32116200L);
            activeChar.getStat().addExp(0x32116200L);
            activeChar.getStat().addExp(0x5f5e100L);
            activeChar.getStat().addSp(0x5f5e0ff);
        }
        if(activeChar.getClanJoinExpiryTime() > System.currentTimeMillis())
            activeChar.sendPacket(new SystemMessage(SystemMessageId.CLAN_MEMBERSHIP_TERMINATED));
        if(activeChar.getClan() != null)
        {
            activeChar.sendPacket(new PledgeSkillList(activeChar.getClan()));
            SiegeManager.getInstance().onEnterWorld(activeChar);
            FortSiegeManager.getInstance().onEnterWorld(activeChar);
            ClanHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan());
            if(clanHall != null && !clanHall.getPaid())
                activeChar.sendPacket(new SystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW));
        }
        RegionBBSManager.getInstance().changeCommunityBoard();
        TvTEvent.onLogin(activeChar);
        PcColorTable.getInstance().process(activeChar);
        if(VIP._playersVIP.contains(activeChar.getName()))
            VIP.addPlayerVIP(activeChar);
        if(VIP._playersNotVIP.contains(activeChar.getName()))
            VIP.addPlayerNotVIP(activeChar);
        if(CTF._savePlayers.contains(activeChar.getName()))
            CTF.addDisconnectedPlayer(activeChar);
    }

    private void engage(L2PcInstance cha)
    {
        int _chaid = cha.getObjectId();
        Iterator i$ = CoupleManager.getInstance().getCouples().iterator();
        do
        {
            if(!i$.hasNext())
                break;
            Couple cl = (Couple)i$.next();
            if(cl.getPlayer1Id() == _chaid || cl.getPlayer2Id() == _chaid)
            {
                if(cl.getMaried())
                    cha.setMaried(true);
                cha.setCoupleId(cl.getId());
                if(cl.getPlayer1Id() == _chaid)
                    cha.setPartnerId(cl.getPlayer2Id());
                else
                    cha.setPartnerId(cl.getPlayer1Id());
            }
        } while(true);
    }

    private void notifyPartner(L2PcInstance cha, int partnerId)
    {
        if(cha.getPartnerId() != 0)
        {
            L2PcInstance partner = (L2PcInstance)L2World.getInstance().findObject(cha.getPartnerId());
            if(partner != null)
                partner.sendMessage("Your Partner has logged in");
            partner = null;
        }
    }

    private void notifyFriends(L2PcInstance cha)
    {
        Connection con = null;
        con = L2DatabaseFactory.getInstance().getConnection();
        PreparedStatement statement = con.prepareStatement("SELECT friend_name FROM character_friends WHERE char_id=?");
        statement.setInt(1, cha.getObjectId());
        ResultSet rset = statement.executeQuery();
        SystemMessage sm = new SystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN);
        sm.addString(cha.getName());
        do
        {
            if(!rset.next())
                break;
            String friendName = rset.getString("friend_name");
            L2PcInstance friend = L2World.getInstance().getPlayer(friendName);
            if(friend != null)
            {
                friend.sendPacket(new FriendList(friend));
                friend.sendPacket(sm);
            }
        } while(true);
        sm = null;
        rset.close();
        statement.close();
        Exception e;
        try
        {
            con.close();
        }
        // Misplaced declaration of an exception variable
        catch(Exception e) { }
        break MISSING_BLOCK_LABEL_206;
        e;
        _log.warning((new StringBuilder()).append("could not restore friend data:").append(e).toString());
        try
        {
            con.close();
        }
        // Misplaced declaration of an exception variable
        catch(Exception e) { }
        break MISSING_BLOCK_LABEL_206;
        Exception exception;
        exception;
        try
        {
            con.close();
        }
        catch(Exception e) { }
        throw exception;
    }

    private void notifyClanMembers(L2PcInstance activeChar)
    {
        L2Clan clan = activeChar.getClan();
        if(clan != null)
        {
            clan.getClanMember(activeChar.getName()).setPlayerInstance(activeChar);
            SystemMessage msg = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_LOGGED_IN);
            msg.addString(activeChar.getName());
            clan.broadcastToOtherOnlineMembers(msg, activeChar);
            msg = null;
            clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListUpdate(activeChar), activeChar);
        }
    }

    private void notifyCastleOwner(L2PcInstance activeChar)
    {
        if(Config.ANNOUNCE_CASTLE_LORDS)
        {
            L2Clan clan = activeChar.getClan();
            if(clan != null && clan.getHasCastle() > 0)
            {
                Castle castle = CastleManager.getInstance().getCastleById(clan.getHasCastle());
                if(castle != null && activeChar.getObjectId() == clan.getLeaderId())
                    Announcements.getInstance().announceToAll((new StringBuilder()).append("Castle Lord ").append(activeChar.getName()).append(" Of ").append(castle.getName()).append(" Castle Is Currently Online.").toString());
            }
        }
    }

    private void checkCrown(L2PcInstance activeChar)
    {
        if(activeChar.isClanLeader() && activeChar.getClan().getHasCastle() != 0)
        {
            if(activeChar.getInventory().getItemByItemId(6841) == null && activeChar.getInventory().validateCapacity(1))
            {
                activeChar.getInventory().addItem("Crown", 6841, 1, activeChar, null);
                activeChar.getInventory().updateDatabase();
            }
        } else
        if(activeChar.getInventory().getItemByItemId(6841) != null)
            activeChar.getInventory().destroyItemByItemId("Crown", 6841, 1, activeChar, null);
    }

    private void notifySponsorOrApprentice(L2PcInstance activeChar)
    {
        if(activeChar.getSponsor() != 0)
        {
            L2PcInstance sponsor = (L2PcInstance)L2World.getInstance().findObject(activeChar.getSponsor());
            if(sponsor != null)
            {
                SystemMessage msg = new SystemMessage(SystemMessageId.YOUR_APPRENTICE_S1_HAS_LOGGED_IN);
                msg.addString(activeChar.getName());
                sponsor.sendPacket(msg);
            }
        } else
        if(activeChar.getApprentice() != 0)
        {
            L2PcInstance apprentice = (L2PcInstance)L2World.getInstance().findObject(activeChar.getApprentice());
            if(apprentice != null)
            {
                SystemMessage msg = new SystemMessage(SystemMessageId.YOUR_SPONSOR_S1_HAS_LOGGED_IN);
                msg.addString(activeChar.getName());
                apprentice.sendPacket(msg);
            }
        }
    }

    private String getText(String string)
    {
        String result = new String(Base64.decode(string), "UTF-8");
        return result;
        UnsupportedEncodingException e;
        e;
        return null;
    }

    private void setPledgeClass(L2PcInstance activeChar)
    {
        int pledgeClass = 0;
        if(activeChar.getClan() != null)
            pledgeClass = activeChar.getClan().getClanMember(activeChar.getObjectId()).calculatePledgeClass(activeChar);
        if(activeChar.isNoble() && pledgeClass < 5)
            pledgeClass = 5;
        if(activeChar.isHero())
            pledgeClass = 8;
        activeChar.setPledgeClass(pledgeClass);
    }

    public String getType()
    {
        return "[C] 03 EnterWorld";
    }

    private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";
    private static Logger _log = Logger.getLogger(net/sf/l2j/gameserver/clientpackets/EnterWorld.getName());

}

Tá ai ..!!

E algum sbe com ofaço pra salvar dpois em .jar ?

B

sommer:
Entao vo por aqui o Codigo Fonte do Jogo e nao Onde eu adiciono aquilo que postei acima??

Tá ai …!!

E algum sbe com ofaço pra salvar dpois em .jar ?


Um código do jogo é bem maior que isso. Não dá pra dizer numa olhada. Aconselho você à conversar com os criadores do jogo em http://l2j.sourceforge.net/ . Sem falar que lá deve ter o código aberto, comentado, e mais fácil de ler, sem precisar de um decompilador.

Para salvar em jar, você deve compilar o código e usar uma ferramenta p/ empacotá-lo em jar. Geralmente as próprias IDEs fazem isso, procure na documentação delas.

S

Nao teria como mostrar pra mim como que faço pra salvar no pacote jar? Tenho o Net Beans e Eclipse mostre-me como que faz que aprendo …!!
=D

S

… Tipo eu Modifico o Negocio com o DJ Compiler dai quero salva-lo novamente no .clss como que faço pois Gera um ARQUIVO em Java e não consigo compilar mais ¬¬. da uns erros tento pelo comando Javac tbm não da certo , alguem sabe como pod me ajuda ai ?

B

Você precisa do projeto inteiro p/ compilar as classes, mais outros jars de que o projeto pode depender. Vá até o site do L2J e baixe o projeto do SVN deles.

S

Então compilei um pack deles mais nao sei como que faz pra edita entende? consegui apenas editar fora … extraindo o pacote .jar e pegando os arquivos .Class …
poderia me explicar melhor?

Criado 16 de junho de 2008
Ultima resposta 16 de jun. de 2008
Respostas 7
Participantes 2