From bfb15e68b763800587fa57727fc4baaa0e5e2800 Mon Sep 17 00:00:00 2001 From: momacabu Date: Fri, 9 Nov 2012 00:26:36 +0000 Subject: - Removed backup.pl (for TXT servers) and vs9-to-vs8.php (outdated versions); - Merged @killmonster2 with @killmonster tid:73632; - Fixed bugreport:6764, auction code was misplaced; - Follow up to r16753 (bugreport:6523), fixed bugreport:6673, using Gravitational Field with Safety Wall would keep the character immobilized. Blame myself, thankyou Lunar for the fix; - Fixed bugreport:6514, @slaveclone wouldn't be targeted by monster. Thanks to zippy; - Fixed bugreport:6837, some code was duplicated; - Fixed bugreport:6768, removed some leftovers from TXT removal; - Fixed bugreport:6868, Unequipping a weapon with Incantation Samurai card will not kill you if you have less than 999 hp and are on a non-pvp map; - Fixed wrong bit field on ai field in mob_data structure. Credits to Ind. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16881 54d463be-8e91-2dee-dedb-b68131a5f0ec --- tools/backup.pl | 100 --------------------------------------------------- tools/vs9-to-vs8.php | 46 ------------------------ 2 files changed, 146 deletions(-) delete mode 100755 tools/backup.pl delete mode 100644 tools/vs9-to-vs8.php (limited to 'tools') diff --git a/tools/backup.pl b/tools/backup.pl deleted file mode 100755 index 939c7eee7..000000000 --- a/tools/backup.pl +++ /dev/null @@ -1,100 +0,0 @@ -#!/usr/bin/perl - -########################################################################## -# Athena用データバックアップツール -# -#  Athenaの各種データファイル*.txtをバックアップするツール -# -#------------------------------------------------------------------------- -# 設定方法 -#  実行する時のカレントフォルダからのデータへのパス、ファイルのリストを -#  正しく設定します。バックアップ先のフォルダは自動作成されないので、 -#  自分で作成しておく必要があります。 -#  フォルダの最後の「/」は省略できません。 -# -#  フォルダは引数でも指定できます。例>./backup ../save/ ./backup_data/ -#  フォルダの最後の「/」は省略できません。 -# -#  実行するとバックアップ先のフォルダへ、ファイル名に現在の日付と時刻を -#  つけてファイルをコピーします。 -# -# * toolフォルダ内にbackup_dataフォルダを作成し、 -#   athena.shの中に「./tool/backup ./save/ ./tool/backup_data/」 -# という行を追加すると、athenaを起動するたびにバックアップが取れます -# -# 復元するときは引数に「-r 日付と時刻」を指定します。 -#  またその後ろにフォルダを指定することも出来ます -#  例1> ./backup -r 200309191607 -#  例2> ./backup -r 200309191607 ../save ./backup_data/ -#  この例では2003/09/19の16:07分にバックアップしたデータを復元しています -# -#  復元するとき、Athenaディレクトリにあるデータは *.bak に名前を変更して -#  残しているので、いらない場合は rm *.bak などで消してください。 -# -########################################################################## - -$sdir="../save/"; #バックアップ元(Athenaのディレクトリ/save/) -$tdir="./backup_data/"; #バックアップ先 - -@files=( #ファイルのリスト - "account","athena","storage","party","guild","castle","pet" -); - - -#-------------------------------設定ここまで----------------------------- - - - - - - - - - - - -if($ARGV[0]=~/^\-r$/i || $ARGV[0]=~/\-\-(recover|restore)/i){ - #復元処理 - - $file=$ARGV[1]; - $sdir=$ARGV[2]||$sdir; - $tdir=$ARGV[3]||$tdir; - &restorecopy($_) foreach @files; - exit(0); -} - -#バックアップ処理 -$sdir=$ARGV[0]||$sdir; -$tdir=$ARGV[1]||$tdir; - -unless( -d $tdir ){ - print "$0: \"$tdir\" : No such directory\n"; - exit(1); -} - -(undef,$min,$hour,$day,$month,$year)=localtime; - -$file=sprintf("%04d%02d%02d%02d%02d", - $year+1900, $month+1, $day, $hour, $min ); - -&backupcopy($_) foreach @files; -exit(0); - -sub backupcopy { - my($name)= @_; - system("cp $sdir$name.txt $tdir$name$file.txt"); -} - -sub restorecopy { - my($name)= @_; - unless( -f "$sdir$name.txt" ){ - printf("$0: \"$sdir$name.txt\" not found!\n"); - return 0; - } - unless( -f "$tdir$name$file.txt" ){ - printf("$0: \"$tdir$name$file.txt\" not found!\n"); - return 0; - } - rename "$sdir$name.txt","$sdir$name.bak"; - system("cp $tdir$name$file.txt $sdir$name.txt"); -} diff --git a/tools/vs9-to-vs8.php b/tools/vs9-to-vs8.php deleted file mode 100644 index 9cc05fb76..000000000 --- a/tools/vs9-to-vs8.php +++ /dev/null @@ -1,46 +0,0 @@ - - -- cgit v1.2.3-70-g09d2