Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
l2jserver - как убрать копирайты в игре?
#21
Вот я скомпелировал с SVN файлы убрал копирайт.
Как мне обртано поменять .java на .class и скинуть все в .jar фаил?
Ответ
#22
Народ а можно будет сделать как нить мануал по этому вопросу ?)
и дайте пожалуйста ссылки на компиляторы))
Ответ
#23
Может быть кто нибуть поможет?
Ответ
#24
gnummi, читаем второй пост в теме, если не дойдет - закрываем страничку и забываем об этом.

MaxPayne, сложно набрать в поиске "компиляция"?
Ответ
#25
а как убрать капиройты в сборки l2jfree
вот вам файл EnterWorld
Код:
/*
* 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.l2jfree.gameserver.network.clientpackets;

import java.io.File;

import com.l2jfree.Config;
import com.l2jfree.gameserver.Announcements;
import com.l2jfree.gameserver.L2JfreeInfo;
import com.l2jfree.gameserver.SevenSigns;
import com.l2jfree.gameserver.TaskPriority;
import com.l2jfree.gameserver.communitybbs.Manager.RegionBBSManager;
import com.l2jfree.gameserver.datatables.GmListTable;
import com.l2jfree.gameserver.datatables.SkillTable;
import com.l2jfree.gameserver.handler.AdminCommandHandler;
import com.l2jfree.gameserver.instancemanager.ClanHallManager;
import com.l2jfree.gameserver.instancemanager.CoupleManager;
import com.l2jfree.gameserver.instancemanager.CrownManager;
import com.l2jfree.gameserver.instancemanager.CursedWeaponsManager;
import com.l2jfree.gameserver.instancemanager.DimensionalRiftManager;
import com.l2jfree.gameserver.instancemanager.FortManager;
import com.l2jfree.gameserver.instancemanager.FortSiegeManager;
import com.l2jfree.gameserver.instancemanager.InstanceManager;
import com.l2jfree.gameserver.instancemanager.PetitionManager;
import com.l2jfree.gameserver.instancemanager.SiegeManager;
import com.l2jfree.gameserver.model.L2Clan;
import com.l2jfree.gameserver.model.L2ClanMember;
import com.l2jfree.gameserver.model.L2FriendList;
import com.l2jfree.gameserver.model.L2ItemInstance;
import com.l2jfree.gameserver.model.L2ShortCut;
import com.l2jfree.gameserver.model.L2World;
import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfree.gameserver.model.entity.ClanHall;
import com.l2jfree.gameserver.model.entity.Couple;
import com.l2jfree.gameserver.model.entity.Fort;
import com.l2jfree.gameserver.model.entity.FortSiege;
import com.l2jfree.gameserver.model.entity.Hero;
import com.l2jfree.gameserver.model.entity.L2Event;
import com.l2jfree.gameserver.model.entity.Siege;
import com.l2jfree.gameserver.model.entity.events.CTF;
import com.l2jfree.gameserver.model.entity.events.DM;
import com.l2jfree.gameserver.model.entity.events.TvT;
import com.l2jfree.gameserver.model.mapregion.TeleportWhereType;
import com.l2jfree.gameserver.model.olympiad.Olympiad;
import com.l2jfree.gameserver.model.quest.Quest;
import com.l2jfree.gameserver.model.quest.QuestState;
import com.l2jfree.gameserver.model.restriction.ObjectRestrictions;
import com.l2jfree.gameserver.network.SystemMessageId;
import com.l2jfree.gameserver.network.serverpackets.ClientSetTime;
import com.l2jfree.gameserver.network.serverpackets.Die;
import com.l2jfree.gameserver.network.serverpackets.EtcStatusUpdate;
import com.l2jfree.gameserver.network.serverpackets.ExBasicActionList;
import com.l2jfree.gameserver.network.serverpackets.ExStorageMaxCount;
import com.l2jfree.gameserver.network.serverpackets.FriendList;
import com.l2jfree.gameserver.network.serverpackets.GameGuardQuery;
import com.l2jfree.gameserver.network.serverpackets.HennaInfo;
import com.l2jfree.gameserver.network.serverpackets.ItemList;
import com.l2jfree.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jfree.gameserver.network.serverpackets.PledgeShowMemberListAll;
import com.l2jfree.gameserver.network.serverpackets.PledgeShowMemberListUpdate;
import com.l2jfree.gameserver.network.serverpackets.PledgeStatusChanged;
import com.l2jfree.gameserver.network.serverpackets.QuestList;
import com.l2jfree.gameserver.network.serverpackets.ShortCutInit;
import com.l2jfree.gameserver.network.serverpackets.ShortCutRegister;
import com.l2jfree.gameserver.network.serverpackets.SkillCoolTime;
import com.l2jfree.gameserver.network.serverpackets.SystemMessage;
import com.l2jfree.gameserver.network.serverpackets.UserInfo;
import com.l2jfree.gameserver.util.FloodProtector;

/**
* Enter World Packet Handler
* <p>
* 0000: 03
* <p>
* packet format rev656 cbdddd
* <p>
*
* @version $Revision: 1.16.2.1.2.7 $ $Date: 2005/03/29 23:15:33 $
*/
public class EnterWorld extends L2GameClientPacket
{
    private static final String    _C__03_ENTERWORLD    = "[C] 03 EnterWorld";

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

    /**
     * @param decrypt
     */
    @Override
    protected void readImpl()
    {
        // this is just a trigger packet. it has no content
    }

    @Override
    protected void runImpl()
    {
        L2PcInstance activeChar = getClient().getActiveChar();
        if (activeChar == null)
        {
            _log.warn("EnterWorld failed! activeChar is null...");
            getClient().closeNow();
            return;
        }

        // restore instance
        if (Config.RESTORE_PLAYER_INSTANCE)
            activeChar.setInstanceId(InstanceManager.getInstance().getPlayerInstance(activeChar.getObjectId()));
        else
        {
            int instanceId = InstanceManager.getInstance().getPlayerInstance(activeChar.getObjectId());
            if (instanceId > 0)
                InstanceManager.getInstance().getInstance(instanceId).removePlayer(activeChar.getObjectId());
        }

        // Restore Vitality
        if (Config.RECOVER_VITALITY_ON_RECONNECT)
            activeChar.restoreVitality();

        // Register in flood protector
        FloodProtector.registerNewPlayer(activeChar.getObjectId());

        if (activeChar.isGM())
        {
            if (Config.SHOW_GM_LOGIN)
            {
                String gmname = activeChar.getName();
                String text = "GM " + gmname + " has logged on.";
                Announcements.getInstance().announceToAll(text);
            }
            else
            {
                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_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_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.GM_TITLE_COLOR_ENABLED)
            {
                if (activeChar.getAccessLevel() >= 100)
                    activeChar.getAppearance().setTitleColor(Config.ADMIN_TITLE_COLOR);
                else if (activeChar.getAccessLevel() >= 75)
                    activeChar.getAppearance().setTitleColor(Config.GM_TITLE_COLOR);
            }

            if (Config.GM_STARTUP_AUTO_LIST)
                GmListTable.getInstance().addGm(activeChar, false);
            else
                GmListTable.getInstance().addGm(activeChar, true);
        }
        else if (activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_COLOR_ENABLED
                && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_COLOR_CLAN_LEVEL)
        {
            if (Config.CLAN_LEADER_COLORED == Config.ClanLeaderColored.name)
                activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);
            else
                activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_COLOR);
        }
        if (activeChar.isCharViP())
        {
            if (Config.CHAR_VIP_COLOR_ENABLED)
                activeChar.getAppearance().setNameColor(Config.CHAR_VIP_COLOR);
        }

        if (activeChar.getStatus().getCurrentHp() < 0.5) // is dead
            activeChar.setIsDead(true);

        // Restore character's siege state
        if (activeChar.getClan() != null)
        {
            for (Siege siege : SiegeManager.getInstance().getSieges())
            {
                if (!siege.getIsInProgress())
                    continue;
                if (siege.checkIsAttacker(activeChar.getClan()))
                    activeChar.setSiegeState((byte) 1);
                else if (siege.checkIsDefender(activeChar.getClan()))
                    activeChar.setSiegeState((byte) 2);
            }

            for (FortSiege fsiege : FortSiegeManager.getInstance().getSieges())
            {
                if (!fsiege.getIsInProgress())
                    continue;
                if (fsiege.checkIsAttacker(activeChar.getClan()))
                    activeChar.setSiegeState((byte) 1);
                else if (fsiege.checkIsDefender(activeChar.getClan()))
                    activeChar.setSiegeState((byte) 2);
            }
        }

        if (Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(activeChar.getObjectId()))
            activeChar.setHero(true);

        //Updating Seal of Strife Buff/Debuff
        if (SevenSigns.getInstance().isSealValidationPeriod())
        {
            int owner = SevenSigns.getInstance().getSealOwner(SevenSigns.SEAL_STRIFE);
            if (owner != SevenSigns.CABAL_NULL)
            {
                int cabal = SevenSigns.getInstance().getPlayerCabal(activeChar);
                if (cabal == owner)
                    activeChar.addSkill(SkillTable.getInstance().getInfo(5074, 1), false);
                else if (cabal != SevenSigns.CABAL_NULL)
                    activeChar.addSkill(SkillTable.getInstance().getInfo(5075, 1), false);
            }
        }

        sendPacket(new UserInfo(activeChar));

        // Send Macro List
        activeChar.getMacroses().sendUpdate();

        // Send Item List
        sendPacket(new ItemList(activeChar, false));

        // Send gg check (even if we are not going to check for reply)
        activeChar.queryGameGuard();

        // Send Shortcuts
        sendPacket(new ShortCutInit(activeChar));

        activeChar.sendSkillList();

        activeChar.sendPacket(new HennaInfo(activeChar));

        Quest.playerEnter(activeChar);
        activeChar.sendPacket(new QuestList(activeChar));
        loadTutorial(activeChar);

        if (Config.PLAYER_SPAWN_PROTECTION > 0)
            activeChar.setProtection(true);

        activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

        activeChar.getKnownList().updateKnownObjects();

        if (L2Event.active && L2Event.connectionLossData.containsKey(activeChar.getName()) && L2Event.isOnEvent(activeChar))
            L2Event.restoreChar(activeChar);
        else if (L2Event.connectionLossData.containsKey(activeChar.getName()))
            L2Event.restoreAndTeleChar(activeChar);

        activeChar.updateEffectIcons();

        activeChar.sendPacket(new EtcStatusUpdate(activeChar));

        //Expand Skill
        ExStorageMaxCount esmc = new ExStorageMaxCount(activeChar);
        activeChar.sendPacket(esmc);

        FriendList fl = new FriendList(activeChar);
        sendPacket(fl);

        SystemMessage sm = new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE);
        sendPacket(sm);

        // Send client time
        sendPacket(ClientSetTime.STATIC_PACKET);

        if (Config.SHOW_LICENSE)
            L2JfreeInfo.versionInfo(activeChar);

        if (Config.SHOW_HTML_NEWBIE && activeChar.getLevel() < Config.LEVEL_HTML_NEWBIE)
        {
            String Newbie_Path = "data/html/newbie.htm";
            File mainText = new File(Config.DATAPACK_ROOT, Newbie_Path);
            if (mainText.exists())
            {
                NpcHtmlMessage html = new NpcHtmlMessage(1);
                html.setFile(Newbie_Path);
                html.replace("%name%", activeChar.getName()); // replaces %name% with activeChar.getName(), so you can say like "welcome to the server %name%"
                sendPacket(html);
            }
        }
        else if (Config.SHOW_HTML_GM && activeChar.isGM())
        {
            String Gm_Path = "data/html/gm.htm";
            File mainText = new File(Config.DATAPACK_ROOT, Gm_Path); // Return the pathfile of the HTML file
            if (mainText.exists())
            {
                NpcHtmlMessage html = new NpcHtmlMessage(1);
                html.setFile(Gm_Path);
                html.replace("%name%", activeChar.getName()); // replaces %name% with activeChar.getName(), so you can say like "welcome to the server %name%"
                sendPacket(html);
            }
        }
        else if (Config.SHOW_HTML_WELCOME)
        {
            String Welcome_Path = "data/html/welcome.htm";
            File mainText = new File(Config.DATAPACK_ROOT, Welcome_Path); // Return the pathfile of the HTML file
            if (mainText.exists())
            {
                NpcHtmlMessage html = new NpcHtmlMessage(1);
                html.setFile(Welcome_Path);
                html.replace("%name%", activeChar.getName()); // replaces %name% with activeChar.getName(), so you can say like "welcome to the server %name%"
                sendPacket(html);
            }
        }

        // Resume paused restrictions
        ObjectRestrictions.getInstance().resumeTasks(activeChar.getObjectId());

        // check player skills
        if (Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN)
            activeChar.checkAllowedSkills();

        // check for academy
        activeChar.academyCheck(activeChar.getClassId().getId());

        // check for crowns
        CrownManager.getInstance().checkCrowns(activeChar);

        SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);
        Announcements.getInstance().showAnnouncements(activeChar);

        if (Config.ONLINE_PLAYERS_AT_STARTUP)
        {
            sm = new SystemMessage(SystemMessageId.S1);
            if (L2World.getInstance().getAllPlayers().size() == 1)
                sm.addString("Player online: " + L2World.getInstance().getAllPlayers().size());
            else
                sm.addString("Players online: " + L2World.getInstance().getAllPlayers().size());
            sendPacket(sm);
        }

        PetitionManager.getInstance().checkPetitionMessages(activeChar);

        if (activeChar.getClanId() != 0 && activeChar.getClan() != null)
        {
            PledgeShowMemberListAll psmla = new PledgeShowMemberListAll(activeChar.getClan(), activeChar);
            sendPacket(psmla);
            PledgeStatusChanged psc = new PledgeStatusChanged(activeChar.getClan());
            sendPacket(psc);
        }

        if (activeChar.isAlikeDead()) // dead or fake dead
        {
            // no broadcast needed since the player will already spawn dead to others
            Die d = new Die(activeChar);
            sendPacket(d);
        }

        // engage and notify Partner
        if (Config.ALLOW_WEDDING)
        {
            engage(activeChar);
            notifyPartner(activeChar);

            // Check if player is maried and remove if necessary Cupid's Bow
            if (!activeChar.isMaried())
            {
                L2ItemInstance item = activeChar.getInventory().getItemByItemId(9140);
                // Remove Cupid's Bow
                if (item != null)
                {
                    activeChar.destroyItem("Removing Cupid's Bow", item, activeChar, true);
                    activeChar.getInventory().updateDatabase();
                    // Log it
                    _log.info("Character " + activeChar.getName() + " of account " + activeChar.getAccountName() + " got Cupid's Bow removed.");
                }
            }
        }

        // notify Friends
        notifyFriends(activeChar);

        //notify Clanmembers
        notifyClanMembers(activeChar);
        //notify sponsor or apprentice
        notifySponsorOrApprentice(activeChar);

        activeChar.onPlayerEnter();

        sendPacket(new SkillCoolTime(activeChar));

        if (Olympiad.getInstance().playerInStadia(activeChar))
        {
            activeChar.doRevive();
            activeChar.teleToLocation(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(), true)) // Exclude waiting room
        {
            DimensionalRiftManager.getInstance().teleportToWaitingRoom(activeChar);
        }

        if (activeChar.getClanJoinExpiryTime() > System.currentTimeMillis())
        {
            sm = new SystemMessage(SystemMessageId.CLAN_MEMBERSHIP_TERMINATED);
            activeChar.sendPacket(sm);
        }

        if (activeChar.getClan() != null)
        {
            //Sets the apropriate Pledge Class for the clannie (e.g. Viscount, Count, Baron, Marquiz)
            activeChar.setPledgeClass(L2ClanMember.getCurrentPledgeClass(activeChar));

            // Add message if clanHall not paid. Possibly this is custom...
            ClanHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan());
            if (clanHall != null)
            {
                if (!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));
            }
        }

        updateShortCuts(activeChar);

        // remove combat flag before teleporting
        L2ItemInstance flag = activeChar.getInventory().getItemByItemId(9819);
        if (flag != null)
        {
            Fort fort = FortManager.getInstance().getFort(activeChar);
            if (fort != null)
            {
                FortSiegeManager.getInstance().dropCombatFlag(activeChar);
            }
            else
            {
                int slot = flag.getItem().getBodyPart();
                activeChar.getInventory().unEquipItemInBodySlotAndRecord(slot);
                activeChar.destroyItem("CombatFlag", flag, null, true);
            }
        }
        if (!activeChar.isGM() && activeChar.getSiegeState() < 2 && SiegeManager.getInstance().checkIfInZone(activeChar))
        {
            // Attacker or spectator logging in to a siege zone. Actually should be checked for inside castle only?
            activeChar.teleToLocation(TeleportWhereType.Town);
            //activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone"); - custom
        }

        RegionBBSManager.getInstance().changeCommunityBoard();

        if (Config.GAMEGUARD_ENFORCE)
        {
            activeChar.sendPacket(GameGuardQuery.STATIC_PACKET);
        }

        if (TvT._savePlayers.contains(activeChar.getName()))
            TvT.addDisconnectedPlayer(activeChar);

        if (CTF._savePlayers.contains(activeChar.getName()))
            CTF.addDisconnectedPlayer(activeChar);

        if (DM._savePlayers.contains(activeChar.getName()))
            DM.addDisconnectedPlayer(activeChar);

        if (!activeChar.isTransformed())
        {
            activeChar.regiveTemporarySkills();
            // Send Action list
            activeChar.sendPacket(ExBasicActionList.DEFAULT_ACTION_LIST);
        }
        else
        {
            activeChar.sendPacket(ExBasicActionList.TRANSFORMED_ACTION_LIST);
        }

        if (activeChar.isCursedWeaponEquipped())
        {
            CursedWeaponsManager.getInstance().getCursedWeapon(activeChar.getCursedWeaponEquippedId()).cursedOnLogin();
        }
    }

    /**
     * @param activeChar
     */
    private void engage(L2PcInstance cha)
    {
        int _chaid = cha.getObjectId();

        for (Couple cl : CoupleManager.getInstance().getCouples())
        {
            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());
                }
            }
        }
    }

    /**
     * @param activeChar partnerid
     */
    private void notifyPartner(L2PcInstance cha)
    {
        if (cha.getPartnerId() != 0)
        {

            L2PcInstance partner = L2World.getInstance().getPlayer(cha.getPartnerId());

            if (partner != null)
                partner.sendMessage("Your Partner " + cha.getName() + " has logged in.");
        }
    }

    /**
     * @param activeChar
     */
    private void notifyFriends(L2PcInstance cha)
    {
        SystemMessage sm = new SystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN);
        sm.addString(cha.getName());

        for (String friendName : L2FriendList.getFriendListNames(cha))
        {
            L2PcInstance friend = L2World.getInstance().getPlayer(friendName);
            if (friend != null) //friend logged in.
            {
                friend.sendPacket(new FriendList(friend));
                friend.sendPacket(sm);
            }
        }

        sm = null;
    }

    /**
     * @param activeChar
     */
    private void notifyClanMembers(L2PcInstance activeChar)
    {
        L2Clan clan = activeChar.getClan();
        if (clan != null)
        {
            L2ClanMember clanmember = clan.getClanMember(activeChar.getObjectId());
            if (clanmember != null)
            {
                clanmember.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);
                if (clan.isNoticeEnabled() && clan.getNotice() != "")
                    sendPacket(new NpcHtmlMessage(1, "<html><title>Clan Announcements</title><body><br><center><font color=\"CCAA00\">"
                            + activeChar.getClan().getName() + "</font> <font color=\"6655FF\">Clan Alert Message</font></center><br>"
                            + "<img src=\"L2UI.SquareWhite\" width=270 height=1><br>" + activeChar.getClan().getNotice() + "</body></html>"));
            }
        }
    }

    /**
     * @param activeChar
     */
    private void notifySponsorOrApprentice(L2PcInstance activeChar)
    {
        if (activeChar.getSponsor() != 0)
        {
            L2PcInstance sponsor = L2World.getInstance().getPlayer(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 = L2World.getInstance().getPlayer(activeChar.getApprentice());

            if (apprentice != null)
            {
                SystemMessage msg = new SystemMessage(SystemMessageId.YOUR_SPONSOR_C1_HAS_LOGGED_IN);
                msg.addString(activeChar.getName());
                apprentice.sendPacket(msg);
            }
        }
    }

    /**
     * CT1 doesn't update shortcuts so we need to reregister them to the client
     *
     * @param activeChar
     */
    private void updateShortCuts(L2PcInstance activeChar)
    {
        L2ShortCut[] allShortCuts = activeChar.getAllShortCuts();

        for (L2ShortCut sc : allShortCuts)
        {
            activeChar.sendPacket(new ShortCutRegister(sc));
        }
    }

    private void loadTutorial(L2PcInstance player)
    {
        QuestState qs = player.getQuestState("255_Tutorial");
        if (qs != null)
            qs.getQuest().notifyEvent("UC", null, player);
    }

    /* (non-Javadoc)
     * @see com.l2jfree.gameserver.clientpackets.ClientBasePacket#getType()
     */
    @Override
    public String getType()
    {
        return _C__03_ENTERWORLD;
    }
}
[SIGPIC][/SIGPIC]http://www.la2fort.ru
Ответ
#26
config > options >

# Show server version + license when player enter game.
ShowLicense = True ( False )
Ответ
#27
lold Написал:config > options >

# Show server version + license when player enter game.
ShowLicense = True ( False )

мне нада убрать в исходниках а не в конфиге
[SIGPIC][/SIGPIC]http://www.la2fort.ru
Ответ
#28
drakola,
Ну так включи воображение найди где юзается параметр ShowLicense в исходниках и убери всё, что там не нужно. Потому что в этом куске кода я не вижу копирайтов в явном виде. о_О Ослеп?
Я не прав? Докажите это тут или тут
* Интересная тема * для новичков *
Ответ
#29
изменил я этот файл , ничего не изменилось (enterworld.java )
юзаю поиск, есть еще 1 файл ентер ворлд токо с сылкой L2_GameServer\build\classes\net\sf\l2j\gameserver\network\clientpackets
чо делать?)
Ответ
#30
Такого быть не может, если убрали, то его нет.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Проблемы с заливкой таблиц в бд l2jserver HF dbinst_gs a6y 3 1,900 10-08-2017, 11:01 PM
Последний пост: a6y
  проблема с npc сборка l2jserver HF p5 rufus666999 1 1,106 02-03-2016, 06:31 PM
Последний пост: rufus666999
  Как убрать ограничение на онлайн ? knaif 4 1,986 01-13-2016, 05:52 PM
Последний пост: knaif
  Как и где в La2 убрать Invul и Invis при входе в игру ГМом CEHAT0P 13 3,710 12-09-2015, 01:53 PM
Последний пост: silvermain
  Не могу убрать хиро свечение после удаление статуса Dementor 14 4,219 05-20-2015, 06:40 PM
Последний пост: Dementor
  L2JServer High Five Ljucifer 4 3,528 05-10-2015, 11:31 AM
Последний пост: Donatte
  Время в игре gigi1968 9 2,534 04-14-2015, 03:44 PM
Последний пост: Donatte
  L2jServer Компиляция AirRebbit 6 2,037 09-21-2014, 09:04 AM
Последний пост: DRIAD
  Как убрать лицо из под шапки/шлема DMG 1 1,504 04-10-2014, 04:45 AM
Последний пост: Respect
  L2jServer Gracia (CT2) 5970 не могу настроить клиент kalexi 12 11,629 02-25-2014, 01:27 PM
Последний пост: Jocker

Перейти к форуму:


Пользователи, просматривающие эту тему: 5 Гость(ей)