Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java
- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java
r8585 r8630 146 146 showCharacterInfo(activeChar, activeChar.getTarget().getActingPlayer()); 147 147 else 148 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));148 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 149 149 } 150 150 else if (command.startsWith("admin_character_list")) … … 213 213 editCharacter(activeChar, null); 214 214 else 215 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));215 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 216 216 } 217 217 // Karma control commands … … 251 251 } 252 252 else 253 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));253 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 254 254 } 255 255 catch (Exception e) … … 278 278 } 279 279 else 280 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));280 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 281 281 } 282 282 catch (Exception e) … … 305 305 } 306 306 else 307 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));307 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 308 308 } 309 309 catch (Exception e) … … 346 346 } 347 347 else 348 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));348 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 349 349 } 350 350 catch (Exception e) … … 541 541 L2PetInstance targetPet = (L2PetInstance) target; 542 542 targetPet.setCurrentFed(targetPet.getMaxFed()); 543 targetPet. getOwner().sendPacket(new SetSummonRemainTime(targetPet.getMaxFed(), targetPet.getCurrentFed()));543 targetPet.sendPacket(new SetSummonRemainTime(targetPet.getMaxFed(), targetPet.getCurrentFed())); 544 544 } 545 545 else 546 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));546 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 547 547 } 548 548 else if(command.startsWith("admin_remove_clan_penalty")) … … 645 645 if (pl == null) 646 646 { 647 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.INCORRECT_TARGET));647 activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET); 648 648 return false; 649 649 } … … 969 969 player.setKarma(newKarma); 970 970 //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); 972 974 //Admin information 973 975 activeChar.sendMessage("Successfully Changed karma for " + player.getName() + " from (" + oldKarma + ") to (" + newKarma + ")."); … … 1164 1166 continue; 1165 1167 } 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; 1172 1172 } 1173 1173 … … 1245 1245 /** 1246 1246 * @param activeChar 1247 * @param multibox 1247 1248 */ 1248 1249 private void findDualbox(L2PcInstance activeChar, int multibox) … … 1261 1262 client = player.getClient(); 1262 1263 if (client == null || client.isDetached()) 1264 { 1263 1265 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); 1279 1280 } 1280 1281 } … … 1318 1319 client = player.getClient(); 1319 1320 if (client == null || client.isDetached()) 1321 { 1320 1322 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); 1336 1337 } 1337 1338 } … … 1481 1482 } 1482 1483 1484 @Override 1483 1485 public void run() 1484 1486 {
Note: See TracChangeset
for help on using the changeset viewer.
