![]() |
[share] fstring
This is translated fstring from my friend. Its not 100% accurate.. when I compare to us retail string its 100kb longer because many words are changed.. but better than nothing ;-)
http://rapidshare.de/files/28706675/fstring.rar.html With this many things start working. for example lottery will have button, pet quests will have replies... many NPCs will have english replies in quest... 2nd subclass..3rd subclass.. etc :))) ps > Im searching for npcdata rate changer for C4 retail npcdata.. I need: - change adena rate - change spoil % chance - change goods rate @ spoil (min/max at spoil) - change drop % chance simply to supply players on small popped server.. if anyone have antibot C4 retail system... I will be glad too ;-) |
Nice work, but the a bunch of those were already availabe with the C1 fstring.txt :D
|
thank u rodier
|
zaferk > yes.. I think about too.. but not exactly.
1st problem when repasting from C1 -> many numbers was different.. - i mean same text / different numbers 2nd problem -> in c1 there was for example 0001 0002 0003 0004aa 0005aa in c4 is 0001 0002 0004aa 0005aa .. so you can't simply copy/paste whole block from C1 but must check every line... |
Re: [share] fstring
Quote:
Description: -Convert your npcdata to ANSI. -Run programm -Change rates -Open new npcdata -Find this symbols ";;" without " As far as i remember, incorrect lines contain ";;70}}}". Need replace them to ";70}}" -Then search ";;" again and it will be last mistake. Change it to correct and npcdata with rates will be created perfectly. This procedure takes more 1 min. [rus] Называеться, расказал на бананах:) [/rus] |
if this is npcratechanger by lich.. I have it and I know.. its looks like OK .. he make it all.. fine.. but server want parse it...
now I know why ;-D thanks a lot |
wow it works..
;;70 =;70 and ;;10}00 = ;100 |
|
|
Hehe... It same tools! :D
|
well i coded this, change exp sp spoil rate and quantity, drop rate and quantity and adena quantity. could be bugged i dont know.
read npcdata in ansi and output it in ansi. enjoy [php:1:15106188ca] <?php ## coded by Sauron ## $exp = 15; $sp = 15; // drop rate modifiers $p_drop = 15; $p_spoil = 15; // drop quantity modifiers $q_drop = 15; $q_spoli = 15; $adena = 15; $oh = fopen("npcdata.txt", 'r'); $gh = fopen("npcdata_moded.txt", 'w'); $tab = " "; // <<== that should be a tab, replace it if the site converts it to space while(!feof($oh)) { $row = trim(fgets($oh)); $row = explode($tab,$row); $output = ""; for($i=0; $i<count($row);$i++){ if(strripos($row[$i], "e_exp_rate=")){ $len = strlen("acquire_exp_rate="); $value = substr($row[$i], $len, strlen($row[$i]) - $len); $output .= "acquire_exp_rate=".floatval($value*$exp).$tab ; } else if(strripos($row[$i], "e_sp=")){ $len = strlen("acquire_sp="); $value = substr($row[$i], $len, strlen($row[$i]) - $len); $output .= "acquire_sp=".floatval($value*$sp).$tab; } else if(strripos($row[$i], "l_make_list=") || strripos($row[$i], "l_make_multi_list=") || strripos($row[$i], "e_make_list=")){ if(strripos($row[$i], "l_make_list=")){ $len = strlen("additional_make_list="); $output .= "additional_make_list="; $drop = $p_drop; $quant = $q_drop; } elseif(strripos($row[$i], "l_make_multi_list=")){ $len = strlen("additional_make_multi_list="); $output .= "additional_make_multi_list="; $drop = $p_drop; $quant = $q_drop; } elseif(strripos($row[$i], "e_make_list=")){ $len = strlen("corpse_make_list="); $output .= "corpse_make_list="; $drop = $p_spoil; $quant = $q_spoli; } $pos = 0; $list = ""; $item = ""; $drop_a = explode(";", substr($row[$i],$len, strlen($row[$i]) - $len)); for($e=0; $e < count($drop_a); $e++){ if($drop_a[$e] == "{}") { $list = "{}}"; break; } if($drop_a[$e][0] != "{"){ $initial = strlen($drop_a[$e]); $line = str_replace("}", "", $drop_a[$e]); $final = strlen($line); $pos = $initial - $final; if($pos != 0){ if(($return = floatval($line*$drop)) > 100) $return = 100; $list .= $return.str_repeat("}",$pos).";"; } else if($item == "adena" && $max < 2){ $list .= ($line * $adena).";"; $max++; } else { $item = ""; $list .= ($line*$quant).";"; } } else { $item = str_replace(array("{","[","]"),"",$drop_a[$e]); $list .= $drop_a[$e].";"; $max = 0; } } if(strpos($row[$i], "}")) $list = substr($list, 0, (strlen($list)-1)); $output .= $list.$tab; } else $output .= $row[$i].$tab; } fputs($gh,$output."\r\n"); } fclose($gh); fclose($oh); ?>[/php:1:15106188ca] |
your Fstrings has a problem in links and bad translation. But thanks i will try to put a better translated soon
|
| All times are GMT. The time now is 21:51. |