Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 09.08.2006, 00:34   #1
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default [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 ;-)
rodier is offline  
Old 09.08.2006, 02:25   #2
zaferk
Архивный участник
 
Join Date: Apr 2006
Posts: 92
Default

Nice work, but the a bunch of those were already availabe with the C1 fstring.txt
zaferk is offline  
Old 09.08.2006, 02:40   #3
lamnh
Архивный участник
 
Join Date: Mar 2005
Posts: 185
Default

thank u rodier
lamnh is offline  
Old 09.08.2006, 06:55   #4
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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...
rodier is offline  
Old 09.08.2006, 08:48   #5
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default Re: [share] fstring

Quote:
Originally Posted by rodier

> 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 ;-)
Someday i downloaded this tool and it change rates in c4 retail npcdata with some mistakes.

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]
barabashka is offline  
Old 09.08.2006, 11:25   #6
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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
rodier is offline  
Old 09.08.2006, 12:06   #7
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

wow it works..
;;70 =;70 and
;;10}00 = ;100
rodier is offline  
Old 09.08.2006, 20:23   #8
2Rain
Архивный участник
 
Join Date: Aug 2005
Posts: 194
Default

From RUSSIA with love

http://ragezone.ru/forum/showthread.php?t=2567

The best and bugfree tool.
2Rain is offline  
Old 09.08.2006, 20:27   #9
Dim2e3
Архивный участник
 
Join Date: May 2006
Posts: 10
Default

2Rain, From Ukraine

https://postpacific.loc-online.com/f...pic.php?t=5653
Dim2e3 is offline  
Old 11.08.2006, 10:16   #10
2Rain
Архивный участник
 
Join Date: Aug 2005
Posts: 194
Default

Hehe... It same tools!
2Rain is offline  
Old 11.08.2006, 14:49   #11
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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]
Sauron is offline  
Old 12.08.2006, 11:18   #12
iamrend
Архивный участник
 
Join Date: May 2005
Posts: 315
Default

your Fstrings has a problem in links and bad translation. But thanks i will try to put a better translated soon
iamrend is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 15:44.