PDA

View Full Version : [SHARE] Regular Expressions to Convert C4 Skills to C1


Firedaemon
01.08.2006, 07:58
These are my regular expressions used in PHP to convert C4 Retail skilldata.txt into C1 compatible skills. I used L2ScriptExecutioner.exe by HF on skilldata.txt before running the regex. Search for it on PP if you dont have it.

Note that there are some skill substitutions in this which may or may not unbalance any existing balance of your server. This is not a leecher share, so you will still need to review everything to ensure it fits with your server.

The main point of this share is mostly for the regex which is a pain in the ass cause there are so many things that need to be changed.

Also, I was pretty lazy with the writing of this script so it is not optimized for performance. All regex works great though and will be usefull in your own tools.

[php:1:c548a2b132]
$skills = file_get_contents("npc/skilldata.txt");

$line = preg_split("/\r\n/", $skills);

for ($n=0; $n<count($line); $n++)
{
// {p_physical_armor_hit;{armor_light};2;diff}
preg_match_all("/\{p_physical_armor_hit;\{([a-zA-Z0-9_\-]{1,})\};([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_armor_hit;{".$matches[1][0]."};".$matches[2][0].";".$matches[3][0]."}", "{p_hit;{all};".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_area_damage;-40;per}
preg_match_all("/\{p_area_damage\;([0-9\-]{1,})\;([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_area_damage;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

// i_p_attack_over_hit
preg_match_all("/\{i_p_attack_over_hit\;([0-9]{1,})\;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_p_attack_over_hit;".$matches[1][0].";".$matches[2][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// i_fatal_blow
preg_match_all("/\{i_fatal_blow\;([0-9]{1,})\;([0-9]{1,})\;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_fatal_blow;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// p_reuse_delay
preg_match_all("/\{p_reuse_delay\;([0-9\-]{1,})\;([0-9\-]{1,})\;([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_reuse_delay;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_reuse_delay;".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// p_max_cp
preg_match_all("/(;*)\{p_max_cp;([0-9\-]{1,});([a-zA-Z]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{p_max_cp;".$matches[2][0].";".$matches[3][0]."}".$matches[4][0], "", $line[$n]);
unset($matches);
}

// p_hit_number
preg_match_all("/(;*)\{p_hit_number;([0-9\-]{1,});([a-zA-Z]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{p_hit_number;".$matches[2][0].";".$matches[3][0]."}".$matches[4][0], "", $line[$n]);
unset($matches);
}

// i_summon
preg_match_all("/\{i_summon;(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,});(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,})\}(.*)\}\t/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon;".$matches[1][0].";".$matches[2][0].";".$matches[3][0].";".$matches[4][0]."}".$matches[5][0]."}\t", "{i_summon;".$this->npc_lookup($this->npc_c4pch_lookup($matches[1][0])).";".$matches[2][0]."}".$matches[5][0]."}\t"."item_consume={[".$this->item_lookup($this->item_c4pch_lookup($matches[3][0]))."];".$matches[4][0]."}\t", $line[$n]);
unset($matches);
}

// i_summon_npc
preg_match_all("/\{\{i_summon_npc;(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,})\}\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_npc;".$matches[1][0].";".$matches[2][0]."}", "{i_summon;".$this->npc_lookup($this->npc_c4pch_lookup($matches[1][0])).";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// i_give_contribution
preg_match_all("/(;*)\{i_give_contribution;([0-9\-]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{i_give_contribution;".$matches[2][0]."}".$matches[4][0], "", $line[$n]);
unset($matches);

// operate_cond={{op_unlock}}
$line[$n] = str_replace("operate_cond={{op_unlock}}", "item_consume={[key_of_thief];1}", $line[$n]);
}

// {op_energy_max;1}
preg_match_all("/(;*)\{op_energy_max;([0-9])\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{op_energy_max;".$matches[2][0]."}".$matches[3][0], "", $line[$n]);
unset($matches);
}

// i_energy_attack
preg_match_all("/\{i_energy_attack;([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_energy_attack;".$matches[1][0].";".$matches[2][0]."}", "{i_energy_attack;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {p_create_common_item;1}
preg_match_all("/\{p_create_common_item;([0-9])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
if ($matches[1][0] > 4) $matches[1][0] = 4;

$line[$n] = str_replace("{p_create_common_item;".$matches[1][0]."}", "{p_create_item;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

if (strstr($line[$n], "i_dispel_by_category"))
{
for ($d=0; $d<=5; $d++)
{
// {i_dispel_by_category;slot_buff;25}
preg_match_all("/\{i_dispel_by_category;([a-zA-Z0-9_]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_dispel_by_category;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}
}

$line[$n] = str_replace("effect={", "effect={{i_dispel_all};", $line[$n]);
}

// {p_pvp_magical_skill_dmg_bonus;-50;per}
preg_match_all("/(;*)\{p_pvp_magical_skill_dmg_bonus;([0-9\-]{1,});([a-zA-Z]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{p_pvp_magical_skill_dmg_bonus;".$matches[2][0].";".$matches[3][0]."}".$matches[4][0], "", $line[$n]);
unset($matches);
}

// {p_pvp_physical_skill_dmg_bonus;-50;per}
preg_match_all("/(;*)\{p_pvp_physical_skill_dmg_bonus;([0-9\-]{1,});([a-zA-Z]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[2]) >= 1)
{
$line[$n] = str_replace($matches[1][0]."{p_pvp_physical_skill_dmg_bonus;".$matches[2][0].";".$matches[3][0]."}".$matches[4][0], "", $line[$n]);
unset($matches);
}

// {p_reuse_delay;0;200;per}
preg_match_all("/\{p_reuse_delay;([0-9]);([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_reuse_delay;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_reuse_delay;".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_physical_attack_by_hp1;32.9;diff}
preg_match_all("/\{p_physical_attack_by_hp(1|2);([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_attack_by_hp".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_physical_attack;{all};".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_physical_defence_by_hp1;32.9;diff}
preg_match_all("/\{p_physical_defence_by_hp(1|2);([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_defence_by_hp".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_physical_defence;{all};".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_critical_rate_by_hp1;32.9;diff}
preg_match_all("/\{p_critical_rate_by_hp(1|2);([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_critical_rate_by_hp".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_critical_rate;".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_2h_sword_bonus;4.5;diff;3;diff}
preg_match_all("/\{p_2h_sword_bonus;([0-9\.\-]{1,});([a-zA-Z]{1,});([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_2h_sword_bonus;".$matches[1][0].";".$matches[2][0].";".$matches[3][0].";".$matches[4][0]."}", "{p_physical_attack;{sword};".$matches[1][0].";".$matches[2][0]."};{p_hit;{sword};".$matches[3][0].";".$matches[4][0]."}", $line[$n]);
unset($matches);
}

// {p_2h_blunt_bonus;4.5;diff;3;diff}
preg_match_all("/\{p_2h_blunt_bonus;([0-9\.\-]{1,});([a-zA-Z]{1,});([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_2h_blunt_bonus;".$matches[1][0].";".$matches[2][0].";".$matches[3][0].";".$matches[4][0]."}", "{p_physical_attack;{blunt};".$matches[1][0].";".$matches[2][0]."};{p_hit;{blunt};".$matches[3][0].";".$matches[4][0]."}", $line[$n]);
unset($matches);
}

// {i_m_attack_over_hit;135}
preg_match_all("/\{i_m_attack_over_hit;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_m_attack_over_hit;".$matches[1][0]."}", "{i_m_attack;".$matches[1][0]."};{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {p_vampiric_attack;6}
preg_match_all("/\{p_vampiric_attack;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_vampiric_attack;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {p_hit_at_night;3;diff}
preg_match_all("/\{p_hit_at_night;([0-9]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_hit_at_night;".$matches[1][0].";".$matches[2][0]."}", "{p_hit;{all};".$matches[1][0].";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {p_area_damage;-40;per}
preg_match_all("/\{p_area_damage;([0-9]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_area_damage;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

// {p_heal_effect;-50;per}
preg_match_all("/\{p_heal_effect;([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
if ($matches[1][0] <= -1)
{ // negative recharging effect
$abnormal_lv = 100+round(-($matches[1][0]/2));

if ($abnormal_lv > 150) $abnormal_lv = 150;
}
else
{
$abnormal_lv = round(($matches[1][0]/2));

if ($abnormal_lv > 100) $abnormal_lv = 100;

}

$line[$n] = str_replace("{p_heal_effect;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
$line[$n] = str_replace("abnormal_lv=1", "abnormal_lv=".$abnormal_lv, $line[$n]);
unset($matches);
}

// {c_chameleon_rest;-2;5}
preg_match_all("/\{c_chameleon_rest;([0-9\-\.]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{c_chameleon_rest;".$matches[1][0].";".$matches[2][0]."}", "{c_mp;".$matches[1][0].";".$matches[2][0]."};{p_block_move};{p_attack_speed;{all};-100;per}", $line[$n]);
unset($matches);
}

// {p_avoid_agro;100}
preg_match_all("/\{p_avoid_agro;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_avoid_agro;".$matches[1][0]."}", "{p_avoid_agro}", $line[$n]);
unset($matches);
}

// {i_summon_paralyze_cubic;1}
preg_match_all("/\{i_summon_paralyze_cubic;([0-9])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_paralyze_cubic;".$matches[1][0]."}", "{i_summon_poison_cubic;".(6+$matches[1][0])."}", $line[$n]);
unset($matches);
}

// {i_summon_water_dot_cubic;1}
preg_match_all("/\{i_summon_water_dot_cubic;([0-9])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_water_dot_cubic;".$matches[1][0]."}", "{i_summon_dd_cubic;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {i_summon_shock_cubic;1}
preg_match_all("/\{i_summon_shock_cubic;([0-9])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_shock_cubic;".$matches[1][0]."}", "{i_summon_poison_cubic;".(15+$matches[1][0])."}", $line[$n]);
unset($matches);
}

// {i_transmit_m_power;H}
preg_match_all("/\{i_transmit_m_power;([a-zA-Z])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_transmit_m_power;".$matches[1][0]."}", "{i_focus_energy;3}", $line[$n]);
$line[$n] = str_replace("target_type=self", "target_type=other", $line[$n]);
unset($matches);
}

// {op_m_power_count;2}
preg_match_all("/\{op_m_power_count;([0-9])\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{op_m_power_count;".$matches[1][0]."}", "{energy_saved;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {i_physical_attack_hp_link;2908}
preg_match_all("/\{i_physical_attack_hp_link;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_physical_attack_hp_link;".$matches[1][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {p_physical_shield_defence_angle_all}
preg_match_all("/\{(p_physical_shield_defence_angle_all)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_shield_defence_angle_all}", "{p_shield_defence_rate;80}", $line[$n]);
unset($matches);
}

// {p_physical_polarm_target_single}
preg_match_all("/\{(p_physical_polarm_target_single)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_polarm_target_single}", "", $line[$n]);
unset($matches);
}

// {p_physical_shield_defence;-40;per}
preg_match_all("/\{p_physical_shield_defence;([0-9\-\.]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_physical_shield_defence;".$matches[1][0].";".$matches[2][0]."}", "{p_physical_defence;{shield};".$matches[1][0].";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {op_2h_weapon;{sword;blunt}}
preg_match_all("/\{op_2h_weapon;\{([a-zA-Z;\-]{1,})\}\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{op_2h_weapon;{".$matches[1][0]."}}", "{equip_weapon;{".$matches[1][0]."}}", $line[$n]);
unset($matches);
}

// {p_magic_critical_rate;200;per}
preg_match_all("/\{p_magic_critical_rate;([0-9]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$p_magical_attack = round(($matches[1][0]/10));

$line[$n] = str_replace("{p_magic_critical_rate;".$matches[1][0].";".$matches[2][0]."}", "{p_magical_attack;{all};".$p_magical_attack.";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {i_cp;-7;per}
preg_match_all("/\{i_cp;([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_cp;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
$cp_am = $matches[1][0];
$cp_ty = $matches[2][0];
unset($matches);

preg_match_all("/(skill_id=[0-9]{1,})|(level=[0-9]{1,})/i", $line[$n], $matches);

$this->SkillDataEx[] = "skill_begin\t".$matches[0][0]."\t".$matches[0][1]."\teffect={{i_cp;".$cp_am.";".$cp_ty."}}\tskill_end";
}

// i_restoration_random
preg_match_all("/\{i_restoration_random;(.+)\}\t/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_restoration_random;".$matches[1][0]."}\t", "}\t", $line[$n]);
unset($matches);
}

// i_restoration
preg_match_all("/\{i_restoration;(.+)\}\t/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_restoration;".$matches[1][0]."}\t", "}\t", $line[$n]);
unset($matches);
}

// i_fishing_cast
preg_match_all("/\{(i_fishing_cast)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_fishing_cast}", "", $line[$n]);
unset($matches);
}

// {i_fishing_pumping;0.66}
preg_match_all("/\{(i_fishing_pumping|i_fishing_reeling|p_fishing_m astery);([0-9\.]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

// {equip_weapon;{fishingrod}};{op_fishing_pumping}
preg_match_all("/\{(op_fishing_reeling|op_fishing_pumping)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{equip_weapon;{fishingrod}};{".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_open_dwarf_recipebook}
preg_match_all("/\{(i_open_dwarf_recipebook)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_open_dwarf_recipebook}", "", $line[$n]);
unset($matches);
}

// {i_open_common_recipebook}
preg_match_all("/\{(i_open_common_recipebook)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_open_common_recipebook}", "", $line[$n]);
unset($matches);
}

// {p_preserve_abnormal}
preg_match_all("/\{(p_preserve_abnormal)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_preserve_abnormal}", "", $line[$n]);
unset($matches);
}

// {i_install_camp_ex}
preg_match_all("/\{(i_install_camp_ex)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_install_camp_ex}", "", $line[$n]);
unset($matches);
}

// {p_reduce_drop_penalty}
preg_match_all("/\{(p_reduce_drop_penalty)\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_reduce_drop_penalty}", "", $line[$n]);
unset($matches);
}

$line[$n] = str_replace("{p_skill_critical;str}}", "{p_critical_rate;10;per}}\tbasic_property=str", $line[$n]);
$line[$n] = str_replace("{p_skill_critical;int}}", "{p_magical_attack;{all};10;per}}\tbasic_property=i nt", $line[$n]);

// {p_enlarge_storage;trade_sell;1}
preg_match_all("/\{p_enlarge_storage;([a-zA-Z_]{1,});([0-9]{1,})\}(;*)/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_enlarge_storage;".$matches[1][0].";".$matches[2][0]."}".$matches[3][0], "", $line[$n]);
unset($matches);
}

// {p_skill_critical_probability;1000;per}
preg_match_all("/\{p_skill_critical_probability;([0-9]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_skill_critical_probability;".$matches[1][0].";".$matches[2][0]."}", "{p_critical_damage;".$matches[1][0].";diff}", $line[$n]);
unset($matches);
}

// {p_magic_mp_cost;1;-30;per}
preg_match_all("/\{p_magic_mp_cost;([0-9]{1,});([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_magic_mp_cost;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_mp_regen;{all};".$matches[2][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {{p_reflect_skill;0;30};{p_reflect_skill;1;10}}
preg_match_all("/\{\{p_reflect_skill;([0-9]);([0-9]{1,})\};\{p_reflect_skill;([0-9]);([0-9]{1,})\}\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_reflect_skill;".$matches[1][0].";".$matches[2][0]."};{p_reflect_skill;".$matches[3][0].";".$matches[4][0]."}", "{p_damage_shield;".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {p_reflect_skill;0;30};{p_reflect_skill;1;10}
preg_match_all("/\{p_reflect_skill;([0-9]);([0-9]{1,})\};\{p_reflect_skill;([0-9]);([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_reflect_skill;".$matches[1][0].";".$matches[2][0]."};{p_reflect_skill;".$matches[3][0].";".$matches[4][0]."}", "", $line[$n]);
unset($matches);
}

// {p_resist_abnormal_by_category;slot_debuff;-30;per}
preg_match_all("/\{p_resist_abnormal_by_category;([a-zA-Z_]{1,});([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_resist_abnormal_by_category;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{p_defence_attribute;attr_etc;".$matches[2][0]."};{p_defence_attribute;attr_poison;".$matches[2][0]."};{p_defence_attribute;attr_hold;".$matches[2][0]."};{p_defence_attribute;attr_bleed;".$matches[2][0]."};{p_defence_attribute;attr_sleep;".$matches[2][0]."};{p_defence_attribute;attr_shock;".$matches[2][0]."};{p_defence_attribute;attr_derangement;".$matches[2][0]."};{p_defence_attribute;attr_unholy;".$matches[2][0]."};{p_defence_attribute;attr_paralyze;".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {p_resist_dispel_by_category;slot_buff;-60;per}
preg_match_all("/\{p_resist_dispel_by_category;([a-zA-Z_]{1,});([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_resist_dispel_by_category;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "", $line[$n]);
unset($matches);
}

// {p_max_cp;-90;per}
preg_match_all("/\{p_max_cp;([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_max_cp;".$matches[1][0].";".$matches[2][0]."}", "{p_max_hp;".round(($matches[1][0]/2)).";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {i_death;2}
preg_match_all("/\{i_death;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_death;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_target_cancel}
preg_match_all("/(\{i_target_cancel\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_target_cancel}", "", $line[$n]);
unset($matches);
}

// {i_rebalance_hp}
preg_match_all("/(\{i_rebalance_hp\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_rebalance_hp}", "{i_hp_per_max;10}", $line[$n]);
unset($matches);
}

// {p_block_skill_physical}
preg_match_all("/(\{p_block_skill_physical\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_block_skill_physical}", "{p_block_spell}", $line[$n]);
unset($matches);
}

// {i_p_attack;1973;15}
preg_match_all("/\{i_p_attack;([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_p_attack;".$matches[1][0].";".$matches[2][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {i_p_attack;1973;15}
preg_match_all("/\{i_p_attack;([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_p_attack;".$matches[1][0].";".$matches[2][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

// {i_backstab;5479;300;0}
preg_match_all("/\{i_backstab;([0-9]{1,});([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_backstab;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{i_backstab;".$matches[1][0].";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_fatal_blow_rate;60;per}
preg_match_all("/\{p_fatal_blow_rate;([0-9]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_fatal_blow_rate;".$matches[1][0].";".$matches[2][0]."}", "{p_critical_damage;".round(($matches[1][0]/2)).";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

$line[$n] = str_replace("{{p_critical_rate_position_bonus;front;-30;per};{p_critical_rate_position_bonus;side;30;pe r};{p_critical_rate_position_bonus;back;60;per}}", "{{p_critical_rate;10;per}}", $line[$n]);
$line[$n] = str_replace("{i_align_direction}", "", $line[$n]);

// {p_critical_damage_position;front;-30;per}
preg_match_all("/\{p_critical_damage_position;([a-zA-Z]{1,});([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_critical_damage_position;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "", $line[$n]);
unset($matches);
}

// {p_critical_rate_position_bonus;front;-30;per}
preg_match_all("/\{p_critical_rate_position_bonus;([a-zA-Z]{1,});([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_critical_rate_position_bonus;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "", $line[$n]);
unset($matches);
}

//{p_block_getdamage;block_hp}
preg_match_all("/(\{p_block_getdamage;block_hp\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_block_getdamage;block_hp}", "{p_block_getdamage}", $line[$n]);
unset($matches);
}

//{p_block_getdamage;block_mp}
preg_match_all("/(\{p_block_getdamage;block_mp\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_block_getdamage;block_mp}", "{p_block_move}", $line[$n]);
unset($matches);
}

//{p_block_buff}
preg_match_all("/(\{p_block_buff\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_block_buff}", "", $line[$n]);
unset($matches);
}

//{p_block_debuff}
preg_match_all("/(\{p_block_debuff\})/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_block_debuff}", "", $line[$n]);
unset($matches);
}

if (strstr($line[$n], "i_dispel_by_slot_probability"))
{
for ($d=0; $d<=5; $d++)
{
// {i_dispel_by_slot_probability;ma_up;40}
preg_match_all("/\{i_dispel_by_slot_probability;([a-zA-Z0-9_]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_dispel_by_slot_probability;".$matches[1][0].";".$matches[2][0]."}", "{i_dispel_by_slot;".$matches[1][0].";".$matches[2][0]."}", $line[$n]);
unset($matches);
}
}
}

// {op_not_territory;
preg_match_all("/\{\{op_not_territory;(.*)\}\}\}\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{{op_not_territory;".$matches[1][0]."}}}}", "{}", $line[$n]);
unset($matches);
}

// {i_change_face;0}
preg_match_all("/\{i_change_face;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_change_face;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_change_hair_color;0}
preg_match_all("/\{i_change_hair_color;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_change_hair_color;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_change_hair_style;0}
preg_match_all("/\{i_change_hair_style;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_change_hair_style;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_sp;500;diff}
preg_match_all("/\{i_sp;([0-9\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_sp;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

// {i_fishing_shot;100}
preg_match_all("/\{i_fishing_shot;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_fishing_shot;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_summon_soul_shot;100}
preg_match_all("/\{i_summon_soul_shot;([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_soul_shot;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {i_summon_spirit_shot;100;40;1.0}
preg_match_all("/\{i_summon_spirit_shot;([0-9\-]{1,});([0-9]{1,});([0-9\.]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon_spirit_shot;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "", $line[$n]);
unset($matches);
}

// {i_teleport;83378;147999;-3400}
preg_match_all("/\{i_teleport;([0-9\-]{1,});([0-9\-]{1,});([0-9\-]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_teleport;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "", $line[$n]);
unset($matches);
}

// {op_alignment;lawful}
preg_match_all("/\{op_alignment;([a-zA-Z_]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{op_alignment;".$matches[1][0]."}", "", $line[$n]);
unset($matches);
}

// {p_avoid_rate_by_hp2;3.84;diff}
preg_match_all("/\{p_avoid_rate_by_hp2;([0-9\-\.]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_avoid_rate_by_hp2;".$matches[1][0].";".$matches[2][0]."}", "{p_avoid;{all};".($matches[1][0]*2).";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {p_avoid_rate_by_hp2;3.84;diff}
preg_match_all("/\{p_attack_speed_by_hp2;([0-9\-\.]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_attack_speed_by_hp2;".$matches[1][0].";".$matches[2][0]."}", "{p_attack_speed;{all};".($matches[1][0]*2).";".$matches[2][0]."}", $line[$n]);
unset($matches);
}

// {p_pvp_physical_attack_dmg_bonus;5;per}
preg_match_all("/\{p_pvp_physical_attack_dmg_bonus;([0-9\-\.]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_pvp_physical_attack_dmg_bonus;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

// {p_pvp_magical_skill_dmg_bonus;5;per}
preg_match_all("/\{p_pvp_magical_skill_dmg_bonus;([0-9\-\.]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_pvp_magical_skill_dmg_bonus;".$matches[1][0].";".$matches[2][0]."}", "", $line[$n]);
unset($matches);
}

$line[$n] = preg_replace("/\{op_m_power_type_2;[a-zA-Z];[a-zA-Z]\}/i", "{energy_saved;3}", $line[$n]);
$line[$n] = str_replace("{i_remove_m_power}", "", $line[$n]);

// handle abnormal types
$line[$n] = str_replace("=shield_defence_up", "=none", $line[$n]);
$line[$n] = str_replace("=magic_critical_up", "=none", $line[$n]);
$line[$n] = str_replace("=snipe", "=none", $line[$n]);
$line[$n] = str_replace("=song_of_storm_guard", "=none", $line[$n]);
$line[$n] = str_replace("=song_of_vengeance", "=none", $line[$n]);
$line[$n] = str_replace("=public_slot", "=none", $line[$n]);
$line[$n] = str_replace("=attr_boss", "=attr_etc", $line[$n]);
$line[$n] = str_replace("=resist_spiritless", "=none", $line[$n]);
$line[$n] = str_replace("=heal_effect_down", "=remove_from_hatelist", $line[$n]);
$line[$n] = str_replace("=heal_effect_up", "=remove_from_hatelist", $line[$n]);
$line[$n] = str_replace("=vampiric_attack", "=weapon_durability_down", $line[$n]);
$line[$n] = str_replace("=duelist_spirit", "=attack_speed_up_bow", $line[$n]);
$line[$n] = str_replace("=song_of_flame_guard", "=dance_of_fire", $line[$n]);
$line[$n] = str_replace("=song_of_vitality", "=none", $line[$n]);
$line[$n] = str_replace("=dance_of_vampire", "=weapon_durability_down", $line[$n]);
$line[$n] = str_replace("=song_of_vampire", "=weapon_durability_down", $line[$n]);
$line[$n] = str_replace("=dance_of_vengeance", "=none", $line[$n]);
$line[$n] = str_replace("=dance_of_aqua_guard", "=none", $line[$n]);
$line[$n] = str_replace("=dance_of_earth_guard", "=none", $line[$n]);
$line[$n] = str_replace("=dance_of_protection", "=none", $line[$n]);

// ================================================== ============
// damage nerfs
// ================================================== ============
// {p_magical_attack;{all};10;per}
preg_match_all("/\{p_magical_attack;\{([a-zA-Z_;]{1,})\};([0-9\.\-]{1,});([a-zA-Z]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_magical_attack;{".$matches[1][0]."};".$matches[2][0].";".$matches[3][0]."}", "{p_magical_attack;{".$matches[1][0]."};".($matches[2][0]/2).";".$matches[3][0]."}", $line[$n]);
unset($matches);
}

// {p_critical_rate;10;per}
preg_match_all("/\{p_critical_rate;([0-9\.\-]{1,});per\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{p_critical_rate;".$matches[1][0].";per}", "{p_critical_rate;".($matches[1][0]/4).";per}", $line[$n]);
unset($matches);
}

// {i_p_attack_over_hit;268}
preg_match_all("/\{i_p_attack_over_hit;([0-9\.\-]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_p_attack_over_hit;".$matches[1][0]."}", "{i_p_attack_over_hit;".round(($matches[1][0]*2))."}", $line[$n]);
unset($matches);
}

$line[$n] = preg_replace("/(;{2,})/", ";", $line[$n]);
$line[$n] = str_replace("}{", "};{", $line[$n]);
$line[$n] = str_replace("{;", "{", $line[$n]);
$line[$n] = str_replace(";}", "}", $line[$n]);
$line[$n] = str_replace("{;}", "{}", $line[$n]);

print $line[$n]."\r\n";
}
}
[/php:1:c548a2b132]

HF
01.08.2006, 08:04
Excellent work. I did not begin to make it while. Too big work. It is a pity to time.
But now it is possible to use it on files which are made by my utility. And to receive excellent configs.

HF
01.08.2006, 08:38
fix1:

$line[$n] = str_replace("{i_fatal_blow;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{i_p_attack_over_hit;".$matches[1][0]."}", $line[$n]);
unset($matches);
}

this effect exist in c1

i_fatal_blow
-------- [s_deadly_blow12] ------- {i_fatal_blow;1107;200}


fix2:
all summons no required to fix, because npcnames must be same as in npcdata. Copy 1:1 without item consume param.

C4:
effect = {{i_summon;[cat_the_cat_a];70;[crystal_d];0}}
C1:
effect = {{i_summon;[cat_the_cat_a];70}}

fix3:
$line[$n] = str_replace($matches[1][0]."{op_energy_max;".$matches[2][0]."}".$matches[3][0], "", $line[$n]);
need make same as

$line[$n] = str_replace("operate_cond={{op_unlock}}", "item_consume={[key_of_thief];1}", $line[$n]);

C4 "op_energy_max" = C1 "operate_cond = {energy_saved;2}}"

fix4:may do this
"p_pvp_physical_skill_dmg_bonus" can change to "p_critical_damage"
"p_pvp_physical_attack_dmg_bonus" can change to "p_critical_damage"

fix5:
p_2h_sword_bonus same "{{p_physical_attack;{dualfist};40;diff};};{p_hit;{ dualfist};2;diff}}
p_2h_blunt_bonus same 'dualfist' to 'blunt'


fix6:
effect "i_install_camp" exist in C1
-------- [s_building_headquarter] --------- {{i_install_camp}} operate_cond = {{build_camp}}

fix7:
This
str_replace("{p_max_cp;".$matches[1][0].";".$matches[2][0]."}", "{p_max_hp;".
bug. If you mean CP as HP, why you dont fix another skills with CP? p_max_cp example.

fix8:
i_death ? maybe make "i_hp;-10000;diff"? ;)

fix9:
{i_target_cancel} can change to {{i_dispel_all}}

HF
01.08.2006, 09:16
oh.. it work?
vampiric_attack", "=weapon_durability_down

what is id for this abnormal?
"remove_from_hatelist"

Firedaemon
01.08.2006, 09:50
Fix 1 - on my server I do not use i_fatal_blow because it is overpowered. I use the p atk overhit instead.

Fix 2 - I have fully synced npc names which closely match the names in npcname-e.dat so I had to do a lookup. All my npc data is in mysql so those functions which are referenced perform lookups for me. Obviously everyone else will need to disregard that line :P

Fix 3 - From my understanding of op_energy_max, this setting is simply to enforce that the skill will not increase the energy level beyond X level and not checking to make sure the caster has X level. Thats why it was nulled... was I wrong?

Fix 4 - Yes you can definatley add some extra effect on there. For my server, I just removed it because I did not want it to affect PvE.

Fix 5 - not sure I understand you. I already made the substitution.

Fix 6 - Yes, but if you notice, in C4 it is i_install_camp_ex which I made the replacement for i_install_camp whcih is what is used in C1

Fix 7 - I have special files on my server. Increasing max HP increases max CP as well.

Fix 8 - Perhaps, I was not sure on the exact effects of i_death so I thought I would leave it until I explored more.

Fix 9 - i_target_cancel is an effect which de-targets the targets target. Substiuting for cancel would be a bit over powered I think.

vampiric_attack on my server works by setting weapon_durability_down. This is purely a feature of L2Extend. Same with the remove_from_hatelist

HF
01.08.2006, 10:04
...interested information

You continue work with C1?

Firedaemon
01.08.2006, 10:20
Yes, I am continuing my work with C1 and do not foresee myself moving away from it. However, I will also be launching a 64 bit server in the near future, but more than likely my C1 server will remain up and will probably be custom with things which are not available on official such as faction reputations and other things I am building.

Firedaemon
01.08.2006, 10:42
I forgot about backstab.

[php:1:6314cbf69b]
// {i_backstab;5479;300;0}
preg_match_all("/\{i_backstab;([0-9]{1,});([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_backstab;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{i_backstab;".$matches[1][0].";".$matches[2][0]."}", $line[$n]);
unset($matches);
}
[/php:1:6314cbf69b]

Firedaemon
01.08.2006, 11:23
I found a few more things that needed to be changed too. Nothing major but it will cause the skilldata to not be parsed by l2server. I will leave this for you to review and find for yourself. You may PM me and ask me though if you are a frequent sharer here on PP.

Also my regex for summons is semi working. It works for some, but not others... the corrected is below.

[php:1:10b77a5678]
// i_summon
preg_match_all("/\{i_summon;(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,});(\[[a-zA-Z0-9\-\_\']{1,}\]);([0-9]{1,})\}(.*)\}\t/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_summon;".$matches[1][0].";".$matches[2][0].";".$matches[3][0].";".$matches[4][0]."}".$matches[5][0]."}\t", "{i_summon;".$this->npc_lookup($this->npc_c4pch_lookup($matches[1][0])).";".$matches[2][0]."}".$matches[5][0]."}\t"."item_consume={[".$this->item_lookup($this->item_c4pch_lookup($matches[3][0]))."];".$matches[4][0]."}\t", $line[$n]);
unset($matches);
}
[/php:1:10b77a5678]

HF
01.08.2006, 11:53
...
[php:1:5022071e26]
// i_summon
...
[/php:1:5022071e26]i recommended you change all names in your configs to c4retail standarts, as do it myself.
It help you in future and you no need uses additional fuction for finding names you npc or item.

Firedaemon
01.08.2006, 12:01
haha, ncsoft doesnt have any standards. Mis-spellings as well as bad translated names for many items exist. Or at least they are very different from what appears in the english client files. I syncronised everything to the client files long ago.

I already have my functions written... and they are reusable as most of my code is done using classes (OOP) so I dont need to re-create anything. I have a whole system :)

HF
01.08.2006, 12:15
haha, ncsoft doesnt have any standards. Mis-spellings as well as bad translated names for many items exist. Or at least they are very different from what appears in the english client files. I syncronised everything to the client files long ago.

I already have my functions written... and they are reusable as most of my code is done using classes (OOP) so I dont need to re-create anything. I have a whole system :)I am glad for you. :)
Though I had in view of only name of three big sections: npc, skill and items. If you have npc names same as in c4retail - no requied make find name in your configs.