Your script works how I described, but not entirely.
It works only if you first do the /writeini which is a problem for me, because there are already many many lines of names and ip in a text file, and I would have to convert them all to the format you're using. It also does not auto-increment the line # and I'd have to remember what the next line # is. This would be a tedious process. I'd rather keep the format I already have.
I know there must be some way to do this, as I've seen similar things in other channels but the people were not very willing to help.
Sorry, I do not know much about mirc scripting so I am a bit clueless as to what to do.
thats why i said you can make an alias for add example... to have an alias incremiment the line and all you do is type
/ipadd nickname iphere
alias ipadd {
%ipadd.nick = $1
%ipadd.inicalc = $ini(test.ini,%ipadd.nick,0)
if (%ipadd.inicalc = 0) { writeini test.ini %ipadd.nick 1 $2- }
elseif (%ipadd.inicalc > 0) { %ipadd.inicalc = $calc( 1 + $ini(test.ini,%ipadd.nick,0))
writeini test.ini %ipadd.nick %ipadd.inicalc $2-
}
again this can be put in a longer script another example
this is for a bot just an example again
on 100:text:*:?: {
if ($1 == ADD) { $ipadd $2 $3 }
}
theres various ways to do it...
a text file is bulky plus if.. you do writeini it writes new sections in brackets making it easier to read