Addition of upgrade equipment system.

This commit is contained in:
MobiusDevelopment
2019-06-20 00:49:47 +00:00
parent 712e10dc92
commit fc2c52f965
27 changed files with 4823 additions and 15654 deletions

View File

@@ -159,6 +159,7 @@ import handlers.bypasshandlers.ReleaseAttribute;
import handlers.bypasshandlers.SkillList;
import handlers.bypasshandlers.TerritoryStatus;
import handlers.bypasshandlers.TutorialClose;
import handlers.bypasshandlers.UpgradeEquipment;
import handlers.bypasshandlers.VoiceCommand;
import handlers.bypasshandlers.Wear;
import handlers.chathandlers.ChatAlliance;
@@ -498,6 +499,7 @@ public class MasterHandler
SkillList.class,
TerritoryStatus.class,
TutorialClose.class,
UpgradeEquipment.class,
VoiceCommand.class,
Wear.class,
},

View File

@@ -0,0 +1,53 @@
/*
* 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.bypasshandlers;
import org.l2jmobius.gameserver.handler.IBypassHandler;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.network.serverpackets.equipmentupgrade.ExShowUpgradeSystem;
/**
* @author Mobius
*/
public class UpgradeEquipment implements IBypassHandler
{
private static final int FERRIS = 30847;
private static final String[] COMMANDS =
{
"UpgradeEquipment"
};
@Override
public boolean useBypass(String command, PlayerInstance player, Creature target)
{
if ((target == null) || !target.isNpc() || (((Npc) target).getId() != FERRIS))
{
return false;
}
player.sendPacket(new ExShowUpgradeSystem());
return true;
}
@Override
public String[] getBypassList()
{
return COMMANDS;
}
}