$real_value = $kaka[1]; $real_values = $real_value; foreach ($figure_types as $index2 => $value2) { if (strpos($real_values, "_{$value2}_") !== false) { $exploded = explode("_", $real_values); $key_net = array_search($value2, $exploded); $real_exploded = array_slice($exploded, $key_net - 2); $real_values = implode("_", $real_exploded); break; } } consoleLog("File Name: {$real_value} : {$real_values}"); $file_name = OUTPUT_DIRECTORY . 'sprites/' . $real_values . '.png'; shell_exec("swfextract {$flash_file} -p {$value} -o \"{$file_name}\""); } } consoleLog("<b>Habbo SWF FigureMap resource dump Tool</b>"); consoleLogBlank(); consoleLog("OFFICIAL RESOURCE URL : " . OFFICIAL_RES_URL); consoleLog("FLASH CLIENT URL : " . FLASH_CLIENT_URL); consoleLog("OUTPUT PATH : " . OUTPUT_DIRECTORY); consoleLogBlank(); ExtractFigureMap(FLASH_CLIENT_URL . '/figuremap.xml'); DownloadAll(); consoleLog("update complete."); ?> </ul> <script> complete = true; removePreviousLine(); </script> </body> </html>
} else { $new_ranges[$count++] = $value; } } $kaka = []; $hehe = shell_exec("swfdump -s {$flash_file}"); consoleLog("Extracting SWF: {$flash_file}"); foreach ($new_ranges as $index => $value) { $name = sprintf("%04d", $value); preg_match("/exports {$name} as \"(.+)\"/", $hehe, $kaka); $real_value = $kaka[1]; $real_value = str_replace('HabboRoomContent_', '', $real_value); consoleLog("File Name: {$real_value}"); $file_name = OUTPUT_DIRECTORY . 'masks/' . $real_value . '.png'; shell_exec("swfextract {$flash_file} -p {$value} -o \"{$file_name}\""); } } consoleLog("<b>Habbo SWF Room Textures resource dump Tool</b>"); consoleLogBlank(); consoleLog("OFFICIAL RESOURCE URL : " . OFFICIAL_RES_URL); consoleLog("FLASH CLIENT URL : " . FLASH_CLIENT_URL); consoleLog("OUTPUT PATH : " . OUTPUT_DIRECTORY); consoleLogBlank(); DownloadAll(FLASH_CLIENT_URL . '/HabboRoomContent.swf'); consoleLog("update complete."); ?> </ul> <script> complete = true; removePreviousLine(); </script> </body> </html>