Ir para conteúdo
  • Cadastre-se
  • 0

.Menu


tutucaleandro

Pergunta

alquem pode me ajuda como add

 

head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java

 

CCMA7yC.png

 

GduQgkF.png

 

### Eclipse Workspace Patch 1.0
#P GameServer
Index: head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (working copy)
@@ -31,10 +31,13 @@
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.AwayCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.BankingCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.CTFCmd;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.CastleManagersVCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.DMCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.FarmPvpCmd;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Menu;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.OfflineShop;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Online;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Raid;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.StatsCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.TvTCmd;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.VersionCmd;
@@ -121,6 +124,10 @@
registerVoicedCommandHandler(new OfflineShop());
}
+ registerVoicedCommandHandler(new Raid());
+ registerVoicedCommandHandler(new CastleManagersVCmd());
+ registerVoicedCommandHandler(new Menu());
+
LOGGER.info("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers.");
}
Index: head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java (working copy)
@@ -60,7 +60,10 @@
// Player is Gm and access level is below or equal to canGainExp and is in party, don't give Xp
if (!getActiveChar().getAccessLevel().canGainExp() && getActiveChar().isInParty())
return false;
-
+
+ if (activeChar.cantGainXP())
+ return false;
+
if (!super.addExp(value))
return false;
@@ -105,7 +108,10 @@
L2PcInstance activeChar = getActiveChar();
if (!activeChar.getAccessLevel().canGainExp() && activeChar.isInParty())
return false;
-
+
+ if (activeChar.cantGainXP())
+ return false;
+
// if this player has a pet that takes from the owner's Exp, give the pet Exp now
if (activeChar.getPet() instanceof L2PetInstance)
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java (working copy)
@@ -141,8 +141,9 @@
// Send message to client
activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
- Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
-
+ if (!activeChar.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+
activeChar = null;
weaponInst = null;
weaponItem = null;
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java (working copy)
@@ -79,7 +79,13 @@
requestor.sendMessage("You can't invite that player in party: you or your target are in Event");
return;
}
-
+
+ if (target.isPartyInvProt())
+ {
+ requestor.sendMessage("You can't invite that player because he is in party protection.");
+ return;
+ }
+
if (target.isInParty())
{
final SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_ALREADY_IN_PARTY);
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java (working copy)
@@ -0,0 +1,92 @@
+package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
+
+import javolution.text.TextBuilder;
+
+import org.apache.log4j.Logger;
+
+import com.l2jfrozen.Config;
+import com.l2jfrozen.gameserver.datatables.sql.NpcTable;
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.managers.GrandBossManager;
+import com.l2jfrozen.gameserver.managers.RaidBossSpawnManager;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.gameserver.powerpak.RaidInfo.RaidInfoHandler;
+import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
+import com.l2jfrozen.gameserver.templates.StatsSet;
+
+public class Raid implements IVoicedCommandHandler
+{
+ private static Logger LOGGER = Logger.getLogger(RaidInfoHandler.class);
+ private static final String[] _voicedCommands =
+ {
+ "Raids"
+ };
+
+ @Override
+ public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+ {
+ TextBuilder tb = new TextBuilder();
+ NpcHtmlMessage msg = new NpcHtmlMessage(5);
+ tb.append("<html><title>Grand Boss</title><body><br><center>");
+ tb.append("<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>");
+
+ for (final int boss : Config.RAID_INFO_IDS_LIST)
+ {
+ String name = "";
+ L2NpcTemplate template = null;
+ if ((template = NpcTable.getInstance().getTemplate(boss)) != null)
+ {
+ name = template.getName();
+ }
+ else
+ {
+ LOGGER.warn("[RaidInfoHandler][sendInfo] Raid Boss with ID " + boss + " is not defined into NpcTable");
+ continue;
+ }
+
+ StatsSet actual_boss_stat = null;
+ GrandBossManager.getInstance().getStatsSet(boss);
+ long delay = 0;
+
+ if (NpcTable.getInstance().getTemplate(boss).type.equals("L2RaidBoss"))
+ {
+ actual_boss_stat = RaidBossSpawnManager.getInstance().getStatsSet(boss);
+ if (actual_boss_stat != null)
+ delay = actual_boss_stat.getLong("respawnTime");
+ }
+ else if (NpcTable.getInstance().getTemplate(boss).type.equals("L2GrandBoss"))
+ {
+ actual_boss_stat = GrandBossManager.getInstance().getStatsSet(boss);
+ if (actual_boss_stat != null)
+ delay = actual_boss_stat.getLong("respawn_time");
+ }
+ else
+ continue;
+
+ if (delay <= System.currentTimeMillis())
+ {
+ tb.append("<font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">Is Alive</color>" + "<br1>");
+ }
+ else
+ {
+ final int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60);
+ final int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60);
+ final int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000);
+ tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" + " " + "Respawn in :</color>" + " " + " <font color=\"32C332\">" + hours + " : " + mins + " : " + seconts + "</color><br1>");
+ }
+ }
+
+ tb.append("<br><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>");
+ tb.append("</center></body></html>");
+ msg.setHtml(tb.toString());
+ activeChar.sendPacket(msg);
+ return false;
+ }
+
+ @Override
+ public String[] getVoicedCommandList()
+ {
+ return _voicedCommands;
+ }
+}
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Menu.java (working copy)
@@ -0,0 +1,126 @@
+/*
+ * 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 <
O conteúdo está oculto, favor efetuar login ou se cadastrar!
+ */
+package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
+
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.model.L2World;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+
+/**
+ *
+ * @author Bluur
+ * @version 1.0
+ */
+
+public class Menu implements IVoicedCommandHandler
+{
+ private static final String[] _voicedCommands =
+ {
+ "menu",
+ "setPartyRefuse",
+ "setTradeRefuse",
+ "setbuffsRefuse",
+ "setMessageRefuse",
+ "setxpnot",
+ "setSsprot"
+ };
+
+ private static final String ACTIVED = "<font color=00FF00>ON</font>";
+ private static final String DESATIVED = "<font color=FF0000>OFF</font>";
+
+ @Override
+ public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+ {
+ if (command.equals("menu"))
+ showHtml(activeChar);
+
+ else if (command.equals("setPartyRefuse"))
+ {
+ if (activeChar.isPartyInvProt())
+ activeChar.setIsPartyInvProt(false);
+ else
+ activeChar.setIsPartyInvProt(true);
+ showHtml(activeChar);
+ }
+ else if (command.equals("setTradeRefuse"))
+ {
+ if (activeChar.isInTradeProt())
+ activeChar.setIsInTradeProt(false);
+ else
+ activeChar.setIsInTradeProt(true);
+ showHtml(activeChar);
+ }
+ else if (command.equals("setMessageRefuse"))
+ {
+ if (activeChar.getMessageRefusal())
+ activeChar.setMessageRefusal(false);
+ else
+ activeChar.setMessageRefusal(true);
+ showHtml(activeChar);
+ }
+ else if (command.equals("setbuffsRefuse"))
+ {
+ if (activeChar.isBuffProtected())
+ activeChar.setIsBuffProtected(false);
+ else
+ activeChar.setIsBuffProtected(true);
+ activeChar.sendMessage("Buff protection.");
+ showHtml(activeChar);
+ }
+
+ else if (command.equals("setxpnot"))
+ {
+ if (activeChar.cantGainXP())
+ activeChar.cantGainXP(false);
+ else
+ activeChar.cantGainXP(true);
+ activeChar.sendMessage(" Xp effects.");
+ showHtml(activeChar);
+ }
+ else if (command.equals("setSsprot"))
+ {
+ if (activeChar.isSSDisabled())
+ activeChar.setIsSSDisabled(false);
+ else
+ activeChar.setIsSSDisabled(true);
+ activeChar.sendMessage("Soulshots effects.");
+ showHtml(activeChar);
+ }
+ return true;
+ }
+
+ private static void showHtml(L2PcInstance activeChar)
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(0);
+ html.setFile("data/html/mods/menu.htm");
+ L2World.getInstance();
+ html.replace("%online%", L2World.getAllPlayersCount());
+ html.replace("%partyRefusal%", activeChar.isPartyInvProt() ? ACTIVED : DESATIVED);
+ html.replace("%tradeRefusal%", activeChar.isInTradeProt() ? ACTIVED : DESATIVED);
+ html.replace("%buffsRefusal%", activeChar.isBuffProtected() ? ACTIVED : DESATIVED);
+ html.replace("%messageRefusal%", activeChar.getMessageRefusal() ? ACTIVED : DESATIVED);
+ html.replace("%cantGainXP%", activeChar.cantGainXP() ? ACTIVED : DESATIVED);
+ html.replace("%Eff.Ss%", activeChar.isSSDisabled() ? ACTIVED : DESATIVED);
+
+ activeChar.sendPacket(html);
+ }
+
+ @Override
+ public String[] getVoicedCommandList()
+ {
+ return _voicedCommands;
+ }
+}
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/FishShots.java (working copy)
@@ -105,7 +105,8 @@
// activeChar.sendPacket(new SystemMessage(SystemMessage.ENABLED_SPIRITSHOT));
MagicSkillUser MSU = new MagicSkillUser(activeChar, SKILL_IDS[grade], 1, 0, 0);
- Broadcast.toSelfAndKnownPlayers(activeChar, MSU);
+ if (!activeChar.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayers(activeChar, MSU);
MSU = null;
activeChar.setTarget(oldTarget);
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/CastleManagersVCmd.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/CastleManagersVCmd.java (revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/CastleManagersVCmd.java (working copy)
@@ -0,0 +1,73 @@
+package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
+
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.managers.CastleManager;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.model.entity.siege.Castle;
+import com.l2jfrozen.gameserver.network.SystemMessageId;
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.gameserver.network.serverpackets.SiegeInfo;
+
+public class CastleManagersVCmd implements IVoicedCommandHandler
+{
+ private static final String[] _voicedCommands = {"castlemanager","siege_gludio","siege_dion","siege_giran","siege_oren","siege_aden","siege_innadril","siege_goddard","siege_rune","siege_schuttgart"};
+
+ @Override
+ public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+ {
+ if (command.startsWith("castlemanager"))
+ {
+ sendHtml(activeChar);
+ }
+
+ if (command.startsWith("siege_"))
+ {
+ if (activeChar.getClan() != null && !activeChar.isClanLeader())
+ {
+ activeChar.sendPacket(SystemMessageId.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
+ return false;
+ }
+
+ int castleId = 0;
+
+ if (command.startsWith("siege_gludio"))
+ castleId = 1;
+ else if (command.startsWith("siege_dion"))
+ castleId = 2;
+ else if (command.startsWith("siege_giran"))
+ castleId = 3;
+ else if (command.startsWith("siege_oren"))
+ castleId = 4;
+ else if (command.startsWith("siege_aden"))
+ castleId = 5;
+ else if (command.startsWith("siege_innadril"))
+ castleId = 6;
+ else if (command.startsWith("siege_goddard"))
+ castleId = 7;
+ else if (command.startsWith("siege_rune"))
+ castleId = 8;
+ else if (command.startsWith("siege_schuttgart"))
+ castleId = 9;
+
+ Castle castle = CastleManager.getInstance().getCastleById(castleId);
+ if(castle != null && castleId != 0)
+ activeChar.sendPacket(new SiegeInfo(castle));
+ }
+ return true;
+ }
+
+ private static void sendHtml(L2PcInstance activeChar)
+ {
+ String htmFile = "data/html/mods/CastleManager.htm";
+
+ NpcHtmlMessage msg = new NpcHtmlMessage(5);
+ msg.setFile(htmFile);
+ activeChar.sendPacket(msg);
+ }
+
+ @Override
+ public String[] getVoicedCommandList()
+ {
+ return _voicedCommands;
+ }
+}
\ No newline at end of file
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -1197,6 +1197,10 @@
/** The _exchange refusal. */
private boolean _exchangeRefusal = false; // Exchange refusal
+ private boolean _cantGainXP = false;
+ private boolean _isPartyInvProt = false;
+ private boolean _isInTradeProt = false;
+ private boolean _isSSDisabled = false;
/** The _party. */
private L2Party _party;
@@ -13894,6 +13898,46 @@
sendPacket(SystemMessage.getSystemMessage(id));
}
+ public boolean isInTradeProt()
+ {
+ return _isInTradeProt;
+ }
+
+ public void setIsInTradeProt(boolean value)
+ {
+ _isInTradeProt = value;
+ }
+
+ public boolean isSSDisabled()
+ {
+ return _isSSDisabled;
+ }
+
+ public void setIsSSDisabled(boolean value)
+ {
+ _isSSDisabled = value;
+ }
+
+ public boolean isPartyInvProt()
+ {
+ return _isPartyInvProt;
+ }
+
+ public void setIsPartyInvProt(boolean value)
+ {
+ _isPartyInvProt = value;
+ }
+
+ public void cantGainXP(boolean b)
+ {
+ _cantGainXP = b;
+ }
+
+ public boolean cantGainXP()
+ {
+ return _cantGainXP;
+ }
+
/**
* Gets the message refusal.
* @return the message refusal
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SoulShots.java (working copy)
@@ -147,8 +147,9 @@
// Send message to client
activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SOULSHOT));
- Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
-
+ if (!activeChar.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+
activeChar = null;
}
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSoulShot.java (working copy)
@@ -157,8 +157,9 @@
// Pet uses the power of spirit.
activeOwner.sendPacket(new SystemMessage(SystemMessageId.PET_USE_THE_POWER_OF_SPIRIT));
- Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, 2033, 1, 0, 0), 360000/* 600 */);
-
+ if (!activeOwner.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, 2033, 1, 0, 0), 360000/*600*/);
+
activeOwner = null;
activePet = null;
weaponInst = null;
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/TradeRequest.java (working copy)
@@ -229,6 +229,12 @@
return;
}
+ if (partner.isInTradeProt())
+ {
+ player.sendMessage(partner.getName() + " is in Trade Protection Mode");
+ return;
+ }
+
// Alt game - Karma punishment
if (!Config.ALT_GAME_KARMA_PLAYER_CAN_TRADE && (player.getKarma() > 0 || partner.getKarma() > 0))
{
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (working copy)
@@ -28,6 +28,8 @@
import com.l2jfrozen.gameserver.datatables.sql.AdminCommandAccessRights;
import com.l2jfrozen.gameserver.handler.AdminCommandHandler;
import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.handler.VoicedCommandHandler;
import com.l2jfrozen.gameserver.handler.custom.CustomBypassHandler;
import com.l2jfrozen.gameserver.model.L2Object;
import com.l2jfrozen.gameserver.model.L2World;
@@ -125,6 +127,21 @@
{
playerHelp(activeChar, _command.substring(12));
}
+ if (_command.startsWith("voiced_"))
+ {
+ String command = _command.split(" ")[0];
+
+ IVoicedCommandHandler ach = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(7));
+
+ if (ach == null)
+ {
+ activeChar.sendMessage("The command " + command.substring(7) + " does not exist!");
+ LOGGER.warn("No handler registered for command '" + _command + "'");
+ return;
+ }
+
+ ach.useVoicedCommand(_command.substring(7), activeChar, null);
+ }
else if (_command.startsWith("npc_"))
{
if (!activeChar.validateBypass(_command))
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/SpiritShot.java (working copy)
@@ -133,8 +133,9 @@
// Send message to client
activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
- Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
-
+ if (!activeChar.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+
activeChar = null;
}
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BeastSpiritShot.java (working copy)
@@ -171,8 +171,9 @@
// Pet uses the power of spirit.
activeOwner.sendPacket(new SystemMessage(SystemMessageId.PET_USE_THE_POWER_OF_SPIRIT));
- Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/* 600 */);
-
+ if (!activeOwner.isSSDisabled())
+ Broadcast.toSelfAndKnownPlayersInRadius(activeOwner, new MagicSkillUser(activePet, activePet, isBlessed ? 2009 : 2008, 1, 0, 0), 360000/*600*/);
+
activeOwner = null;
activePet = null;
weaponInst = null;
gameserver\data\html\mods
menu.htm
<html><body><title>By Bluur - Fanatic Team</title>
<br>
<center>
<table width=224>
<tr>
<td width=32><img src=Icon.etc_alphabet_l_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_i_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_n_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_e_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_a_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_g_i00 height=32 width=32></td>
<td width=32><img src=Icon.etc_alphabet_e_i00 height=32 width=32></td>
</tr>
</table>
<br>
<br>
Player(s) online: <font color="00FF00">%online%</font></center>
<br>
<center><font color="LEVEL">Configure your character</font></center>
<img src="L2UI.SquareGray" width=270 height=1>
<table bgcolor="000000">
<tr>
<td width=5></td>
<td width=105>Type</td>
<td width=100>Currently</td>
<td width=50>Action</td>
</tr>
</table>
<img src="L2UI.SquareGray" width=270 height=1>
<br>
<table bgcolor="000000">
<tr>
<td width=5></td>
<td width=100>Party Refuse</td>
<td width=100>%partyRefusal%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp" fore="L2UI_CH3.br_bar2_hp" action="bypass -h voiced_setPartyRefuse" value="Alter"></td>
</tr>
<tr>
<td width=5></td>
<td width=100>Trade Refusal</td>
<td width=100>%tradeRefusal%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass -h voiced_setTradeRefuse" value="Alter"></td>
</tr>
<tr>
<td width=5></td>
<td width=100>Buffs Refusal</td>
<td width=100>%buffsRefusal%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass -h voiced_setbuffsRefuse" value="Alter"></td>
</tr>
<tr>
<td width=5></td>
<td width=100>Message Refusal</td>
<td width=100>%messageRefusal%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass -h voiced_setMessageRefuse" value="Alter"></td>
</tr>
<tr>
<td width=5></td>
<td width=100>Exp On & Off</td>
<td width=100>%cantGainXP%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass -h voiced_setxpnot" value="Alter"></td>
</tr>
<tr>
<td width=5></td>
<td width=100>Soulshots effects</td>
<td width=100>%Eff.Ss%</td>
<td width=50><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass -h voiced_setSsprot" value="Alter"></td>
</tr>
</table>
<br>
<center>
<img src="L2UI.SquareGray" width=160 height=1><br>
</center>
<br>
<center>
<font color="LEVEL">Exchange Adena or Gold Bar</font>
<table>
<tr>
<td><button value="Make Gold Bar" action="bypass voiced_deposit" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
<td><button value="Make Adena" action="bypass voiced_withdraw" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</tr>
</table>
</br><br>
<img src="L2UI.SquareGray" width=230 height=1>
</center>
<br>
<center>
<font color="LEVEL"> -= Options=- </font>
<table>
<tr>
<br1>
<table>
<tr>
<td width=5></td>
<td width=180>Server Raid</td>
<td width=100><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass voiced_Raids" value="Open"></td>
</tr>
<tr>
<td width=5></td>
<td width=180>Castle</td>
<td width=100><button width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1" action="bypass voiced_castlemanager" value="Open"></td>
</tr>
</table>
<center>
<img src="L2UI.SquareGray" width=230 height=1>
<br>
</center>
</body></html>
gameserver\data\html\mods
CastleManager.htm
<html><title>Castle Manager</title>
<body>
<center>
<br>
<img src="l2ui_ch3.herotower_deco" width=256 height=32>
<br>
<br>
<center>Select a castle to attack or defend.</center>
<center>
<img src="L2UI.SquareGray" width=230 height=1>
</center>
<center>
<table>
<tr>
<td><button value="Giran Castle" action="bypass voiced_siege_giran" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
<td><button value="Aden Castle" action="bypass voiced_siege_aden" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</tr>
</table>
<table>
<tr>
<td><button value="Rune Castle" action="bypass voiced_siege_rune" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
<td><button value="Goddard Castle" action="bypass voiced_siege_goddard" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</tr>
</table>
<table>
<tr>
<td><button value="Oren Castle" action="bypass voiced_siege_oren" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
<td><button value="Gludio Castle" action="bypass voiced_siege_gludio" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</tr>
</table>
<table>
<tr>
<td><button value="Innadril Castle" action="bypass voiced_siege_innadril" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
<td><button value="Dion Castle" action="bypass voiced_siege_dion" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</tr>
</table>
<td><button value="Schuttgart Castle" action="bypass voiced_siege_schuttgart" width=90 height=16 back="L2UI_CH3.br_bar2_hp1" fore="L2UI_CH3.br_bar2_hp1"></td>
</center>
<center>
<img src="L2UI.SquareGray" width=230 height=1>
<br>
<a action="bypass voiced_menu">Back to Menu</a>
</center>
<center>
<img src="l2ui_ch3.herotower_deco" width=256 height=32>
</body>
</center>
</html>
Editado por tutucaleandro
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts recomendados

  • 0

Tutorial ensinando como Add Java Mod

http://www.l2jbrasil.com/index.php?/topic/25869-video-tutorial-adicionar-um-mod-pelo-eclipse/

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

so basta escolher qual assistir

Editado por Revengeance
Link para o comentário
Compartilhar em outros sites


  • 0

Esse layout do . menu é meu. Algum safado copiou. Kkkk

Posta pra nós essa HTML tentei fazer conseguir mais quando liga ao invés de fica on fica off e tá ligado.

 

 

Em quanto o mod ele foi feito pra frozen 1118 não tem que mudar quase nada eu acho que não muda nada no mod.

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.