.$submenu($mysubmenu($1))
alias mysubmenu {
if ($1 == begin) return -
if ($1 == end) return -
return $read(insults.txt,$1) : /say $read (insults.txt,$1)
}
Now, this code may look right. But typically this hits a huge hitch where it takes a lot longer than it should. This is the common usage in a lot of scripts and it's actually wrong.
When the read fails, it still returns something. Though without a title it won't show up. But, it seems to keep running the $submenu until it runs out it hits the limit at 250. This causes a slowdown in a number of bots that are coded under the idea that if the $submenu item doesn't get a title it stops running. Rather than churning away and wasting two seconds.