[SCRIPT] Генератор skillenchantdata.txt

Тема в разделе "Веб скрипты (WEB)", создана пользователем root, 30 сен 2014.

  1. root

    root Administrator Команда форума Administrator Moderator Developers Team

    Регистрация:
    23 авг 2014
    Сообщения:
    254
    Симпатии:
    58
    Баллы:
    11
    Небольшой генератор skillenchantdata.txt

    Скрипт:
    Код:
    <? $ini=parse_ini_file("skillenchantdata.ini", true); 
    
    
    $exp=array(); 
    $sp=array(); 
    
    
    $c15=array(); 
    $c30=array(); 
    
    
    for ($x=1; $x<31; $x++) 
     { 
      $exp[$x]=$ini["exp"]["level_$x"]; 
      $sp[$x]=$ini["sp"]["level_$x"]; 
     } 
    
    
    for ($x=1; $x<16; $x++) 
     { 
      $s=$ini["chance_15"]["level_$x"]; 
      $t=split("/", $s); 
      $c15[$x]=$t; 
     } 
    
    
    for ($x=1; $x<31; $x++) 
     { 
      $s=$ini["chance_30"]["level_$x"]; 
      $t=split("/", $s); 
      $c30[$x]=$t; 
     } 
    
    
    $h=fopen("skillenchantdata.txt", "w+"); 
    foreach ($ini["skills"] as $s) 
     { 
      $t=split("/", $s); 
      $n=$t[0]; 
      $r=(int) $t[1]; 
      $l=(int) $t[2]; 
      if ($l!=15 && $l!=30) $l=30; 
      if ($r==0) exit("Error in '$n'"); 
      if ($l==15) $c=$c15; else $c=$c30; 
      for ($x=1; $x<=$r; $x++) 
       for ($y=1; $y<=$l; $y++) 
        { 
         $p=""; 
         for ($z=0; $z<10; $z++) 
          $p.="prob_".($z+76)."=".trim($c[$y][$z])."\t"; 
         if ($y==1) 
          fputs($h, "enchant_skill_begin\toriginal_skill=[$n]\troute_id=$x\tenchant_id=$y\tskill_level=".(100*$x+$y)."\texp={$exp[$y]}\tsp={$sp[$y]}\titem_needed={{[{$ini['books']['normal']}];1}}\tsafe_enchant_item_needed={{[{$ini['books']['safe']}];1}}\treenchant_item_needed={{[{$ini['books']['reenchant']}];1}}\tuntrain_item_needed={{[{$ini['books']['untrain']}];1}}\t".trim($p)."\tenchant_skill_end\n"); 
         else 
          fputs($h, "enchant_skill_begin\toriginal_skill=[$n]\troute_id=$x\tenchant_id=$y\tskill_level=".(100*$x+$y)."\texp={$exp[$y]}\tsp={$sp[$y]}\titem_needed={}\tsafe_enchant_item_needed={{[{$ini['books']['safe']}];1}}\treenchant_item_needed={{[{$ini['books']['reenchant']}];1}}\tuntrain_item_needed={{[{$ini['books']['untrain']}];1}}\t".trim($p)."\tenchant_skill_end\n"); 
        } 
     } 
    fclose($h); 
    ?>
    Пример ini-файла:
    Код:
    ; ------------------------------------------------------; Список скиллов для энчанта.
    ;
    ; базовый_скилл/количество_веток/количество_уровней_энчанта
    ;
    [skills]
    s_hate192=s_hate192/4/30
    s_hate_aura152=s_hate_aura152/4/30
    s_song_of_earth=s_song_of_earth/2/30
    s_song_of_life=s_song_of_life/2/30
    s_song_of_water=s_song_of_water/2/30
    s_song_of_warding=s_song_of_warding/2/30
    s_song_of_wind=s_song_of_wind/2/30
    s_song_of_hunter=s_song_of_hunter/2/30
    s_song_of_invocation=s_song_of_invocation/2/30
    s_song_of_vitality=s_song_of_vitality/2/30
    s_song_of_vengeance=s_song_of_vengeance/2/30
    s_song_of_storm_guard=s_song_of_storm_guard/2/30
    s_dance_of_warrior=s_dance_of_warrior/2/30
    s_dance_of_inspiration=s_dance_of_inspiration/2/30
    s_dance_of_mystic=s_dance_of_mystic/2/30
    s_dance_of_fire=s_dance_of_fire/2/30
    s_dance_of_fury=s_dance_of_fury/2/30
    s_dance_of_concentration=s_dance_of_concentration/2/30
    s_dance_of_light=s_dance_of_light/2/30
    s_dance_of_aqua_guard=s_dance_of_aqua_guard/2/30
    s_dance_of_earth_guard=s_dance_of_earth_guard/2/30
    s_dance_of_vampire=s_dance_of_vampire/2/30
    s_dance_of_protection=s_dance_of_protection/2/30
    s_song_of_flame_guard=s_song_of_flame_guard/2/30
    s_shield_stun202=s_shield_stun202/6/30
    s_spoil11=s_spoil11/5/30
    s_spoil_festival9=s_spoil_festival9/5/30
    s_sweeper1=s_sweeper1/6/30
    s_ultimate_defence2=s_ultimate_defence2/5/30
    s_ultimate_evasion2=s_ultimate_evasion2/4/30
    s_bleed6=s_bleed6/4/30
    s_aegis_stance=s_aegis_stance/3/30
    s_shield_fortress6=s_shield_fortress6/4/30
    s_guard_stance4=s_guard_stance4/4/30
    s_vicious_stance20=s_vicious_stance20/4/30
    s_accuracy=s_accuracy/2/30
    s_lure=s_lure/3/30
    s_summon_dark_panther7=s_summon_dark_panther7/1/30
    s_summon_mechanic_golem9=s_summon_mechanic_golem9/1/30
    s_summon_bigboom5=s_summon_bigboom5/1/30
    s_summon_siege_golem=s_summon_siege_golem/1/30
    s_summon_wild_hog_cannon=s_summon_wild_hog_cannon/1/30
    s_summon_reanimated_man7=s_summon_reanimated_man7/1/30
    s_summon_corrupted_man6=s_summon_corrupted_man6/1/30
    s_summon_cursed_man7=s_summon_cursed_man7/1/30
    s_summon_blackcat18=s_summon_blackcat18/1/30
    s_summon_cuti_cat18=s_summon_cuti_cat18/1/30
    s_summon_kai_the_cat14=s_summon_kai_the_cat14/1/30
    s_summon_queen_of_cat10=s_summon_queen_of_cat10/1/30
    s_summon_unicorn_boxer18=s_summon_unicorn_boxer18/1/30
    s_summon_unicorn_mirage18=s_summon_unicorn_mirage18/1/30
    s_summon_unicorn_merrow14=s_summon_unicorn_merrow14/1/30
    s_summon_unicorn_seraphim10=s_summon_unicorn_seraphim10/1/30
    s_summon_shadow18=s_summon_shadow18/1/30
    s_summon_silhouette18=s_summon_silhouette18/1/30
    s_summon_soulless14=s_summon_soulless14/1/30
    s_summon_nightshade10=s_summon_nightshade10/1/30
    s_prominence142=s_prominence142/4/30
    s_aura_flare142=s_aura_flare142/2/30
    s_aura_bolt14=s_aura_bolt14/2/30
    s_hydro_blast142=s_hydro_blast142/4/30
    s_hurricane142=s_hurricane142/4/30
    s_solar_flare14=s_solar_flare14/3/30
    s_shadow_flare14=s_shadow_flare14/3/30
    s_death_spike13=s_death_spike13/3/30
    s_blazing_circle141=s_blazing_circle141/3/30
    s_eruption9=s_eruption9/4/30
    s_frost_wall112=s_frost_wall112/4/30
    s_aqua_splash9=s_aqua_splash9/3/30
    s_tempest121=s_tempest121/4/30
    s_might_of_heaven101=s_might_of_heaven101/3/30
    s_holy_strike132=s_holy_strike132/4/30
    s_curse_death_link112=s_curse_death_link112/2/30
    s_corpse_burst121=s_corpse_burst121/2/30
    s_vampiric_claw142=s_vampiric_claw142/4/30
    s_steal_essence14=s_steal_essence14/4/30
    s_life_leech15=s_life_leech15/3/30
    s_drain_energy212=s_drain_energy212/3/30
    s_lightening_strike5=s_lightening_strike5/3/30
    s_frost_bolt141=s_frost_bolt141/4/30
    s_ice_dagger131=s_ice_dagger131/4/30
    s_freezing_strike161=s_freezing_strike161/4/30
    s_arcane_acumen3=s_arcane_acumen3/2/30
    s_regeneration3=s_regeneration3/2/30
    s_wind_walk2=s_wind_walk2/2/30
    s_bless_the_body6=s_bless_the_body6/2/30
    s_bless_the_soul6=s_bless_the_soul6/2/30
    s_resist_poison3=s_resist_poison3/3/30
    s_fire_resist3=s_fire_resist3/3/30
    s_aqua_resist3=s_aqua_resist3/3/30
    s_wind_resist3=s_wind_resist3/3/30
    s_invigor3=s_invigor3/3/30
    s_resist_shock4=s_resist_shock4/3/30
    s_mental_shield4=s_mental_shield4/2/30
    s_magic_barrier2=s_magic_barrier2/2/30
    s_concentration6=s_concentration6/2/30
    s_agility3=s_agility3/2/30
    s_shield3=s_shield3/2/30
    s_bless_shield6=s_bless_shield6/2/30
    s_advanced_block3=s_advanced_block3/2/30
    s_empower3=s_empower3/2/30
    s_wild_magic2=s_wild_magic2/2/30
    s_might3=s_might3/2/30
    s_guidance3=s_guidance3/2/30
    s_haste2=s_haste2/2/30
    s_focus3=s_focus3/2/30
    s_death_whisper3=s_death_whisper3/2/30
    s_berserker_spirit2=s_berserker_spirit2/2/30
    s_vampiric_rage4=s_vampiric_rage4/2/30
    s_devotioin_of_shine3=s_devotioin_of_shine3/2/30
    s_holy_weapon1=s_holy_weapon1/2/30
    s_water_breathing2=s_water_breathing2/2/30
    s_decrease_weight3=s_decrease_weight3/2/30
    s_prayer3=s_prayer3/4/30
    s_body_of_avatar6=s_body_of_avatar6/5/30
    s_chant_of_revenge3=s_chant_of_revenge3/2/30
    s_chant_of_evasion3=s_chant_of_evasion3/2/30
    s_burning_spirit3=s_burning_spirit3/2/30
    s_devotioin_of_soul3=s_devotioin_of_soul3/2/30
    s_chant_of_fury2=s_chant_of_fury2/2/30
    s_chant_of_rage3=s_chant_of_rage3/2/30
    s_chant_of_eagle3=s_chant_of_eagle3/2/30
    s_chant_of_vampire4=s_chant_of_vampire4/2/30
    s_pure_inspiration3=s_pure_inspiration3/2/30
    s_chant_of_predator3=s_chant_of_predator3/2/30
    s_mass_frenzy3=s_mass_frenzy3/2/30
    s_speed_of_paagrio2=s_speed_of_paagrio2/2/30
    s_shield_of_paagrio3=s_shield_of_paagrio3/2/30
    s_blessing_of_paagrio3=s_blessing_of_paagrio3/2/30
    s_tact_of_paagrio3=s_tact_of_paagrio3/2/30
    s_glory_of_paagrio3=s_glory_of_paagrio3/2/30
    s_wisdom_of_paagrio3=s_wisdom_of_paagrio3/2/30
    s_sight_of_paagrio3=s_sight_of_paagrio3/2/30
    s_rage_of_paagrio2=s_rage_of_paagrio2/2/30
    s_power_of_paagrio3=s_power_of_paagrio3/2/30
    s_speed_walk2=s_speed_walk2/4/30
    s_spirit_barrier3=s_spirit_barrier3/2/30
    s_deflect_arrow4=s_deflect_arrow4/4/30
    s_iron_will3=s_iron_will3/2/30
    s_reflect_damage3=s_reflect_damage3/4/30
    s_rapid_shot2=s_rapid_shot2/2/30
    s_blazing_skin3=s_blazing_skin3/4/30
    s_freezing_skin3=s_freezing_skin3/4/30
    s_servitor_magic_shield2=s_servitor_magic_shield2/2/30
    s_servitor_physical_shield3=s_servitor_physical_shield3/2/30
    s_servitor_haste2=s_servitor_haste2/2/30
    s_fast_servitor2=s_fast_servitor2/2/30
    s_bright_servitor3=s_bright_servitor3/2/30
    s_mighty_servitor3=s_mighty_servitor3/2/30
    s_soul_of_sagitarrius4=s_soul_of_sagitarrius4/3/30
    s_hawk_eye3=s_hawk_eye3/1/30
    s_snipe8=s_snipe8/3/30
    s_servitor_empower2=s_servitor_empower2/2/30
    s_thrill_fight2=s_thrill_fight2/2/30
    s_battle_roar6=s_battle_roar6/3/30
    s_boost_hp10=s_boost_hp10/4/30
    s_blunt_mastery202=s_blunt_mastery202/3/30
    s_greater_heal142=s_greater_heal142/4/30
    s_greater_battle_heal142=s_greater_battle_heal142/2/30
    s_elemental_heal212=s_elemental_heal212/4/30
    s_holy_blessing152=s_holy_blessing152/4/30
    s_servitor_heal182=s_servitor_heal182/2/30
    s_greater_group_heal142=s_greater_group_heal142/4/30
    s_vitalize122=s_vitalize122/2/30
    s_sacrifice112=s_sacrifice112/4/30
    s_corpse_life_drain16=s_corpse_life_drain16/2/30
    s_life_scavenge15=s_life_scavenge15/2/30
    s_inspire_life_force18=s_inspire_life_force18/4/30
    s_heart_of_paagrio13=s_heart_of_paagrio13/4/30
    s_honor_of_paagrio5=s_honor_of_paagrio5/4/30
    s_ritual_of_life6=s_ritual_of_life6/2/30
    s_recharge162=s_recharge162/2/30
    s_servitor_mana_charge172=s_servitor_mana_charge172/2/30
    s_curse_weakness19=s_curse_weakness19/4/30
    s_slow_down20=s_slow_down20/4/30
    s_surrender_to_fire17=s_surrender_to_fire17/3/30
    s_surrender_to_water14=s_surrender_to_water14/3/30
    s_surrender_to_wind14=s_surrender_to_wind14/3/30
    s_surrender_to_earth15=s_surrender_to_earth15/3/30
    s_surrender_to_poison17=s_surrender_to_poison17/3/30
    s_sleep172=s_sleep172/2/30
    s_silence14=s_silence14/3/30
    s_slow15=s_slow15/3/30
    s_curse_bleary15=s_curse_bleary15/3/30
    s_curse_gloom13=s_curse_gloom13/3/30
    s_curse_disease9=s_curse_disease9/3/30
    s_breeze19=s_breeze19/3/30
    s_dryad_root171=s_dryad_root171/2/30
    s_night_murmur20=s_night_murmur20/2/30
    s_anchor13=s_anchor13/3/30
    s_hold_undead12=s_hold_undead12/3/30
    s_zero_g16=s_zero_g16/3/30
    s_power_break17=s_power_break17/3/30
    s_hex15=s_hex15/3/30
    s_hamstring14=s_hamstring14/3/30
    s_sanctuary11=s_sanctuary11/4/30
    s_holy_aura9=s_holy_aura9/4/30
    s_sleeping_cloud5=s_sleeping_cloud5/2/30
    s_seal_of_winter14=s_seal_of_winter14/4/30
    s_seal_of_silence12=s_seal_of_silence12/3/30
    s_seal_of_scourge14=s_seal_of_scourge14/3/30
    s_engrave_seal_of_timid16=s_engrave_seal_of_timid16/3/30
    s_engrave_seal_of_lazy15=s_engrave_seal_of_lazy15/3/30
    s_bind_will17=s_bind_will17/3/30
    s_seal_of_suspension12=s_seal_of_suspension12/3/30
    s_howl14=s_howl14/3/30
    s_mass_slow14=s_mass_slow14/3/30
    s_poison_blade_dance3=s_poison_blade_dance3/2/30
    s_deadly_blow152=s_deadly_blow152/6/30
    s_backstab152=s_backstab152/6/30
    s_fatal_strike152=s_fatal_strike152/6/30
    s_double_shot162=s_double_shot162/6/30
    s_burst_shot132=s_burst_shot132/3/30
    s_fatal_counter16=s_fatal_counter16/6/30
    s_sonic_storm122=s_sonic_storm122/2/30
    s_sonic_buster152=s_sonic_buster152/2/30
    s_triple_sonic_slash102=s_triple_sonic_slash102/2/30
    s_force_buster142=s_force_buster142/2/30
    s_force_storm122=s_force_storm122/2/30
    s_hurricane_assault162=s_hurricane_assault162/2/30
    s_crush_of_doom16=s_crush_of_doom16/3/30
    s_spinning_slasher152=s_spinning_slasher152/2/30
    s_wrath10=s_wrath10/2/30
    s_triple_slash152=s_triple_slash152/2/30
    s_burning_fist152=s_burning_fist152/3/30
    s_double_sonic_slash132=s_double_sonic_slash132/2/30
    s_sonic_blaster152=s_sonic_blaster152/2/30
    s_force_strike192=s_force_strike192/2/30
    s_punch_of_doom3=s_punch_of_doom3/3/30
    s_hammer_crush152=s_hammer_crush152/6/30
    s_bleed_attack192=s_bleed_attack192/4/30
    s_stun_shot162=s_stun_shot162/4/30
    s_thunder_storm152=s_thunder_storm152/2/30
    s_soul_breaker152=s_soul_breaker152/4/30
    s_tribunal10=s_tribunal10/4/30
    s_judgment10=s_judgment10/4/30
    s_arrest10=s_arrest10/4/30
    s_shackle10=s_shackle10/4/30
    s_mass_shackling5=s_mass_shackling5/4/30
    s_banish_undead10=s_banish_undead10/4/30
    s_critical_blow10=s_critical_blow10/2/30
    s_mortal_strike3=s_mortal_strike3/4/30
    s_stealth3=s_stealth3/2/30
    s_sand_bomb10=s_sand_bomb10/4/30
    s_mass_fear5=s_mass_fear5/4/30
    s_mass_gloom5=s_mass_gloom5/4/30
    s_trance10=s_trance10/2/30
    s_erase10=s_erase10/1/30
    s_magical_backfire10=s_magical_backfire10/3/30
    s_mana_burn10=s_mana_burn10/2/30
    s_mana_storm5=s_mana_storm5/2/30
    s_turn_undead10=s_turn_undead10/4/30
    s_major_heal11=s_major_heal11/2/30
    s_major_group_heal5=s_major_group_heal5/4/30
    s_banish_seraph10=s_banish_seraph10/4/30
    s_shock_stomp5=s_shock_stomp5/1/30
    s_aura_flash5=s_aura_flash5/4/30
    s_summon_swoop_cannon=s_summon_swoop_cannon/1/30
    s_majesty3=s_majesty3/2/30
    s_light_armor_mastery_kamael_50=s_light_armor_mastery_kamael_50/2/30
    s_magic_immunity_55=s_magic_immunity_55/1/30
    s_ancient_sword_mastery_45=s_ancient_sword_mastery_45/2/30
    s_crossbow_mastery_45=s_crossbow_mastery_45/2/30
    s_rapier_mastery_45=s_rapier_mastery_45/2/30
    s_bow_mastery202=s_bow_mastery202/2/30
    s_dagger_mastery202=s_dagger_mastery202/3/30
    s_critical_chance4=s_critical_chance4/2/30
    s_advanced_magic_defence202=s_advanced_magic_defence202/1/30
    s_magic_resistance202=s_magic_resistance202/1/30
    s_shield_mastery4=s_shield_mastery4/2/30
    s_fast_attack3=s_fast_attack3/1/30
    s_quick_step2=s_quick_step2/1/30
    s_focus_mind6=s_focus_mind6/1/30
    s_critical_power7=s_critical_power7/2/30
    s_physical_evasion3=s_physical_evasion3/1/30
    s_fast_hp_recovery8=s_fast_hp_recovery8/1/30
    s_boost_mana8=s_boost_mana8/1/30
    s_polearm_mastery202=s_polearm_mastery202/2/30
    s_sword_blunt_mastery202=s_sword_blunt_mastery202/2/30
    s_light_armor_mastery_war202=s_light_armor_mastery_war202/2/30
    s_fast_spell_casting3=s_fast_spell_casting3/1/30
    s_fast_mana_recovery7=s_fast_mana_recovery7/1/30
    s_heavy_armor_mastery_war202=s_heavy_armor_mastery_war202/2/30
    s_heavy_armor_mastery_kni202=s_heavy_armor_mastery_kni202/2/30
    s_light_armor_mastery_rog202=s_light_armor_mastery_rog202/2/30
    s_robe_mastery_wiz182=s_robe_mastery_wiz182/3/30
    s_robe_mastery_cle182=s_robe_mastery_cle182/3/30
    s_light_armor_mastery_cle182=s_light_armor_mastery_cle182/2/30
    s_mass_surrender_to_fire5=s_mass_surrender_to_fire5/3/30
    s_mass_surrender_to_wind5=s_mass_surrender_to_wind5/3/30
    s_mass_surrender_to_water5=s_mass_surrender_to_water5/3/30
    s_poison_cloud6=s_poison_cloud6/3/30
    s_stun_attack53=s_stun_attack53/1/30
    s_rage2=s_rage2/2/30
    s_toughness=s_toughness/1/30
    s_fist_mastery202=s_fist_mastery202/3/30
    s_robe_mastery_sha202=s_robe_mastery_sha202/3/30
    s_light_armor_mastery_sha202=s_light_armor_mastery_sha202/2/30
    s_heavy_armor_mastery_sha192=s_heavy_armor_mastery_sha192/3/30
    s_soul_cry10=s_soul_cry10/1/30
    s_body_to_mind5=s_body_to_mind5/3/30
    s_dual_weapon_mastery152=s_dual_weapon_mastery152/2/30
    s_silent_move1=s_silent_move1/1/30
    s_light_armor_mastery_wlock142=s_light_armor_mastery_wlock142/2/30
    s_heavy_armor_mastery_pro142=s_heavy_armor_mastery_pro142/3/30
    s_repose13=s_repose13/2/30
    s_dark_smash_37=s_dark_smash_37/2/30
    s_sword_shield_2=s_sword_shield_2/2/30
    s_disarm_7=s_disarm_7/2/30
    s_death_mark_10=s_death_mark_10/2/30
    s_surrender_to_unholy_18=s_surrender_to_unholy_18/3/30
    s_fast_shot_2=s_fast_shot_2/2/30
    s_spread_wing_25=s_spread_wing_25/2/30
    s_storm_assault_28=s_storm_assault_28/2/30
    s_blade_rush_10=s_blade_rush_10/3/30
    s_slashing_blade_31=s_slashing_blade_31/2/30
    s_crushing_pain_16=s_crushing_pain_16/2/30
    s_contagion_12=s_contagion_12/2/30
    s_true_berserker_2=s_true_berserker_2/2/30
    s_violent_temper_12=s_violent_temper_12/2/30
    s_critical_sense_4=s_critical_sense_4/2/30
    s_triple_thrust_37=s_triple_thrust_37/2/30
    s_shining_edge_28=s_shining_edge_28/2/30
    s_checkmate_4=s_checkmate_4/2/30
    s_twin_shot_37=s_twin_shot_37/2/30
    s_rising_shot_31=s_rising_shot_31/2/30
    s_bleeding_shot_34=s_bleeding_shot_34/2/30
    s_deadly_roulette_5=s_deadly_roulette_5/2/30
    s_soul_of_pain_30=s_soul_of_pain_30/2/30
    s_dark_flame_26=s_dark_flame_26/2/30
    s_annihilation_circle_9=s_annihilation_circle_9/2/30
    s_protection_from_darkness_3=s_protection_from_darkness_3/2/30
    s_dark_weapon=s_dark_weapon/2/30
    s_abyssal_power=s_abyssal_power/1/30
    s_sharpshooting_8=s_sharpshooting_8/2/30
    s_decoy_6=s_decoy_6/2/30
    s_curse_fear14=s_curse_fear14/2/30
    s_mass_ressurection6=s_mass_ressurection6/2/30
    s_higher_mana_gain181=s_higher_mana_gain181/1/30
    s_restore_life4=s_restore_life4/2/30
    s_mana_regeneration4=s_mana_regeneration4/2/30
    s_transfer_pain5=s_transfer_pain5/1/30
    s_final_frenzy14=s_final_frenzy14/1/30
    s_final_fortress11=s_final_fortress11/2/30
    s_two-handed_weapon_mastery20=s_two-handed_weapon_mastery20/2/30
    s_benediction=s_benediction/2/30
    s_duelist_spirit2=s_duelist_spirit2/2/30
    s_soul_guard13=s_soul_guard13/1/30
    s_agile_movement2=s_agile_movement2/2/30
    s_summon_storm_cubic8=s_summon_storm_cubic8/1/30
    s_summon_vampiric_cubic7=s_summon_vampiric_cubic7/1/30
    s_summon_poltergeist_cubic8=s_summon_poltergeist_cubic8/1/30
    s_summon_life_cubic7=s_summon_life_cubic7/1/30
    s_summon_viper_cubic6=s_summon_viper_cubic6/1/30
    s_summon_binding_cubic9=s_summon_binding_cubic9/1/30
    s_summon_aqua_cubic9=s_summon_aqua_cubic9/1/30
    s_summon_spark_cubic9=s_summon_spark_cubic9/1/30
    s_summon_attractive_cubic4=s_summon_attractive_cubic4/1/30
    s_mass_summon_storm_cubic8=s_mass_summon_storm_cubic8/1/30
    s_mass_summon_aqua_cubic9=s_mass_summon_aqua_cubic9/1/30
    s_mass_summon_poltergeist_cubic8=s_mass_summon_poltergeist_cubic8/1/30
    s_blinding_blow10=s_blinding_blow10/2/30
    s_angelic_icon3=s_angelic_icon3/4/30
    s_clarity3=s_clarity3/4/30
    s_rapid_fire8=s_rapid_fire8/2/30
    s_dead_eye8=s_dead_eye8/1/30
    s_pain_of_sagittarius5=s_pain_of_sagittarius5/1/30
    s_zealot3=s_zealot3/2/30
    s_fell_swoop5=s_fell_swoop5/2/30
    s_war_frenzy3=s_war_frenzy3/2/30
    s_holy_resistance3=s_holy_resistance3/3/30
    s_unholy_resistance3=s_unholy_resistance3/3/30
    s_greater_might3=s_greater_might3/2/30
    s_greater_shield3=s_greater_shield3/2/30
    s_war_chant3=s_war_chant3/2/30
    s_earth_chant3=s_earth_chant3/2/30
    s_arcane_disruption10=s_arcane_disruption10/3/30
    s_enuma_elish=s_enuma_elish/2/15
    s_leopold=s_leopold/2/15
    s_prahnah=s_prahnah/2/15
    s_summon_feline_king=s_summon_feline_king/1/15
    s_summon_magnus_the_unicorn=s_summon_magnus_the_unicorn/1/15
    s_summon_spectral_lord=s_summon_spectral_lord/1/15
    s_song_of_elemental=s_song_of_elemental/2/15
    s_dance_of_alignment=s_dance_of_alignment/2/15
    s_fire_vortex_buster=s_fire_vortex_buster/3/15
    s_count_of_fire=s_count_of_fire/2/15
    s_ice_vortex_crusher=s_ice_vortex_crusher/3/15
    s_diamond_dust=s_diamond_dust/2/15
    s_throne_of_ice=s_throne_of_ice/2/15
    s_wind_vortex_slug=s_wind_vortex_slug/3/15
    s_empowering_echo=s_empowering_echo/2/15
    s_throne_of_wind=s_throne_of_wind/2/15
    s_divine_power=s_divine_power/2/15
    s_mana_gain=s_mana_gain/2/15
    s_chant_of_protection=s_chant_of_protection/2/15
    s_seal_of_blockade=s_seal_of_blockade/2/15
    s_wisdom1=s_wisdom1/3/15
    s_health1=s_health1/2/15
    s_fortitude1=s_fortitude1/2/15
    s_arcane_wisdom1=s_arcane_wisdom1/1/15
    s_arcane_power1=s_arcane_power1/1/15
    s_arcane_agility1=s_arcane_agility1/2/15
    s_parry_stance1=s_parry_stance1/1/15
    s_touch_of_life1=s_touch_of_life1/2/15
    s_touch_of_death1=s_touch_of_death1/2/15
    s_lethal_shot1=s_lethal_shot1/2/15
    s_lethal_blow1=s_lethal_blow1/2/15
    s_earthquake1=s_earthquake1/3/15
    s_song_of_renewal1=s_song_of_renewal1/2/15
    s_shield_bash1=s_shield_bash1/5/15
    s_shield_slam1=s_shield_slam1/3/15
    s_hamstring_shot1=s_hamstring_shot1/2/15
    s_focus_death1=s_focus_death1/2/15
    s_focus_chance1=s_focus_chance1/2/15
    s_focus_power1=s_focus_power1/2/15
    s_bluff1=s_bluff1/1/15
    s_eye_of_hunter1=s_eye_of_hunter1/2/15
    s_eye_of_slayer1=s_eye_of_slayer1/2/15
    s_shock_blast1=s_shock_blast1/3/15
    s_armor_crush1=s_armor_crush1/3/15
    s_song_of_meditation1=s_song_of_meditation1/2/15
    s_dance_of_siren1=s_dance_of_siren1/2/15
    s_dance_of_shadow1=s_dance_of_shadow1/2/15
    s_dance_of_medusa1=s_dance_of_medusa1/2/15
    s_curse_of_doom1=s_curse_of_doom1/2/15
    s_curse_of_abyss1=s_curse_of_abyss1/2/15
    s_arcane_chaos1=s_arcane_chaos1/2/15
    s_fire_vortex1=s_fire_vortex1/4/15
    s_ice_vortex1=s_ice_vortex1/4/15
    s_wind_vortex1=s_wind_vortex1/4/15
    s_light_vortex1=s_light_vortex1/4/15
    s_dark_vortex1=s_dark_vortex1/4/15
    s_warrior_servitor1=s_warrior_servitor1/2/15
    s_wizard_servitor1=s_wizard_servitor1/2/15
    s_assasin_servitor1=s_assasin_servitor1/2/15
    s_final_servitor1=s_final_servitor1/2/15
    s_elemental_protection1=s_elemental_protection1/2/15
    s_divine_protection1=s_divine_protection1/2/15
    s_arcane_protection1=s_arcane_protection1/2/15
    s_prophecy_of_water1=s_prophecy_of_water1/2/15
    s_prophecy_of_fire1=s_prophecy_of_fire1/2/15
    s_prophecy_of_wind1=s_prophecy_of_wind1/2/15
    s_block_shield1=s_block_shield1/2/15
    s_block_wind_walk1=s_block_wind_walk1/2/15
    s_mass_block_shield1=s_mass_block_shield1/2/15
    s_mass_block_wind_walk1=s_mass_block_wind_walk1/2/15
    s_chant_of_spirit1=s_chant_of_spirit1/2/15
    s_chant_of_victory1=s_chant_of_victory1/2/15
    s_eye_of_paagrio1=s_eye_of_paagrio1/2/15
    s_soul_of_paagrio1=s_soul_of_paagrio1/2/15
    s_seal_of_despair1=s_seal_of_despair1/2/15
    s_seal_of_disease1=s_seal_of_disease1/2/15
    s_vengence1=s_vengence1/2/15
    s_evade_shot1=s_evade_shot1/3/15
    s_inner_rythm=s_inner_rythm/1/15
    s_knighthood=s_knighthood/1/15
    s_master_of_combat=s_master_of_combat/2/15
    s_archery=s_archery/1/15
    s_assassination=s_assassination/2/15
    s_arcane_lore=s_arcane_lore/2/15
    s_necromancy=s_necromancy/2/15
    s_summon_lore=s_summon_lore/2/15
    s_divine_lore=s_divine_lore/1/15
    s_song_of_silence=s_song_of_silence/2/15
    s_brave_heart=s_brave_heart/1/15
    s_magnus_chant=s_magnus_chant/2/15
    s_victories_of_paagrio=s_victories_of_paagrio/2/15
    s_paagrio_emblem=s_paagrio_emblem/2/15
    s_paagrio_fist=s_paagrio_fist/2/15
    
    
    ; -----------------------------------------------------
    ; Требования к опыту на разных уровнях энчанта
    ;
    [exp]
    level_1=3060000
    level_2=3150000
    level_3=3250000
    level_4=3460000
    level_5=3570000
    level_6=3680000
    level_7=3900000
    level_8=4020000
    level_9=4140000
    level_10=5070000
    level_11=5230000
    level_12=5380000
    level_13=6590000
    level_14=6800000
    level_15=6990000
    level_16=8570000
    level_17=8840000
    level_18=9090000
    level_19=11140000
    level_20=11490000
    level_21=11820000
    level_22=14480000
    level_23=14940000
    level_24=15370000
    level_25=18820000
    level_26=19420000
    level_27=19980000
    level_28=24470000
    level_29=25250000
    level_30=25970000
    ; -----------------------------------------------------
    ; Требования к sp на разных уровнях энчанта
    ;
    [sp]
    level_1=306000
    level_2=315000
    level_3=325000
    level_4=346000
    level_5=357000
    level_6=368000
    level_7=390000
    level_8=402000
    level_9=414000
    level_10=507000
    level_11=523000
    level_12=538000
    level_13=659000
    level_14=680000
    level_15=699000
    level_16=857000
    level_17=884000
    level_18=909000
    level_19=1114000
    level_20=1149000
    level_21=1182000
    level_22=1448000
    level_23=1494000
    level_24=1537000
    level_25=1882000
    level_26=1942000
    level_27=1998000
    level_28=2447000
    level_29=2525000
    level_30=2597000
    ; ------------------------------------------------------
    ; Книги
    ;
    [books]
    normal=codex_of_giant
    safe=codex_of_giant_s
    reenchant=codex_of_giant_r
    untrain=codex_of_giant_u
    ; ------------------------------------------------------
    ; Шансы заточки на разных уровнях для 15 уровней энчанта.
    ;
    ; уровень_76/уровень_77/уровень_78/уровень_79/уровень_80/уровень_81/уровень_82/уровень_83/уровень_84/уровень_85
    ;
    [chance_15]
    level_1 =18/28/38/48/58/82/92/97/97/97
    level_2 = 1/ 1/ 1/46/56/80/90/95/95/95
    level_3 = 1/ 1/ 1/ 1/54/78/88/93/93/93
    level_4 = 1/ 1/ 1/ 1/42/52/76/86/91/91
    level_5 = 1/ 1/ 1/ 1/ 1/50/74/84/89/89
    level_6 = 1/ 1/ 1/ 1/ 1/48/72/82/87/87
    level_7 = 1/ 1/ 1/ 1/ 1/ 1/46/70/80/85
    level_8 = 1/ 1/ 1/ 1/ 1/ 1/44/68/78/83
    level_9 = 1/ 1/ 1/ 1/ 1/ 1/42/66/76/81
    level_10= 1/ 1/ 1/ 1/ 1/ 1/ 1/40/64/74
    level_11= 1/ 1/ 1/ 1/ 1/ 1/ 1/38/62/72
    level_12= 1/ 1/ 1/ 1/ 1/ 1/ 1/36/60/70
    level_13= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/34/58
    level_14= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/32/56
    level_15= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/30/54
    ; ------------------------------------------------------
    ; Шансы заточки на разных уровнях для 30 уровней энчанта.
    ;
    ; уровень_76/уровень_77/уровень_78/уровень_79/уровень_80/уровень_81/уровень_82/уровень_83/уровень_84/уровень_85
    ;
    [chance_30]
    level_1 =82/92/97/97/97/97/97/97/97/97
    level_2 =80/90/95/95/95/95/95/95/95/95
    level_3 =78/88/93/93/93/93/93/93/93/93
    level_4 =52/76/86/91/91/91/91/91/91/91
    level_5 =50/74/84/89/89/89/89/89/89/89
    level_6 =48/72/82/87/87/87/87/87/87/87
    level_7 = 1/46/70/80/85/85/85/85/85/85
    level_8 = 1/44/68/78/83/83/83/83/83/83
    level_9 = 1/42/66/76/81/81/81/81/81/81
    level_10= 1/ 1/40/64/74/79/79/79/79/79
    level_11= 1/ 1/38/62/72/77/77/77/77/77
    level_12= 1/ 1/36/60/70/75/75/75/75/75
    level_13= 1/ 1/ 1/34/58/68/73/73/73/73
    level_14= 1/ 1/ 1/32/56/66/71/71/71/71
    level_15= 1/ 1/ 1/30/54/64/69/69/69/69
    level_16= 1/ 1/ 1/ 1/28/52/62/67/67/67
    level_17= 1/ 1/ 1/ 1/26/50/60/65/65/65
    level_18= 1/ 1/ 1/ 1/24/48/58/63/63/63
    level_19= 1/ 1/ 1/ 1/ 1/22/46/56/61/61
    level_20= 1/ 1/ 1/ 1/ 1/20/44/54/59/59
    level_21= 1/ 1/ 1/ 1/ 1/18/42/52/57/57
    level_22= 1/ 1/ 1/ 1/ 1/ 1/16/40/50/55
    level_23= 1/ 1/ 1/ 1/ 1/ 1/14/38/48/53
    level_24= 1/ 1/ 1/ 1/ 1/ 1/12/36/46/51
    level_25= 1/ 1/ 1/ 1/ 1/ 1/ 1/10/34/44
    level_26= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 8/32/42
    level_27= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 6/30/40
    level_28= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/ 4/28
    level_29= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/ 2/26
    level_30= 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/ 1/24
    Не забудьте после создания файла пересохранить его в юникоде.Сам скрипт был заточен под сервер с экстом Вампира для ХБ, если нужно подкорректировать получаемые строки, то это легко исправляется.