Addition of upgrade equipment system.
This commit is contained in:
		| @@ -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, | ||||
| 		}, | ||||
|   | ||||
							
								
								
									
										53
									
								
								L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/bypasshandlers/UpgradeEquipment.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/bypasshandlers/UpgradeEquipment.java
									
									
									
									
										vendored
									
									
										Normal 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; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment