on *:TEXT:!check:#PCPlace: {
if ($me != %botnick) { halt }
if ($nick !isreg $chan) {
if ($readini(PestControl.ini, n, Sets, $nick) == $null) {
notice $nick You haven't set any worlds | halt
}
notice $nick You have set $readini(PestControl.ini, n, Sets, $nick) worlds
}
if ($nick isreg $chan) {
if ($readini(PestControl.ini, n, Suggests, $nick) == $null) {
notice $nick You haven't scouted any worlds | halt
}
notice $nick You have scouted $readini(PestControl.ini, n, Suggests, $nick) worlds
}
}
on *:TEXT:!check*:#PCPlace: {
if ($me != %botnick || $2 == $null) { halt }
if ($2 !isreg $chan) {
if ($readini(PestControl.ini, n, Sets, $2) == $null) {
notice $nick $2 hasn't set any worlds | halt
}
notice $nick $2 has set $readini(PestControl.ini, n, Sets, $2) worlds
}
if ($2 isreg $chan) {
if ($readini(PestControl.ini, n, Suggests, $2) == $null) {
notice $nick $2 hasn't scouted any worlds | halt
}
notice $nick $2 has scouted $readini(PestControl.ini, n, Suggests, $2) worlds
}
}
[In your PC script]
writeini -n PestControl.ini Sets $nick $calc($readini(PestControl.ini, n, Sets, $nick) + 1)
writeini -n PestControl.ini TotalSets $chan $calc($readini(PestControl.ini, n, TotalSets, $chan) + 1)