def stats
rooms = objs = scripts = characters = accounts = 0
self.each do |val|
case val
when Room
rooms += 1
when Character
characters += 1
when GameObject
objs += 1
when Script
scripts += 1
when Account
accounts += 1
end
end
stats="[COLOR Cyan]\n---* Database Statistics *---\n Rooms - \#{rooms}\n Objects - \#{objs}\n Scripts - \#{scripts}\n Accounts - \#{accounts}\n Characters - \#{characters}\n Total Objects - \#{rooms+objs+characters+accounts+scripts}\n Highest OID in use - \#{@dbtop}\n---* *---\n[/COLOR]\n"
end