on *:text:!scouts*:#:{
if ($2 == hamtaro) || ($2 == xnemesis) notice $nick $2 has set the world more times than you can imagine!
else {
if ($2) var %infonick = $2
else var %infonick = $nick
var %tempnum = 0
var %tempnum2 = 0
/set %tempnum $($+(%,%infonick,1),2)
/set %tempnum2 $($+(%,%infonick,2),2)
if (%tempnum == 1) %tempstr = %infonick has scouted the world %tempnum time!
else {
if (%tempnum > 1) %tempstr = %infonick has scouted the world %tempnum times!
else %tempstr = %infonick has not been noted scouting the world!
}
if (%tempnum2 == 1) %tempstr2 = %infonick has set the world %tempnum2 time!
else {
if (%tempnum2 > 1) %tempstr2 = %infonick has set the world %tempnum2 times!
else %tempstr2 = %infonick has not been noted setting the world!
}
/notice $nick %tempstr %tempstr2
}
}
; called from your world script like as below:
; /scouts worldSETTER worldSCOUTER e.g. if xnemesis scouted and luckysam28 set
; /scouts luckysam28 xnemesis (obviously using the variables when someone !setworld 's)
alias scouts {
/inc $+(%,$1,1) 1
/inc $+(%,$2,2) 1
}