mIRC Homepage
Posted By: Lorenzoh .ini files - 24/11/12 12:23 PM
Hello everyone!

I'm new here, so try not to be hard on me:$

First of all, i have a question!

How to work with .INI files?

I tried some, but i can't figger it out:<
Posted By: sparta Re: .ini files - 24/11/12 12:42 PM
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.
Posted By: Lorenzoh Re: .ini files - 24/11/12 01:02 PM
Originally Posted By: sparta
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.


I know mSL (mIRC scripting language.)

But i want to learn how to work with the .ini.

The on *:text:!hey*:*: { <----i know all of that;)

But not how to work with the .ini files
Can't find it in F1(Help)
Posted By: Lorenzoh Re: .ini files - 24/11/12 01:03 PM
Originally Posted By: sparta
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.


I finaly got this one working;)

ON *:TEXT:!zet verjaardag*:#:{
if ($3) && ($regex($4,/^\d+\/\d+/\d+$/)) {
writeini birthday.ini Birthday $3 $4
notice $nick Verjaardag opgeslagen.
}
else {
notice $nick Syntax Error: !zet verjaardag <NAME> <DD/MM/YYYY>
}
}

ON *:TEXT:!Verjaardag*:#:{
if ($readini(birthday.ini,n,Birthday,$2)) {
var %nick = $v1
}
else { var %nick = $readini(birthday.ini,n,Birthday,$nick) }
if (!%nick) {
notice $nick Je hebt je verjaardag nog niet opgeslagen!
}
else {
notice $nick Leeftijd: $calc(($ctime - $ctime(%nick))/60/60/24/365) jaar oud!
}
}
© mIRC Discussion Forums