Thanks Xdaemon Your Code work
Thanks a lot!. My life is made easyier now ^_^
EDIT: for var %file = characters.ini my characters.ini file is in a folder called bot_stats, I tried var %file = Bot_Stats\characters.ini and $findfile(Bot_Stats,Characters.ini) none worked.
any ideas?
EDIT: Lol sorry I fixed that, minor problem. Thanks again. This is how I have it.
copychar {
var %file = Bot_Stats\Characters\ $+ $2 $+ .stats
if ( $ini(%file,$$1) ) {
var %w = 1
while ( $ini(%file,$1,%w) ) {
writeini Members\ $+ $+($1,.ini)$nick stats $v1 $readini(%file,$1,$v1)
inc %w
}
echo -a ** Done copying topic $+(",$1,") to $+($1,.ini)
}
else echo -a ** $$1 does not exist
}
and in my !register code i got
/copychar $2
and its keeps on saying ** DiGiTaL does not exist