• SEARCH

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

      • 령하진
      • 2019.04.16 - 10:10 2019.04.01 - 12:06 383 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
    • [Rust 공식문서 한국어 정리] 166. str오뉴노노
    • 28
      령하진

    령하진 님의 최근 글

    리니지 구축자료 612 2019 04.06 (SP)v7파이널 팩 232 2019 04.05 옛날 리니지 2.0 구버전 분할 3 181 2019 04.05 옛날 리니지 2.0 구버전 분할 2 125 2019 04.05 옛날 리니지 2.0 구버전 분할 1 362 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
    • [Rust 공식문서 한국어 정리] 166. str
    • 목록
      view_headline
    1
    × CLOSE
    전체 던파 5 뮤 18 천상비 프로젝트신루 5 아이온 18 어둠의전설 28 리니지2 7 크로노스 5 칼온라인 3 기타 490
    기본 (489) 제목 날짜 수정 조회 댓글 추천 비추
    기타 정렬 검색
    • 포인트 획득 공지
      5
      2026.04.24 - 19:48 6387 5
    • 링크 업로드 관련 공지
      10
      2026.03.25 - 21:56 5751 10
    • 인증메일 공지
      3
      2026.03.15 - 16:42 5680 3
    • 파일링크 및 인증메일 발송 관련 문의 안내
      9
      2026.03.14 - 22:03 6556 9
    • 포인트 게시판 안내
      2026.02.28 - 19:14 7157
    • 게임존 사이트 변경 사항 안내
      9
      2026.02.26 - 01:07 8860 9
    • 소스자료는 직접 올려주세요
      2017.06.06 - 16:16 860
    489
    기타
    [Rust 공식문서 한국어 정리] 184. PartialOrd
    오뉴노노 2026.06.08 - 15:42 48
    488
    기타
    [Rust 공식문서 한국어 정리] 183. Ord
    오뉴노노 2026.06.08 - 15:42 42
    487
    기타
    [Rust 공식문서 한국어 정리] 182. Eq
    오뉴노노 2026.06.08 - 15:42 27
    486
    기타
    [Rust 공식문서 한국어 정리] 181. PartialEq
    오뉴노노 2026.06.08 - 15:42 33
    485
    기타
    [Rust 공식문서 한국어 정리] 180. TryFrom
    오뉴노노 2026.06.08 - 15:42 22
    484
    기타
    [Rust 공식문서 한국어 정리] 179. TryInto
    오뉴노노 2026.06.08 - 15:42 16
    483
    기타
    [Rust 공식문서 한국어 정리] 178. From
    오뉴노노 2026.06.08 - 15:39 20
    482
    기타
    [Rust 공식문서 한국어 정리] 177. Into
    오뉴노노 2026.06.08 - 15:39 15
    481
    기타
    [Rust 공식문서 한국어 정리] 176. AsRef
    오뉴노노 2026.06.08 - 15:39 12
    480
    기타
    [Rust 공식문서 한국어 정리] 175. Deref
    오뉴노노 2026.06.08 - 15:39 9
    479
    기타
    [Rust 공식문서 한국어 정리] 174. Default
    오뉴노노 2026.06.08 - 15:39 10
    478
    기타
    [Rust 공식문서 한국어 정리] 173. Clone
    오뉴노노 2026.06.08 - 15:38 9
    477
    기타
    [Rust 공식문서 한국어 정리] 172. Copy
    오뉴노노 2026.06.08 - 15:38 9
    476
    기타
    [Rust 공식문서 한국어 정리] 171. Drop
    오뉴노노 2026.06.08 - 15:38 5
    475
    기타
    [Rust 공식문서 한국어 정리] 170. Weak
    오뉴노노 2026.06.08 - 15:37 15
    474
    기타
    [Rust 공식문서 한국어 정리] 169. Arc
    오뉴노노 2026.06.08 - 15:37 4
    473
    기타
    [Rust 공식문서 한국어 정리] 168. Rc
    오뉴노노 2026.06.08 - 15:37 12
    472
    기타
    [Rust 공식문서 한국어 정리] 167. Box
    오뉴노노 2026.06.08 - 15:36 6
    471
    기타
    [Rust 공식문서 한국어 정리] 166. str
    오뉴노노 2026.06.08 - 15:36 7
    470
    기타
    [Rust 공식문서 한국어 정리] 165. String
    오뉴노노 2026.06.08 - 15:36 5
    • 1 2 3 4 5 6 7 8 9 10 .. 25
    • / 25 GO
  • GAMEZONE
 GAMEZONE all rights reserved.
by OrangeDay