Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: game/data/scripts/handlers/bypasshandlers/Augment.java
- ===================================================================
- --- game/data/scripts/handlers/bypasshandlers/Augment.java (revision 22072)
- +++ game/data/scripts/handlers/bypasshandlers/Augment.java (working copy)
- @@ -46,6 +46,13 @@
- switch (Integer.parseInt(command.substring(8, 9).trim()))
- {
- case 1:
- + // If the appearance system are ON if you start augment stopping it.
- + if (activeChar.isAddAppearance())
- + {
- + activeChar.setIsAddAppearance(false);
- + activeChar.setAppearanceItem(null);
- + }
- +
- activeChar.sendPacket(ExShowVariationMakeWindow.STATIC_PACKET);
- return true;
- case 2:
- Index: game/data/scripts/handlers/itemhandlers/AppearanceStone.java
- ===================================================================
- --- game/data/scripts/handlers/itemhandlers/AppearanceStone.java (revision 0)
- +++ game/data/scripts/handlers/itemhandlers/AppearanceStone.java (working copy)
- @@ -0,0 +1,63 @@
- +/*
- + * Copyright (C) 2004-2015 L2J DataPack
- + *
- + * This file is part of L2J DataPack.
- + *
- + * L2J DataPack 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.
- + *
- + * L2J DataPack 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 handlers.itemhandlers;
- +
- +import com.l2jserver.Config;
- +import com.l2jserver.gameserver.model.actor.L2Playable;
- +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- +import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
- +import com.l2jserver.gameserver.network.SystemMessageId;
- +import com.l2jserver.gameserver.network.serverpackets.ExShowVariationCancelWindow;
- +import com.l2jserver.gameserver.network.serverpackets.ExShowVariationMakeWindow;
- +
- +/**
- + * @author LOBILLO
- + */
- +
- +public class AppearanceStone extends ItemSkills
- +{
- + @Override
- + public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse)
- + {
- + if (!playable.isPlayer())
- + {
- + playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS);
- + return false;
- + }
- +
- + final L2PcInstance activeChar = playable.getActingPlayer();
- + if (activeChar.isCastingNow())
- + {
- + return false;
- + }
- +
- + activeChar.setIsAddAppearance(true);
- + activeChar.setAppearanceItem(item);
- +
- + if (item.getId() == Config.APPEARANCE_REMOVE_STONE_ID)
- + {
- + activeChar.sendPacket(ExShowVariationCancelWindow.STATIC_PACKET);
- + }
- + else
- + {
- + activeChar.sendPacket(ExShowVariationMakeWindow.STATIC_PACKET);
- + }
- + return true;
- + }
- +}
- Index: game/data/scripts/handlers/MasterHandler.java
- ===================================================================
- --- game/data/scripts/handlers/MasterHandler.java (revision 22072)
- +++ game/data/scripts/handlers/MasterHandler.java (working copy)
- @@ -181,6 +181,7 @@
- import handlers.communityboard.MemoBoard;
- import handlers.communityboard.RegionBoard;
- import handlers.custom.CustomAnnouncePkPvP;
- +import handlers.itemhandlers.AppearanceStone;
- import handlers.itemhandlers.BeastSoulShot;
- import handlers.itemhandlers.BeastSpiritShot;
- import handlers.itemhandlers.BlessedSpiritShot;
- @@ -465,6 +466,7 @@
- },
- {
- // Item Handlers
- + AppearanceStone.class,
- BeastSoulShot.class,
- BeastSpiritShot.class,
- BlessedSpiritShot.class,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement