Dropped ManaPotion item handler and config.
This commit is contained in:
10
trunk/dist/game/config/Custom.ini
vendored
10
trunk/dist/game/config/Custom.ini
vendored
@@ -325,16 +325,6 @@ OfflineDisconnectFinished = True
|
|||||||
StoreOfflineTradeInRealtime = True
|
StoreOfflineTradeInRealtime = True
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# Mana Drugs/Potions
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# This option will enable core support for:
|
|
||||||
# Mana Drug (item ID 726), using skill ID 24000.
|
|
||||||
# Mana Potion (item ID 728), using skill ID 24001.
|
|
||||||
EnableManaPotionSupport = False
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Display Server Time
|
# Display Server Time
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
@@ -198,7 +198,6 @@ import handlers.itemhandlers.FishShots;
|
|||||||
import handlers.itemhandlers.Harvester;
|
import handlers.itemhandlers.Harvester;
|
||||||
import handlers.itemhandlers.ItemSkills;
|
import handlers.itemhandlers.ItemSkills;
|
||||||
import handlers.itemhandlers.ItemSkillsTemplate;
|
import handlers.itemhandlers.ItemSkillsTemplate;
|
||||||
import handlers.itemhandlers.ManaPotion;
|
|
||||||
import handlers.itemhandlers.Maps;
|
import handlers.itemhandlers.Maps;
|
||||||
import handlers.itemhandlers.MercTicket;
|
import handlers.itemhandlers.MercTicket;
|
||||||
import handlers.itemhandlers.NicknameColor;
|
import handlers.itemhandlers.NicknameColor;
|
||||||
@@ -488,7 +487,6 @@ public class MasterHandler
|
|||||||
Harvester.class,
|
Harvester.class,
|
||||||
ItemSkills.class,
|
ItemSkills.class,
|
||||||
ItemSkillsTemplate.class,
|
ItemSkillsTemplate.class,
|
||||||
ManaPotion.class,
|
|
||||||
Maps.class,
|
Maps.class,
|
||||||
MercTicket.class,
|
MercTicket.class,
|
||||||
NicknameColor.class,
|
NicknameColor.class,
|
||||||
|
@@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the L2J Mobius project.
|
|
||||||
*
|
|
||||||
* 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 handlers.itemhandlers;
|
|
||||||
|
|
||||||
import com.l2jmobius.Config;
|
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Playable;
|
|
||||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
|
||||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
|
||||||
|
|
||||||
public class ManaPotion extends ItemSkills
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse)
|
|
||||||
{
|
|
||||||
if (!Config.L2JMOD_ENABLE_MANA_POTIONS_SUPPORT)
|
|
||||||
{
|
|
||||||
playable.sendPacket(SystemMessageId.NOTHING_HAPPENED);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return super.useItem(playable, item, forceUse);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -415,7 +415,7 @@
|
|||||||
<set name="default_action" val="SKILL_REDUCE" />
|
<set name="default_action" val="SKILL_REDUCE" />
|
||||||
<set name="etcitem_type" val="POTION" />
|
<set name="etcitem_type" val="POTION" />
|
||||||
<set name="for_npc" val="true" />
|
<set name="for_npc" val="true" />
|
||||||
<set name="handler" val="ManaPotion" />
|
<set name="handler" val="ItemSkills" />
|
||||||
<set name="immediate_effect" val="true" />
|
<set name="immediate_effect" val="true" />
|
||||||
<set name="is_oly_restricted" val="true" />
|
<set name="is_oly_restricted" val="true" />
|
||||||
<set name="is_stackable" val="true" />
|
<set name="is_stackable" val="true" />
|
||||||
@@ -451,7 +451,7 @@
|
|||||||
<set name="default_action" val="SKILL_REDUCE" />
|
<set name="default_action" val="SKILL_REDUCE" />
|
||||||
<set name="etcitem_type" val="POTION" />
|
<set name="etcitem_type" val="POTION" />
|
||||||
<set name="for_npc" val="true" />
|
<set name="for_npc" val="true" />
|
||||||
<set name="handler" val="ManaPotion" />
|
<set name="handler" val="ItemSkills" />
|
||||||
<set name="immediate_effect" val="true" />
|
<set name="immediate_effect" val="true" />
|
||||||
<set name="is_oly_restricted" val="true" />
|
<set name="is_oly_restricted" val="true" />
|
||||||
<set name="is_stackable" val="true" />
|
<set name="is_stackable" val="true" />
|
||||||
|
@@ -757,7 +757,6 @@ public final class Config
|
|||||||
public static int OFFLINE_NAME_COLOR;
|
public static int OFFLINE_NAME_COLOR;
|
||||||
public static boolean OFFLINE_FAME;
|
public static boolean OFFLINE_FAME;
|
||||||
public static boolean STORE_OFFLINE_TRADE_IN_REALTIME;
|
public static boolean STORE_OFFLINE_TRADE_IN_REALTIME;
|
||||||
public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
|
|
||||||
public static boolean L2JMOD_DISPLAY_SERVER_TIME;
|
public static boolean L2JMOD_DISPLAY_SERVER_TIME;
|
||||||
public static boolean WELCOME_MESSAGE_ENABLED;
|
public static boolean WELCOME_MESSAGE_ENABLED;
|
||||||
public static String WELCOME_MESSAGE_TEXT;
|
public static String WELCOME_MESSAGE_TEXT;
|
||||||
@@ -2459,8 +2458,6 @@ public final class Config
|
|||||||
OFFLINE_DISCONNECT_FINISHED = CustomSettings.getBoolean("OfflineDisconnectFinished", true);
|
OFFLINE_DISCONNECT_FINISHED = CustomSettings.getBoolean("OfflineDisconnectFinished", true);
|
||||||
STORE_OFFLINE_TRADE_IN_REALTIME = CustomSettings.getBoolean("StoreOfflineTradeInRealtime", true);
|
STORE_OFFLINE_TRADE_IN_REALTIME = CustomSettings.getBoolean("StoreOfflineTradeInRealtime", true);
|
||||||
|
|
||||||
L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = CustomSettings.getBoolean("EnableManaPotionSupport", false);
|
|
||||||
|
|
||||||
L2JMOD_DISPLAY_SERVER_TIME = CustomSettings.getBoolean("DisplayServerTime", false);
|
L2JMOD_DISPLAY_SERVER_TIME = CustomSettings.getBoolean("DisplayServerTime", false);
|
||||||
|
|
||||||
WELCOME_MESSAGE_ENABLED = CustomSettings.getBoolean("ScreenWelcomeMessageEnable", false);
|
WELCOME_MESSAGE_ENABLED = CustomSettings.getBoolean("ScreenWelcomeMessageEnable", false);
|
||||||
|
Reference in New Issue
Block a user