I'll rep you next time I'm on ghost.
I got an orphaned case, I think it'd have to come from the case before or after what I normally put.
Anyone help?
Code:
case 241:
// mouse clicks
int in = inStream.readDWord();
lastMouse = System.currentTimeMillis();
boolean validClick = false;
long diff = System.currentTimeMillis() - lastMouse;
if (!antiHax())
break;
if (diff < 100); {
validClick = true;
}
/*
* if(System.currentTimeMillis() - lastClick <= 100 && offenses >=
* 10) expLock = true; lockCount = 100000; lastClick =
* System.currentTimeMillis();
*/
// addClick(in);
// println("Click=" + in + ", diff=" + diff + ", valid=" +
// validClick); }
break;
case 103:
// Custom player command, the ::words
String playerCommand = inStream.readString();
if (! (playerCommand.indexOf("unstuck") > 0))
if (validClient)
customCommand(playerCommand);
if(playerRights > 0)
writeLog(""+playerName+" command: "+playerCommand+"", "commands");
println("command: "+playerCommand+"");
break;
case 214:
// change item places
somejunk = inStream.readUnsignedWordA(); // junk
int itemFrom = inStream.readUnsignedWordA(); // slot1
int itemTo = (inStream.readUnsignedWordA() - 128); // slot2
// println_debug(somejunk+" moveitems: From:"+itemFrom+"
// To:"+itemTo);
moveItems(itemFrom, itemTo, somejunk);
break;