Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java

    r8585 r8630  
    146146                                showCharacterInfo(activeChar, activeChar.getTarget().getActingPlayer()); 
    147147                        else 
    148                                 activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     148                                activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    149149                } 
    150150                else if (command.startsWith("admin_character_list")) 
     
    213213                                editCharacter(activeChar, null); 
    214214                        else 
    215                                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     215                                        activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    216216                } 
    217217                // Karma control commands 
     
    251251                                } 
    252252                                else 
    253                                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     253                                        activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    254254                        } 
    255255                        catch (Exception e) 
     
    278278                                } 
    279279                                else 
    280                                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     280                                        activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    281281                        } 
    282282                        catch (Exception e) 
     
    305305                                } 
    306306                                else 
    307                                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     307                                        activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    308308                        } 
    309309                        catch (Exception e) 
     
    346346                                } 
    347347                                else 
    348                                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     348                                        activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    349349                        } 
    350350                        catch (Exception e) 
     
    541541                                L2PetInstance targetPet = (L2PetInstance) target; 
    542542                                targetPet.setCurrentFed(targetPet.getMaxFed()); 
    543                                 targetPet.getOwner().sendPacket(new SetSummonRemainTime(targetPet.getMaxFed(), targetPet.getCurrentFed())); 
     543                                targetPet.sendPacket(new SetSummonRemainTime(targetPet.getMaxFed(), targetPet.getCurrentFed())); 
    544544                        } 
    545545                        else 
    546                                 activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     546                                activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    547547                } 
    548548                else if(command.startsWith("admin_remove_clan_penalty")) 
     
    645645                        if (pl == null) 
    646646                        { 
    647                                 activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET)); 
     647                                activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 
    648648                                return false; 
    649649                        } 
     
    969969                        player.setKarma(newKarma); 
    970970                        //Common character information 
    971                         player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOUR_KARMA_HAS_BEEN_CHANGED_TO_S1).addString(String.valueOf(newKarma))); 
     971                        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOUR_KARMA_HAS_BEEN_CHANGED_TO_S1); 
     972                        sm.addNumber(newKarma); 
     973                        player.sendPacket(sm); 
    972974                        //Admin information 
    973975                        activeChar.sendMessage("Successfully Changed karma for " + player.getName() + " from (" + oldKarma + ") to (" + newKarma + ")."); 
     
    11641166                                        continue; 
    11651167                                } 
    1166                                 else 
    1167                                 { 
    1168                                         ip = client.getConnection().getInetAddress().getHostAddress(); 
    1169                                         if (!ip.equals(IpAdress)) 
    1170                                                 continue; 
    1171                                 } 
     1168                                 
     1169                                ip = client.getConnection().getInetAddress().getHostAddress(); 
     1170                                if (!ip.equals(IpAdress)) 
     1171                                        continue; 
    11721172                        } 
    11731173                         
     
    12451245        /** 
    12461246         * @param activeChar 
     1247         * @param multibox  
    12471248         */ 
    12481249        private void findDualbox(L2PcInstance activeChar, int multibox) 
     
    12611262                        client = player.getClient(); 
    12621263                        if (client == null || client.isDetached()) 
     1264                        { 
    12631265                                continue; 
    1264                         else 
    1265                         { 
    1266                                 ip = client.getConnection().getInetAddress().getHostAddress(); 
    1267                                 if (ipMap.get(ip) == null) 
    1268                                         ipMap.put(ip, new ArrayList<L2PcInstance>()); 
    1269                                 ipMap.get(ip).add(player); 
    1270                                  
    1271                                 if (ipMap.get(ip).size() >= multibox) 
    1272                                 { 
    1273                                         Integer count = dualboxIPs.get(ip); 
    1274                                         if (count == null) 
    1275                                                 dualboxIPs.put(ip, multibox); 
    1276                                         else 
    1277                                                 dualboxIPs.put(ip, count + 1); 
    1278                                 } 
     1266                        } 
     1267                         
     1268                        ip = client.getConnection().getInetAddress().getHostAddress(); 
     1269                        if (ipMap.get(ip) == null) 
     1270                                ipMap.put(ip, new ArrayList<L2PcInstance>()); 
     1271                        ipMap.get(ip).add(player); 
     1272                         
     1273                        if (ipMap.get(ip).size() >= multibox) 
     1274                        { 
     1275                                Integer count = dualboxIPs.get(ip); 
     1276                                if (count == null) 
     1277                                        dualboxIPs.put(ip, multibox); 
     1278                                else 
     1279                                        dualboxIPs.put(ip, count + 1); 
    12791280                        } 
    12801281                } 
     
    13181319                        client = player.getClient(); 
    13191320                        if (client == null || client.isDetached()) 
     1321                        { 
    13201322                                continue; 
    1321                         else 
    1322                         { 
    1323                                 IpPack pack = new IpPack(client.getConnection().getInetAddress().getHostAddress(), client.getTrace()); 
    1324                                 if (ipMap.get(pack) == null) 
    1325                                         ipMap.put(pack, new ArrayList<L2PcInstance>()); 
    1326                                 ipMap.get(pack).add(player); 
    1327                                  
    1328                                 if (ipMap.get(pack).size() >= multibox) 
    1329                                 { 
    1330                                         Integer count = dualboxIPs.get(pack); 
    1331                                         if (count == null) 
    1332                                                 dualboxIPs.put(pack, multibox); 
    1333                                         else 
    1334                                                 dualboxIPs.put(pack, count + 1); 
    1335                                 } 
     1323                        } 
     1324                         
     1325                        IpPack pack = new IpPack(client.getConnection().getInetAddress().getHostAddress(), client.getTrace()); 
     1326                        if (ipMap.get(pack) == null) 
     1327                                ipMap.put(pack, new ArrayList<L2PcInstance>()); 
     1328                        ipMap.get(pack).add(player); 
     1329                         
     1330                        if (ipMap.get(pack).size() >= multibox) 
     1331                        { 
     1332                                Integer count = dualboxIPs.get(pack); 
     1333                                if (count == null) 
     1334                                        dualboxIPs.put(pack, multibox); 
     1335                                else 
     1336                                        dualboxIPs.put(pack, count + 1); 
    13361337                        } 
    13371338                } 
     
    14811482                } 
    14821483 
     1484                @Override 
    14831485                public void run() 
    14841486                { 
Note: See TracChangeset for help on using the changeset viewer.