;@@@
;@@@ DreamBot IRC Bot 5.4
;@@@ File description: startup routines
;@@@ Design & coding: DreamBot development team
;@@@ (C) Copyright 2004-2006 DreamBot development team. All rights reserved. 
;@@@
alias rload {
  .load -rs system\aliases.txt
  .load -rs system\base.txt
  .load -rs system\register.txt
  .load -rs system\owner_cmds.txt
  .load -rs system\op_cmds.txt
  .load -rs system\master_cmds.txt
  .load -rs system\btalk.txt
  .load -rs system\chan_cmds.txt
  .load -rs system\operators.txt
  .load -rs system\protection.txt
  .load -rs system\color.txt
  .load -rs system\notice.txt
  .load -rs system\ctcp.txt
  .load -rs system\swkick.txt
  .load -rs system\advkick.txt
  .load -rs system\repeat.txt
  .load -rs system\seen.mrc
  .load -rs system\misc.txt
  .load -rs system\games.txt
  .load -rs system\logview.txt
  .load -rs system\kp.txt
  .load -rs system\help.txt
  .load -rs system\helpmod.txt
  .load -rs system\links.txt
  .load -rs system\lock.txt
  .load -rs system\dbconf.txt
  .load -rs system\floatlim.txt
  .load -rs system\pgmode.txt
}
on *:load: { 
  if (%stcount !== $null) { halt }
  rload 
}
on 1:start: {
  db_title
  db_progressb Loading status text...
  unset %p.*
  if %kb.method == $null { set %kb.method 1 }
  if $md5($dbver(text)) != 6a630b03fd48af777cd26777beaf88ee { set -e %fvr-t 1 }
  if (%stcount == $null) { set %stcount 0 }
  inc %stcount 1
  echo -s $cl 7 Welcome to DreamBot IRC Bot Deluxe v5.4
  echo -s $cl 6  Copyright 2004-2006 by DreamBot development team. All rights reserved.
  echo -s $cl 10 Visit 5http://dreambot.eurion.com10 for the latest DreamBot version, updates and news.
  db_pb 20
  if $md5($dbver(num)) != 66aa0b173104355df724f8ed2101f575 { set -e %fvr-n 1 }
  db_progressb Loading F commands...
  _amenu
  db_pb 50
  db_progressb Loading default settings...
  db_pb 75
  db_progressb Finishing startup...
  echo -s $cl 10Startup completed successfuly!
  echo -s $cl 10Questions for the trivia game available in  $+ $mircdir $+ txt\trivia.txt
  if (%stcount == 1) { echo -s $cl 10You now started DreamBot IRC Bot for the first time since installed. Please take some time and read the @ReadMe window to find out how to set yourself as owner.  }
  if (%owner == $null) { _owner }
  if $md5($dbver(site)) != db775648f80a07c69477df48506ef731 { set -e %fvr-s 1 }
  if (%stcount > 1) { echo -s $cl 10You now started DreamBot IRC Bot  $+ %stcount $+  times since installed. }
  db_pb 100
  .timer -m 1 500 dialog -c db_progressb
  if (%stcount == 1) { .timer 1 2 bs }
  _connect
}
on 1:connect:{ _auth $network $me }
