07-06-2012, 02:03 AM
This is a great way to find hackers in your server. Typically a hacker will give themselves loads of gold right? Well to find any hacker in even large servers, all you need to do is one of these:
Method 1-The Manual Way
Navicat -> newproject_db -> t_inven00 ->
Right click on the column heading: a_count0 and select "Sort Decending", it will then display the highest values of gold in a players inventory at the top of the column. You can look in the same row under a_item_index0 to confirm it is gold (19) and you can decide whether or not that character is a hacker if he isnt a legit admin or GM (check character index and search for it in t_character). Then scroll to the right and do the same thing to check columns a_count1 a_count 2 a_count 3 and a_count4
Repeat these instructions for t_inven01 through t_inven09, and you will have just checked every character that has ever played on your server.
------------------------------------------
Method 2-The Automatic Way
Navicat -> right click newproject_db -> Console
This code will check every players inventory and reset any players gold to 0 if they have more that 10 billion (10kkk) gold in their inventory (or more than 10kkk of anything else for that matter, such as expb or pbi. Be sure you dont give yourself more than 10kkk or your own inventory will be emptied lol, but your admin you can get that right back anyway.
UPDATE t_inven00 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven01 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven02 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven03 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven04 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven05 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven06 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven07 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven08 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven09 SET a_count = 0 WHERE a_count > 10000000000;
UPDATE t_inven00 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven01 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven02 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven03 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven04 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven05 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven06 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven07 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven08 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven09 SET a_count = 0 WHERE a_count1 > 10000000000;
UPDATE t_inven00 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven01 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven02 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven03 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven04 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven05 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven06 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven07 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven08 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven09 SET a_count = 0 WHERE a_count2 > 10000000000;
UPDATE t_inven00 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven01 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven02 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven03 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven04 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven05 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven06 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven07 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven08 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven09 SET a_count = 0 WHERE a_count3 > 10000000000;
UPDATE t_inven00 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven01 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven02 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven03 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven04 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven05 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven06 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven07 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven08 SET a_count = 0 WHERE a_count4 > 10000000000;
UPDATE t_inven09 SET a_count = 0 WHERE a_count4 > 10000000000;
*************************************************
To those with the skill, you can use my basic ideas here to develop even better ways for yourself, such as php for your site to show a ranking for the player with the most gold, then if they are not GM everyone can clearly see who the hackers are.


