• 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 공식문서 한국어 정리] 150. Attribute Macros오뉴노노
    • 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 공식문서 한국어 정리] 150. Attribute Macros
    • 목록
      view_headline
    1
    × CLOSE
    전체 던파 5 뮤 18 천상비 프로젝트신루 5 아이온 18 어둠의전설 28 리니지2 7 크로노스 5 칼온라인 3 기타 490
    기본 (582) 제목 날짜 수정 조회 댓글 추천 비추
    분류 정렬 검색
    • 포인트 획득 공지
      5
      2026.04.24 - 19:48 6385 5
    • 링크 업로드 관련 공지
      10
      2026.03.25 - 21:56 5749 10
    • 인증메일 공지
      3
      2026.03.15 - 16:42 5677 3
    • 파일링크 및 인증메일 발송 관련 문의 안내
      9
      2026.03.14 - 22:03 6554 9
    • 포인트 게시판 안내
      2026.02.28 - 19:14 7156
    • 게임존 사이트 변경 사항 안내
      9
      2026.02.26 - 01:07 8856 9
    • 소스자료는 직접 올려주세요
      2017.06.06 - 16:16 860
    582
    기타
    [Rust 공식문서 한국어 정리] 184. PartialOrd
    오뉴노노 2026.06.08 - 15:42 48
    581
    기타
    [Rust 공식문서 한국어 정리] 183. Ord
    오뉴노노 2026.06.08 - 15:42 42
    580
    기타
    [Rust 공식문서 한국어 정리] 182. Eq
    오뉴노노 2026.06.08 - 15:42 27
    579
    기타
    [Rust 공식문서 한국어 정리] 181. PartialEq
    오뉴노노 2026.06.08 - 15:42 33
    578
    기타
    [Rust 공식문서 한국어 정리] 180. TryFrom
    오뉴노노 2026.06.08 - 15:42 22
    577
    기타
    [Rust 공식문서 한국어 정리] 179. TryInto
    오뉴노노 2026.06.08 - 15:42 16
    576
    기타
    [Rust 공식문서 한국어 정리] 178. From
    오뉴노노 2026.06.08 - 15:39 20
    575
    기타
    [Rust 공식문서 한국어 정리] 177. Into
    오뉴노노 2026.06.08 - 15:39 14
    574
    기타
    [Rust 공식문서 한국어 정리] 176. AsRef
    오뉴노노 2026.06.08 - 15:39 12
    573
    기타
    [Rust 공식문서 한국어 정리] 175. Deref
    오뉴노노 2026.06.08 - 15:39 9
    572
    기타
    [Rust 공식문서 한국어 정리] 174. Default
    오뉴노노 2026.06.08 - 15:39 10
    571
    기타
    [Rust 공식문서 한국어 정리] 173. Clone
    오뉴노노 2026.06.08 - 15:38 9
    570
    기타
    [Rust 공식문서 한국어 정리] 172. Copy
    오뉴노노 2026.06.08 - 15:38 9
    569
    기타
    [Rust 공식문서 한국어 정리] 171. Drop
    오뉴노노 2026.06.08 - 15:38 5
    568
    기타
    [Rust 공식문서 한국어 정리] 170. Weak
    오뉴노노 2026.06.08 - 15:37 15
    567
    기타
    [Rust 공식문서 한국어 정리] 169. Arc
    오뉴노노 2026.06.08 - 15:37 4
    566
    기타
    [Rust 공식문서 한국어 정리] 168. Rc
    오뉴노노 2026.06.08 - 15:37 12
    565
    기타
    [Rust 공식문서 한국어 정리] 167. Box
    오뉴노노 2026.06.08 - 15:36 6
    564
    기타
    [Rust 공식문서 한국어 정리] 166. str
    오뉴노노 2026.06.08 - 15:36 7
    563
    기타
    [Rust 공식문서 한국어 정리] 165. String
    오뉴노노 2026.06.08 - 15:36 5
    562
    기타
    [Rust 공식문서 한국어 정리] 164. HashMap
    오뉴노노 2026.06.08 - 15:36 6
    561
    기타
    [Rust 공식문서 한국어 정리] 163. Vec
    오뉴노노 2026.06.08 - 15:35 4
    560
    기타
    [Rust 공식문서 한국어 정리] 162. Result
    오뉴노노 2026.06.08 - 15:35 6
    559
    기타
    [Rust 공식문서 한국어 정리] 161. Option
    오뉴노노 2026.06.08 - 15:35 4
    558
    기타
    [Rust 공식문서 한국어 정리] 160. Iterators
    오뉴노노 2026.06.08 - 15:35 5
    557
    기타
    [Rust 공식문서 한국어 정리] 159. Closures
    오뉴노노 2026.06.08 - 15:35 5
    556
    기타
    [Rust 공식문서 한국어 정리] 158. Trait Objects
    오뉴노노 2026.06.08 - 15:34 12
    555
    기타
    [Rust 공식문서 한국어 정리] 157. Lifetimes
    오뉴노노 2026.06.08 - 15:34 8
    554
    기타
    [Rust 공식문서 한국어 정리] 156. Cargo.lock
    오뉴노노 2026.06.08 - 15:34 8
    553
    기타
    [Rust 공식문서 한국어 정리] 155. Cargo.toml
    오뉴노노 2026.06.08 - 15:34 6
    552
    기타
    [Rust 공식문서 한국어 정리] 154. Workspaces
    오뉴노노 2026.06.08 - 15:34 12
    551
    기타
    [Rust 공식문서 한국어 정리] 153. Crates
    오뉴노노 2026.06.08 - 15:33 10
    550
    기타
    [Rust 공식문서 한국어 정리] 152. Modules
    오뉴노노 2026.06.08 - 15:33 10
    549
    기타
    [Rust 공식문서 한국어 정리] 151. Proc Macros
    오뉴노노 2026.06.08 - 15:32 10
    548
    기타
    [Rust 공식문서 한국어 정리] 150. Attribute Macros
    오뉴노노 2026.06.08 - 15:32 4
    547
    기타
    [Rust 공식문서 한국어 정리] 149. cfg
    오뉴노노 2026.06.08 - 15:32 8
    546
    기타
    [Rust 공식문서 한국어 정리] 148. assert
    오뉴노노 2026.06.08 - 15:31 6
    545
    기타
    [Rust 공식문서 한국어 정리] 147. panic
    오뉴노노 2026.06.08 - 15:27 10
    544
    기타
    [Rust 공식문서 한국어 정리] 146. Error
    오뉴노노 2026.06.08 - 15:24 15
    543
    기타
    [Rust 공식문서 한국어 정리] 145. Any
    오뉴노노 2026.06.08 - 15:22 12
    542
    기타
    [Rust 공식문서 한국어 정리] 144. Unpin
    오뉴노노 2026.06.08 - 15:19 12
    541
    기타
    [Rust 공식문서 한국어 정리] 143. Pin
    오뉴노노 2026.06.08 - 15:17 10
    540
    기타
    [Rust 공식문서 한국어 정리] 142. LazyLock
    오뉴노노 2026.06.08 - 15:14 9
    539
    기타
    [Rust 공식문서 한국어 정리] 141. OnceCell
    오뉴노노 2026.06.08 - 15:11 4
    538
    기타
    [Rust 공식문서 한국어 정리] 140. Atomic
    오뉴노노 2026.06.08 - 15:06 5
    537
    기타
    [Rust 공식문서 한국어 정리] 139. RwLock
    오뉴노노 2026.06.08 - 14:34 9
    536
    기타
    [Rust 공식문서 한국어 정리] 152. Modules
    오뉴노노 2026.06.08 - 14:00 9
    535
    기타
    [Rust 공식문서 한국어 정리] 151. Proc Macros
    오뉴노노 2026.06.08 - 14:00 9
    534
    기타
    [Rust 공식문서 한국어 정리] 150. Attribute Macros
    오뉴노노 2026.06.08 - 14:00 7
    533
    기타
    [Rust 공식문서 한국어 정리] 149. cfg
    오뉴노노 2026.06.08 - 14:00 10
    • 1 2 3 4 5 6 7 8 9 10 .. 12
    • / 12 GO
  • GAMEZONE
 GAMEZONE all rights reserved.
by OrangeDay