![]() |
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
parse your skillacuire, get ids and skill_lvls for skills that are in it (by taking info from skilldata), then parse your skillnames-e for it's ids and levels, and then compare - you'll easily get all wrong skills in your skillacquire. This idea is very easy to implement:
[php:1:0f4c528eed] #!/usr/bin/perl open (IN_ACQ,"skillacquire.txt"); open (IN_DATA,"skilldata.txt"); open (IN_NAMES,"skillnames-e.dat"); open (OUT1,">skills-black.txt"); while (<IN_DATA>) { @params=split /\\t/; $skills_by_name_data{$params[1]}=join ",",($params[3],$params[4]); } while (<IN_NAMES>) { @params=split /\\t/; $skills_by_id_names{join ",",($params[1],$params[2])}=$params[3]; } while (<IN_ACQ>) { @params=split /\\t/; if ($params[2] ne "") { if ($skills_by_id_names{$skills_by_name_data{$params[2]}} eq "") { print OUT1 "$params[2]\n"; } } } close (IN_ACQ); close (IN_DATA); close (IN_NAMES); close (OUT1); [/php:1:0f4c528eed] Untested, couse writed here in 5 minutes, but should work ![]() EDIT: REPLACE "/t/" with "/\t/" here, couse forum engine wrong parsed this :\ PS: skillnames-e.dat for script must be decripted and parsed to C1/C2-format with tab delimeters PSS: All files in ANSI |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|