• SEARCH

    통합검색
  • GAMEZONE
    • 커뮤니티
      • 공지사항
      • 유저게시판
        • 등업게시판
        • 출석체크
        • 정회원 무료자료실
      • 스크린샷
      • 인증자료실
    • 리니지
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 메이플스토리
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 바람의나라
      • 자유게시판
      • 홍보게시판
      • 자료게시판
        • 유틸자료실
        • 소스자료실
        • 클라이언트
        • 팩 자료실
      • 연구게시판
        • 개발내역
        • 질문과답변
        • 기타
      • 강의게시판
        • DR
        • CR
        • 구버전
        • 클라이언트 개조
        • 노하우 게시판
        • 게임공략 & 팁
    • 다크에덴
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 믹스마스터
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 라그나로크
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 기타게임
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 게임강의
    • 비베&포토샵
      • 자유게시판
      • 자료실
        • 일반자료실
        • 포인트 자료실
      • 노하우게시판
      • 포토샵게시판
    • 모바일
      • 게임공략
      • 포인트 자료실
      • 유틸자료실
      • 자유게시판
  • 기타게임 소스자료실
    • 기타게임 소스자료실 기타 ()
    • [마지막왕국] 관리자 권한 주기... 뭐가 문제일까요

      • 령하진
      • 2019.04.16 - 10:10 2019.04.01 - 12:06 357 1

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;

    using LKCamelot.net;
    using LKCamelot.util;
    using LKCamelot.model;
    using LKCamelot.script;

    using LKCamelot.io;

    namespace LKCamelot
    {
        public partial class 제어창 : Form
        {
            public Player player;
            public PlayerHandler handler;
            public static Server w_server;
            public 제어창()
            {
                InitializeComponent();
            }

            private void button1_Click(object sender, EventArgs e)
            {
               
                    if (textBox1.Text == "")
                        return;
                string chat = "[공지사항] :" + textBox1.Text + "                      ";
                World.SendToAll(new QueDele("all", new UpdateChatBox(0x08, 0xff, 20737, (short)chat.Count(), chat).Compile()));
               
            }

            private void button2_Click(object sender, EventArgs e)
            {
                using (StreamWriter sw = new StreamWriter("worldAdmin.txt", true, Encoding.GetEncoding("euc-kr")))
                {
                    sw.WriteLine(string.Format(",{0}", Nametext.Text));

                }
                //String pppfile = str2[1] + "님이 관리자로 등록 되었습니다." + "                                             ";
                //SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)pppfile.Count(), pppfile).Compile());           
                var plr2 = handler.add.Where(xe => xe.Value != null && xe.Value.GetFreeSlots() > 3 && xe.Value.Name == Nametext.ToString() && xe.Value.loggedIn).FirstOrDefault().Value;
                string achat = "연구소 서버관리자로 임명되었습니다." + "                                             ";
                plr2.client.SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)achat.Count(), achat).Compile());
                string achat2 = "기타내용" + "                                             ";
                plr2.client.SendPacket(new UpdateChatBox(0xff, 0xff, 1, (short)achat2.Count(), achat2).Compile());
            }

            private void textBox2_TextChanged(object sender, EventArgs e)
            {

            }

            private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
            {

            }

            private void button3_Click(object sender, EventArgs e)
            {
               
               
            }

            private void 경험치배율ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                경험치배율 frm = new 경험치배율();
                frm.Show();
            }

            private void 제어창_Load(object sender, EventArgs e)
            {

            }

            private void 잭팟설정ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                잭팟 frm = new 잭팟();
                frm.Show();
            }
        }
    }

     

    실행하면 제어창에 관리자 아이디 입력 후 관리자 추가 버튼 클릭하면

     

    이 대화 상자 대신 JIT(Just-in-time) 디버깅을 호출하는
    방법에 대한 자세한 내용은 이 메시지의 뒷부분을 참조하십시오.

    ************** 예외 텍스트 **************
    System.NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.

     

    어떻게 수정해야할지.. ㅋㅋ

    이 게시물을..
    N
    0
    0
    • [Go 공식문서 한국어 정리] ⑤4. Go 명령어 도구오뉴노노
    • 28
      령하진

    령하진 님의 최근 글

    리니지 구축자료 583 2019 04.06 (SP)v7파이널 팩 214 2019 04.05 옛날 리니지 2.0 구버전 분할 3 169 2019 04.05 옛날 리니지 2.0 구버전 분할 2 111 2019 04.05 옛날 리니지 2.0 구버전 분할 1 343 1 2019 04.05

    령하진 님의 최근 댓글

    src가 빠져있는데 이거 맞나요? 2023 07.02 ㄳㄳ 2023 05.28 감사합니다 2022 10.25 감사합니당 2022 06.20 감사합니다 2022 06.20
    글쓴이의 서명작성글 감추기 

    댓글1

    • 0
      조아욧
      2019.04.16 - 10:10 #4169568

      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Windows.Forms;
      using System.IO;

      using LKCamelot.net;
      using LKCamelot.util;
      using LKCamelot.model;
      using LKCamelot.script;

      using LKCamelot.io;

      namespace LKCamelot
      {
          public partial class 제어창 : Form
          {
              public Player player;
              public PlayerHandler handler;
              public static Server w_server;
              public 제어창()
              {
                  InitializeComponent();
              }

              private void button1_Click(object sender, EventArgs e)
              {

                  if (textBox1.Text == "")
                      return;
                  string chat = "[공지사항] :" + textBox1.Text + "                      ";
                  World.SendToAll(new QueDele("all", new UpdateChatBox(0x08, 0xff, 20737, (short)chat.Count(), chat).Compile()));

              }

              private void button2_Click(object sender, EventArgs e)
              {
                  using (StreamWriter sw = new StreamWriter("worldAdmin.txt", true, Encoding.GetEncoding("euc-kr")))
                  {
                      sw.WriteLine(string.Format(",{0}", Nametext.Text));

                  }


                  String Admin = Nametext.Text + " 님이 관리자로 등록 되었습니다." + "                                             ";
                  World.SendToAll(new QueDele("all", new UpdateChatBox(0x08, 0xff, 20737, (short)Admin.Count(), Admin).Compile()));

              }

              private void textBox2_TextChanged(object sender, EventArgs e)
              {

              }

              private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
              {

              }

              private void button3_Click(object sender, EventArgs e)
              {


              }

              private void 경험치배율ToolStripMenuItem_Click(object sender, EventArgs e)
              {
                  경험치배율 frm = new 경험치배율();
                  frm.Show();
              }

              private void 제어창_Load(object sender, EventArgs e)
              {

              }

              private void 잭팟설정ToolStripMenuItem_Click(object sender, EventArgs e)
              {
                  잭팟 frm = new 잭팟();
                  frm.Show();
              }
          }
      }

    댓글 쓰기 에디터 사용하기 닫기
    • view_headline 목록
    • 14px
    • [Go 공식문서 한국어 정리] ⑤4. Go 명령어 도구
    • 목록
      view_headline
    1
    × CLOSE
    전체 던파 5 뮤 18 천상비 프로젝트신루 5 아이온 18 어둠의전설 28 리니지2 7 크로노스 5 칼온라인 3 기타 306
    기본 (305) 제목 날짜 수정 조회 댓글 추천 비추
    기타 정렬 검색
    • 포인트 획득 공지
      4
      2026.04.24 - 19:48 4639 4
    • 링크 업로드 관련 공지
      8
      2026.03.25 - 21:56 4494 8
    • 인증메일 공지
      2
      2026.03.15 - 16:42 4389 2
    • 파일링크 및 인증메일 발송 관련 문의 안내
      8
      2026.03.14 - 22:03 4983 8
    • 포인트 게시판 안내
      2026.02.28 - 19:14 5770
    • 게임존 사이트 변경 사항 안내
      9
      2026.02.26 - 01:07 7587 9
    • 소스자료는 직접 올려주세요
      2017.06.06 - 16:16 849
    305
    기타
    피파온라인 3 클라이언트
    lyw01234 2026.05.30 - 23:17 40
    304
    기타
    [Rust 공식문서 한국어 정리] ⑭. Rustlings
    오뉴노노 2026.05.30 - 08:38 11
    303
    기타
    [Rust 공식문서 한국어 정리] ⑬. The Unstable Book
    오뉴노노 2026.05.30 - 08:38 11
    302
    기타
    [Rust 공식문서 한국어 정리] ⑫. Rust Cookbook
    오뉴노노 2026.05.30 - 08:37 9
    301
    기타
    [Rust 공식문서 한국어 정리] ⑪. The Little Book of Rust Macros
    오뉴노노 2026.05.30 - 08:36 4
    300
    기타
    [Rust 공식문서 한국어 정리] ⑩. Rust Design Patterns
    오뉴노노 2026.05.30 - 08:36 12
    299
    기타
    [Rust 공식문서 한국어 정리] ⑨. Rust API Guidelines
    오뉴노노 2026.05.30 - 08:35 12
    298
    기타
    [Rust 공식문서 한국어 정리] ⑧. The Rust Performance Book
    오뉴노노 2026.05.30 - 08:34 7
    297
    기타
    [Rust 공식문서 한국어 정리] ⑦. Asynchronous Programming in Rust
    오뉴노노 2026.05.30 - 08:34 6
    296
    기타
    [Rust 공식문서 한국어 정리] ⑥. The Rust Edition Guide
    오뉴노노 2026.05.30 - 08:33 9
    295
    기타
    [Rust 공식문서 한국어 정리] ⑤. The Cargo Book
    오뉴노노 2026.05.30 - 08:32 1
    294
    기타
    [Rust 공식문서 한국어 정리] ④. The Rustonomicon
    오뉴노노 2026.05.30 - 08:32
    293
    기타
    [Rust 공식문서 한국어 정리] ③. The Rust Reference
    오뉴노노 2026.05.30 - 08:31
    292
    기타
    [Rust 공식문서 한국어 정리] ②. Rust By Example
    오뉴노노 2026.05.30 - 08:31
    291
    기타
    [Rust 공식문서 한국어 정리] ①. The Rust Programming Language (The Book)
    오뉴노노 2026.05.30 - 08:30 2
    290
    기타
    [Go 공식문서 한국어 정리] ⑤7. Codewalk: Share Memory By Communicating
    오뉴노노 2026.05.30 - 03:29 7
    289
    기타
    [Go 공식문서 한국어 정리] ⑤6. Codewalk: 마르코프 체인 텍스트 생성
    오뉴노노 2026.05.30 - 03:26 2
    288
    기타
    [Go 공식문서 한국어 정리] ⑤5. Codewalk: Go의 일급 함수
    오뉴노노 2026.05.30 - 03:25 1
    287
    기타
    [Go 공식문서 한국어 정리] ⑤4. Go 명령어 도구
    오뉴노노 2026.05.30 - 03:24 2
    286
    기타
    [Go 공식문서 한국어 정리] ⑤3. 통합 테스트 커버리지 프로파일링
    오뉴노노 2026.05.30 - 03:23 1
    • 1 2 3 4 5 6 7 8 9 10 .. 16
    • / 16 GO
  • GAMEZONE
 GAMEZONE all rights reserved.
by OrangeDay