else if ( $3 = loto ) {
if ( $readini(accounts.ini,$vcmp.name($1,$2),log) = 0 ) vcmp.msg $1 $2 Please register/login to use this command
if ( !$readini(accounts.ini,$vcmp.name($1,$2),level) ) vcmp.msg $1 $2 Please register/login to use this command
elseif ( $readini(accounts.ini,$vcmp.name( $1,$2),alr) = 1 ) vcmp.msg $1 $2 Sorry today you losed your chance , try after 5 hours
elseif ( $readini(accounts.ini,$vcmp.name($1,$2),cash) < 2000 ) vcmp.msg $1 $2 You need at least 2000 dollars !
else {
writeini accounts.ini $vcmp.name($1,$2) alr 1
var %temp = $rand(1,100)
timer.loto 1 18000 writeini accounts.ini $vcmp.name($1,$2) alr 0
vcmp.msg $1 $2 Loto started good luck !!!
if ( %temp = 56 ) {
writeini accounts.ini $vcmp.name($1,$2) cash $calc($readini(accounts.ini,$vcmp.name($1,$2),cash) + 100000)
vcmp.announce $1 $2 ~y~W~b~i~y~n~b~n~y~e~b~r~o~!
vcmp.say $1 Pay atention ! , $vcmp.name( $1,$2) has just won 100.000 dollars
vcmp.msg $1 $2 Well done :)
}
else vcmp.msg $1 $2 Too bad :( you losed , good luck next time
}
}
It should work for all mirc scripts , but you will need to convert my to ur script