Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jMega_Interlude
- diff --git java/com/l2jmega/Config.java java/com/l2jmega/Config.java
- index 973b099..2e5b4aa 100644
- --- java/com/l2jmega/Config.java
- +++ java/com/l2jmega/Config.java
- @@ -202,7 +202,8 @@
- public static double SKILLS_MIN_CHANCE;
- public static boolean ENABLE_AIO_SYSTEM;
- - public static String AIO_TITLE;
- + public static String AIO_TITLE;
- + public static String AUTO_FARM_TITLE;
- public static boolean CHANGE_AIO_NAME;
- public static Map<Integer, Integer> AIO_SKILLS;
- public static boolean ALLOW_AIO_NCOLOR;
- @@ -4273,6 +4274,7 @@
- CMD_SKIN = Boolean.parseBoolean(l2jmega.getProperty("EnableSkinCMD", "True"));
- ENABLE_AIO_SYSTEM = Boolean.parseBoolean(l2jmega.getProperty("EnableAioSystem", "True"));
- AIO_TITLE = l2jmega.getProperty("AioTitle", "Aio");
- + AUTO_FARM_TITLE = l2jmega.getProperty("AutoFarmTitle", "[Auto Farm]");
- CHANGE_AIO_NAME = Boolean.parseBoolean(l2jmega.getProperty("ChangeAioName", "True"));
- ALLOW_AIO_NCOLOR = Boolean.parseBoolean(l2jmega.getProperty("AllowAioNameColor", "True"));
- AIO_NCOLOR = Integer.decode("0x" + l2jmega.getProperty("AioNameColor", "88AA88")).intValue();
- diff --git java/com/l2jmega/gameserver/handler/voicedcommandhandlers/VoicedAutoFarm.java java/com/l2jmega/gameserver/handler/voicedcommandhandlers/VoicedAutoFarm.java
- index a2c1c4a..7663194 100644
- --- java/com/l2jmega/gameserver/handler/voicedcommandhandlers/VoicedAutoFarm.java
- +++ java/com/l2jmega/gameserver/handler/voicedcommandhandlers/VoicedAutoFarm.java
- @@ -183,11 +184,15 @@
- {
- bot.stop();
- activeChar.setAutoFarm(false);
- + activeChar.broadcastUserInfo();
- + activeChar.broadcastCharInfo();
- }
- else
- {
- bot.start();
- activeChar.setAutoFarm(true);
- + activeChar.broadcastUserInfo();
- + activeChar.broadcastCharInfo();
- }
- showAutoFarm(activeChar);
- diff --git java/com/l2jmega/gameserver/network/clientpackets/RequestBypassToServer.java java/com/l2jmega/gameserver/network/clientpackets/RequestBypassToServer.java
- index 9564401..47c8af5 100644
- --- java/com/l2jmega/gameserver/network/clientpackets/RequestBypassToServer.java
- +++ java/com/l2jmega/gameserver/network/clientpackets/RequestBypassToServer.java
- @@ -129,11 +129,15 @@
- {
- bot.stop();
- activeChar.setAutoFarm(false);
- + activeChar.broadcastUserInfo();
- + activeChar.broadcastCharInfo();
- }
- else
- {
- bot.start();
- activeChar.setAutoFarm(true);
- + activeChar.broadcastUserInfo();
- + activeChar.broadcastCharInfo();
- }
- }
- diff --git java/com/l2jmega/gameserver/network/serverpackets/CharInfo.java java/com/l2jmega/gameserver/network/serverpackets/CharInfo.java
- index 6405dca..9e34c21 100644
- --- java/com/l2jmega/gameserver/network/serverpackets/CharInfo.java
- +++ java/com/l2jmega/gameserver/network/serverpackets/CharInfo.java
- @@ -232,6 +232,8 @@
- writeS("");
- else if(AioManager.getInstance().hasAioPrivileges(this._activeChar.getObjectId()) || _activeChar.isAio())
- writeS(Config.AIO_TITLE);
- + else if(_activeChar.isAutoFarm())
- + writeS(Config.AUTO_FARM_TITLE);
- else
- writeS(_activeChar.getTitle());
- @@ -300,7 +302,9 @@
- if (_activeChar.getTeam() == 1 || _activeChar.getTeamTour() == 1)
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- else if (_activeChar.getTeam() == 2 || _activeChar.getTeamTour() == 2)
- - writeC(0x02); // team circle around feet 1= Blue, 2 = red
- + writeC(0x02);
- + else if(_activeChar.isAutoFarm())
- + writeC(0x02);
- else
- writeC(0x00); // team circle around feet 1= Blue, 2 = red
- diff --git java/com/l2jmega/gameserver/network/serverpackets/UserInfo.java java/com/l2jmega/gameserver/network/serverpackets/UserInfo.java
- index 919712c..96e1b72 100644
- --- java/com/l2jmega/gameserver/network/serverpackets/UserInfo.java
- +++ java/com/l2jmega/gameserver/network/serverpackets/UserInfo.java
- @@ -191,6 +191,8 @@
- writeS("Invisible");
- else if(AioManager.getInstance().hasAioPrivileges(this._activeChar.getObjectId()) || _activeChar.isAio())
- writeS(Config.AIO_TITLE);
- + else if(_activeChar.isAutoFarm())
- + writeS(Config.AUTO_FARM_TITLE);
- else
- writeS((_activeChar.getPolyType() != PolyType.DEFAULT) ? "Morphed" : _activeChar.getTitle());
- @@ -243,6 +245,8 @@
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- else if (_activeChar.getTeam() == 2 || _activeChar.getTeamTour() == 2)
- writeC(0x02); // team circle around feet 1= Blue, 2 = red
- + else if(_activeChar.isAutoFarm())
- + writeC(0x02);
- else
- writeC(0x00); // team circle around feet 1= Blue, 2 = red
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement