This is a small snippet that when you enter in a channel that has x and you have no auto op but you have access this script will automatically send a message to x to give you op.
on 1:join:#:{
if ($nick = $me) && (x isin #) .timer 1 6 msg X op #
}