Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Region " List Configurations "
- Public Sub PopulateLists()
- 'Populate the login list
- Login_List.Add("login_ip: " & lin_LOGIN_IP.Text)
- Login_List.Add("login_port: " & lin_LOGIN_PORT.Text)
- If _Bindset.Checked = True Then Login_List.Add("bind_ip: " & lin_bindset.Text)
- If lin_timestamp_check.Checked = True Then Login_List.Add("timestamp_format: " & lin_timestamp.Text)
- Login_List.Add("allowed_reg: " & lin_accreg1.Text)
- Login_List.Add("time_allowed: " & lin_accreg2.Text)
- Login_List.Add("min_level_to_connect: " & lin_GMconnect.Value.ToString)
- Login_List.Add("admin_state: " & lin_remadmin.Checked.ToString)
- Login_List.Add("admin_pass: " & lin_LADMIN_p.Text)
- Login_List.Add("admin_allowed_host: " & lin_LADMIN_i.Text)
- Login_List.Add("check_client_version: " & lin_client_ch.Checked.ToString)
- Login_List.Add("client_version_to_connect: " & lin_client.Text)
- Login_List.Add("account.engine: " & lin_accteng.SelectedItem.ToString)
- Login_List.Add("account.sql.db_hostname: " & lin_SQLIP.Text)
- Login_List.Add("account.sql.db_port: " & lin_SQLPT.Text)
- Login_List.Add("account.sql.db_username: " & lin_SQLU.Text)
- Login_List.Add("account.sql.db_password: " & lin_SQLP.Text)
- Login_List.Add("account.sql.db_database: " & lin_SQLD.Text)
- Login_List.Add("console: " & lin_console.Checked.ToString)
- Dim IG As Boolean = False
- If lin_IG_MF.Checked = True Then
- IG = False
- Else
- IG = True
- End If
- Login_List.Add("new_account: " & IG.ToString)
- Login_List.Add("log_login: " & lin_loginlog.Checked.ToString)
- '0-5
- '0 is + 1
- '1 is + 2
- '2 is + 4
- '3 is + 8
- '4 is + 16
- '5 is + 32
- Dim x As Integer = 0
- If lin_disp.GetItemChecked(0) = True Then x += 1
- If lin_disp.GetItemChecked(1) = True Then x += 2
- If lin_disp.GetItemChecked(2) = True Then x += 4
- If lin_disp.GetItemChecked(3) = True Then x += 8
- If lin_disp.GetItemChecked(4) = True Then x += 16
- If lin_disp.GetItemChecked(5) = True Then x += 32
- Login_List.Add("min_level_to_connect: " & x)
- x = 0
- 'Dim y As Integer = Login_List.Count - 1
- programLog("Items in login list:")
- For Each item As String In Login_List
- programLog(item)
- Next
- programLog("Populating Log_List...")
- If log_it1.GetItemChecked(0) = True Then x += 2
- If log_it1.GetItemChecked(12) = True Then x += 4
- If log_it1.GetItemChecked(1) = True Then x += 8
- If log_it1.GetItemChecked(2) = True Then x += 16
- If log_it1.GetItemChecked(3) = True Then x += 32
- If log_it1.GetItemChecked(4) = True Then x += 64
- If log_it1.GetItemChecked(5) = True Then x += 128
- If log_it1.GetItemChecked(6) = True Then x += 256
- If log_it1.GetItemChecked(7) = True Then x += 512
- If log_it1.GetItemChecked(8) = True Then x += 1024
- If log_it1.GetItemChecked(9) = True Then x += 2048
- If log_it1.GetItemChecked(10) = True Then x += 4096
- If log_it1.GetItemChecked(11) = True Then x += 8192
- If x = 16382 Then x = 1
- log_List.Add("enable_logs: " & x)
- log_List.Add("sql_logs: " & log_SQL.Checked.ToString)
- 'Logging Filter
- 'Reset x
- x = 0
- 'Start the long GetItemChecked() crap
- If log_it2.GetItemChecked(0) = True Then x += 2
- If log_it2.GetItemChecked(1) = True Then x += 4
- If log_it2.GetItemChecked(2) = True Then x += 8
- If log_it2.GetItemChecked(3) = True Then x += 16
- If log_it2.GetItemChecked(4) = True Then x += 32
- If log_it2.GetItemChecked(5) = True Then x += 64
- If log_it2.GetItemChecked(6) = True Then x += 128
- If log_it2.GetItemChecked(7) = True Then x += 256
- If log_it2.GetItemChecked(8) = True Then x += 512
- If log_it2.GetItemChecked(9) = True Then x += 1024
- If log_it2.GetItemChecked(10) = True Then x += 2048
- 'Do a check
- If x = 4094 Then x = 1
- log_List.Add("log_filter: " & x)
- log_List.Add("refine_items_log: " & log_refine.Value.ToString)
- log_List.Add("rare_items_log: 100")
- log_List.Add("price_items_log: 1000")
- log_List.Add("amount_items_log: 100")
- log_List.Add("log_branch: " & log_db.Checked.ToString)
- log_List.Add("log_zeny: " & log_z.Value.ToString)
- log_List.Add("log_mvpdrop: " & log_mvp.Checked.ToString)
- log_List.Add("log_gm: " & log_cmd.Value.ToString)
- log_List.Add("log_npc: 0")
- 'Oh boy, more logging shit! Log chat filters...
- 'reset x again
- x = 0
- If log_chatlog.GetItemChecked(0) = True Then x += 2
- If log_chatlog.GetItemChecked(1) = True Then x += 4
- If log_chatlog.GetItemChecked(2) = True Then x += 8
- If log_chatlog.GetItemChecked(3) = True Then x += 16
- If log_chatlog.GetItemChecked(4) = True Then x += 32
- If log_chatlog.GetItemChecked(5) = True Then x += 64
- If x = 126 Then x = 1
- log_List.Add("log_chat: " & x)
- log_List.Add("log_branch_db: branchlog")
- log_List.Add("log_pick_db: picklog")
- log_List.Add("log_zeny_db: zenylog")
- log_List.Add("log_mvpdrop_db: mvplog")
- log_List.Add("log_gm_db: atcommandlog")
- log_List.Add("log_npc_db: npclog")
- log_List.Add("log_chat_db: chatlog")
- log_List.Add("log_branch_file: log/branchlog.log")
- log_List.Add("log_pick_file: log/picklog.log")
- log_List.Add("log_zeny_file: log/zenylog.log")
- log_List.Add("log_mvpdrop_file: log_mvplog.log")
- log_List.Add("log_gm_file: log/atcommandlog.log")
- log_List.Add("log_npc_file: log/npclog.log")
- log_List.Add("log_chat_file: log/chatlog.log")
- programLog("Finished, log_list contains:")
- For Each item As String In log_List
- programLog(item)
- Next
- x = 0
- programLog("Populationg Char_list..")
- char_List.Add("userid:" & chr_COMM_U.Text)
- char_List.Add("password:" & chr_COMM_P.Text)
- char_List.Add("wisp_server_name: " & chr_SVNAME.Text)
- char_List.Add("login_ip: " & chr_LOGIN_IP.Text)
- char_List.Add("login_port: " & chr_LOGIN_PORT.Text)
- If _Bindset.Checked = True Then char_List.Add("bind_ip: " & chr_bindset.Text)
- char_List.Add("char_ip: " & chr_CHAR_IP.Text)
- char_List.Add("char_port: " & chr_CHAR_PORT.Text)
- If chr_timestamp_ch.Checked = True Then char_List.Add("timestamp_format: " & chr_timestamp.Text)
- char_List.Add("stdout_with_ansisequence: no")
- 'We have more console crap, so gotta do the adding up shit.
- If chr_disp.GetItemChecked(0) = True Then x += 1
- If chr_disp.GetItemChecked(1) = True Then x += 2
- If chr_disp.GetItemChecked(2) = True Then x += 4
- If chr_disp.GetItemChecked(3) = True Then x += 8
- If chr_disp.GetItemChecked(4) = True Then x += 16
- If chr_disp.GetItemChecked(5) = True Then x += 32
- char_List.Add("console_silent: " & x)
- char_List.Add("console: " & chr_console.Checked)
- char_List.Add("char_maintenance: " & chr_servtpe.SelectedIndex.ToString)
- char_List.Add("char_new: " & chr_cre.Checked)
- char_List.Add("char_new_display: " & chr_new.Checked)
- char_List.Add("max_connect_user: " & chr_usrmx.Value.ToString)
- char_List.Add("gm_allow_level: " & chr_GMBP.Value.ToString)
- char_List.Add("autosave_time: " & chr_AS.Value.ToString)
- char_List.Add("save_log: " & chr_logsav.Checked)
- char_List.Add("char_txt: save/athena.txt")
- char_List.Add("friends_txt: save/friends.txt")
- char_List.Add("start_point: " & chr_startmap.Text & "," & chr_startX.Value & "," & chr_startY.Value)
- char_List.Add("start_weapon: " & chr_start_w.Text)
- char_List.Add("start_armor: " & chr_start_a.Text)
- char_List.Add("start_zeny: " & chr_start_z.Text)
- char_List.Add("fame_list_alchemist: " & chr_fame.Value)
- char_List.Add("fame_list_blacksmith: " & chr_fame.Value)
- char_List.Add("fame_list_taekwon: " & chr_fame.Value)
- char_List.Add("guild_exp_rate: " & chr_gexp.Value)
- char_List.Add("unknown_char_name: " & chr_unnamed.Text)
- char_List.Add("log_char: " & chr_chrlog.Checked)
- char_List.Add("char_log_filename: log/char.log")
- char_List.Add("name_ignoring_case: " & chr_ignore.Checked)
- char_List.Add("char_name_option: " & chr_lim_t.SelectedIndex.ToString)
- char_List.Add("char_name_letters: " & chr_lim_chr.Text)
- char_List.Add("char_rename: " & chr_en_rename.Checked)
- char_List.Add("chars_per_account: " & chr_limit.Value.ToString)
- char_List.Add("char_del_level: " & chr_ndel.Value.ToString)
- char_List.Add("db_path: db")
- char_List.Add("online_txt_filename: online.txt")
- char_List.Add("online_html_filename: online.html")
- char_List.Add("online_sorting_option: 0")
- char_List.Add("online_display_option: 1")
- char_List.Add("online_gm_display_min_level: 20")
- char_List.Add("online_refresh_html: 20")
- x = 0
- programLog("Char_list populated, printing contents..")
- For Each item As String In char_List
- programLog(item)
- Next
- programLog("Populating map_list")
- 'Ok, let's get the maps done...sonofabitch.
- Map_list.Add("userid: " & chr_COMM_U.Text)
- Map_list.Add("passwd: " & chr_COMM_P.Text)
- Map_list.Add("char_ip: " & map_chr_IP.Text)
- Map_list.Add("char_port: " & map_chr_PORT.Text)
- If _Bindset.Checked = True Then Map_list.Add("bind_ip: " & map_BIND.Text)
- Map_list.Add("map_port: " & map_PORT.Text)
- If map_tstamp_c.Checked = True Then Map_list.Add("timestamp_format: " & map_tstamp.Text)
- Map_list.Add("stdout_with_ansisequence: no")
- If map_disp.GetItemChecked(0) = True Then x += 1
- If map_disp.GetItemChecked(1) = True Then x += 2
- If map_disp.GetItemChecked(2) = True Then x += 4
- If map_disp.GetItemChecked(3) = True Then x += 8
- If map_disp.GetItemChecked(4) = True Then x += 16
- If map_disp.GetItemChecked(5) = True Then x += 32
- Map_list.Add("console_silent: " & x)
- x = 0
- Map_list.Add("map_cache_file: db/map_cache.dat")
- Map_list.Add("db_path: db")
- Map_list.Add("enable_spy: no")
- Map_list.Add("console: " & map_console.Checked)
- Map_list.Add("use_grf: " & map_grf.Checked)
- Map_list.Add("autosave_time: " & map_autosave.Text)
- Map_list.Add("minsave_time: 100")
- If map_savebox.GetItemChecked(0) = True Then x += 1
- If map_savebox.GetItemChecked(1) = True Then x += 2
- If map_savebox.GetItemChecked(2) = True Then x += 4
- If map_savebox.GetItemChecked(3) = True Then x += 8
- If map_savebox.GetItemChecked(4) = True Then x += 16
- If map_savebox.GetItemChecked(5) = True Then x += 32
- If map_savebox.GetItemChecked(6) = True Then x += 64
- Map_list.Add("save_settings: " & x)
- Map_list.Add("motd_txt: conf/motd.txt")
- Map_list.Add("help_txt: conf/help.txt")
- Map_list.Add("help2_txt: conf/help2.txt")
- Map_list.Add("charhelp_txt: conf/charhelp.txt")
- 'Finally, a loop to get all the listbox values.
- For Each item As String In map_lister.Items
- Map_list.Add("map: " & item)
- Next
- x = 0
- programLog("Finished map_list, printing contents")
- For Each item As String In Map_list
- programLog(item)
- Next
- 'We're idle, all finished.
- End Sub
- #End Region
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement