mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 10:51:30 +00:00
Adjust import_13th_floor.pl to flip slots 21 and 22 [skip ci]
This commit is contained in:
parent
3a7d7c727f
commit
1b4dbd1ce7
@ -111,6 +111,14 @@ sub read_items_file_from_13th_floor_text {
|
||||
print "Processing (" . $read_items_file . ") :: (Items: " . $total_items . "/" . $total_items_file . ") \r";
|
||||
|
||||
printf "\n" . $total_items . " items added to database... Took " . (time() - $start_time) . " second(s)... \n";
|
||||
|
||||
print "Flipping slots 21 and 22...";
|
||||
$rows_affected = $dbh->prepare("
|
||||
UPDATE `items_floor`
|
||||
SET `slots` = (`slots` ^ 6291456)
|
||||
WHERE (`slots` & 6291456)
|
||||
IN (2097152, 4194304)")->execute();
|
||||
print " Rows affected (" . $rows_affected . ")\n";
|
||||
}
|
||||
|
||||
sub update_items_table {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user