XP 스크립트

전에도 멀티넷플레이에 보면 로그인창에서

비밀번호칠때 그냥 숫자로 나왓던걸 보안해서

***** <-- 이렇게 나타내주는 스크립트입니다.
=========================================



Window_PassInput  여기에다가 덮어 쓰시길 바랍니다.

#==============================================================================
# ■ Window_ChatInput                          Originally created by: Cybersam
#------------------------------------------------------------------------------
#  Based on the Full-Keyboard Input script created by Cybersam.
#------------------------------------------------------------------------------
# Edited by Leansoft/Daffiie/Blue Elf
#==============================================================================

class Window_PassInput < Window_Base
 attr_accessor :text
 attr_accessor :text2
 attr_accessor :allow
 #--------------------------------------------------------------------------
 # ● Initializes chat input window.
 #-------------------------------------------------------------------------- 
 def initialize
  super(100, 300, 420, 48)
  self.contents = Bitmap.new(width - 32, height - 32)
  self.contents.font.size = 16
  self.contents.font.color = black_color
  self.opacity = 40
  @text = []
  @text2 = []
  @allow = false
  refresh
 end
 
 #--------------------------------------------------------------------------
 # ● Refreshes chat input window.
 #-------------------------------------------------------------------------- 
 def refresh
  @log = @text.to_s
  self.contents.clear
  self.contents.draw_text(0, -8, 640, 32, "Pass:")
  self.contents.draw_text(50, -16, 620, 48, @text2.to_s+"_")
 end
 
 #--------------------------------------------------------------------------
 # ● Refreshes chat input window.
 #-------------------------------------------------------------------------- 
 def add(char)
  if @text.size >= 80
    $game_system.se_play($data_system.buzzer_se)
  else
    @text.push(char.to_s)
    @text2.push("*")
    refresh
  end
 end 
 
 #--------------------------------------------------------------------------
 # ● Updates input chat window.
 #-------------------------------------------------------------------------- 
 def update
  if @allow == true
  refresh
  if Input.getkey(8)
    if @text.size == 0
      $game_system.se_play($data_system.buzzer_se)
    else
      @text.delete_at(-1)
      @text2.delete_at(-1)
      refresh
    end
  end
  if Input.getstate(16)
    add("A") if Input.getkey(65)
    add("B") if Input.getkey(66)
    add("C") if Input.getkey(67)
    add("D") if Input.getkey(68)
    add("E") if Input.getkey(69)
    add("F") if Input.getkey(70)
    add("G") if Input.getkey(71)
    add("H") if Input.getkey(72)
    add("I") if Input.getkey(73)
    add("J") if Input.getkey(74)
    add("K") if Input.getkey(75)
    add("L") if Input.getkey(76)
    add("M") if Input.getkey(77)
    add("N") if Input.getkey(78)
    add("O") if Input.getkey(79)
    add("P") if Input.getkey(80)
    add("Q") if Input.getkey(81)
    add("R") if Input.getkey(82)
    add("S") if Input.getkey(83)
    add("T") if Input.getkey(84)
    add("U") if Input.getkey(85)
    add("V") if Input.getkey(86)
    add("W") if Input.getkey(87)
    add("X") if Input.getkey(88)
    add("Y") if Input.getkey(89)
    add("Z") if Input.getkey(90)
  else
    add("a") if Input.getkey(65)
    add("b") if Input.getkey(66)
    add("c") if Input.getkey(67)
    add("d") if Input.getkey(68)
    add("e") if Input.getkey(69)
    add("f") if Input.getkey(70)
    add("g") if Input.getkey(71)
    add("h") if Input.getkey(72)
    add("i") if Input.getkey(73)
    add("j") if Input.getkey(74)
    add("k") if Input.getkey(75)
    add("l") if Input.getkey(76)
    add("m") if Input.getkey(77)
    add("n") if Input.getkey(78)
    add("o") if Input.getkey(79)
    add("p") if Input.getkey(80)
    add("q") if Input.getkey(81)
    add("r") if Input.getkey(82)
    add("s") if Input.getkey(83)
    add("t") if Input.getkey(84)
    add("u") if Input.getkey(85)
    add("v") if Input.getkey(86)
    add("w") if Input.getkey(87)
    add("x") if Input.getkey(88)
    add("y") if Input.getkey(89)
    add("z") if Input.getkey(90)
    add("5") if Input.getkey(53)
    add("6") if Input.getkey(54)
    add("7") if Input.getkey(55)
    add("8") if Input.getkey(56)
    add("9") if Input.getkey(57)
  end
 end
 end
end


================================================

이번엔  Window_Rpass  여기에다가 덮어씌워주세요

#==============================================================================
# ■ Window_ChatInput                          Originally created by: Cybersam
#------------------------------------------------------------------------------
#  Based on the Full-Keyboard Input script created by Cybersam.
#------------------------------------------------------------------------------
# Edited by Leansoft/Daffiie/Blue Elf
#==============================================================================

class Window_Rpass < Window_Base
 attr_accessor :text
 attr_accessor :text2
 attr_accessor :allow
 #--------------------------------------------------------------------------
 # ● Initializes chat input window.
 #-------------------------------------------------------------------------- 
 def initialize
  super(100, 300, 420, 48)
  self.contents = Bitmap.new(width - 32, height - 32)
  self.contents.font.size = 16
  self.contents.font.color = black_color
  self.opacity = 70
  @text = []
  @text2 = []
  @allow = false
  refresh
 end
 
 #--------------------------------------------------------------------------
 # ● Refreshes chat input window.
 #-------------------------------------------------------------------------- 
 def refresh
  @log = @text.to_s
  self.contents.clear
  self.contents.draw_text(0, -8, 640, 32, "Pass:")
  self.contents.draw_text(50, -16, 620, 48, @text2.to_s+"_")
 end
 
 #--------------------------------------------------------------------------
 # ● Refreshes chat input window.
 #-------------------------------------------------------------------------- 
 def add(char)
  if @text.size >= 80
    $game_system.se_play($data_system.buzzer_se)
  else
    @text.push(char.to_s)
    @text2.push("*")
    refresh
  end
 end 
 
 #--------------------------------------------------------------------------
 # ● Updates input chat window.
 #-------------------------------------------------------------------------- 
 def update
  if @allow == true
  refresh
  if Input.getkey(8)
    if @text.size == 0
      $game_system.se_play($data_system.buzzer_se)
    else
      @text.delete_at(-1)
      @text2.delete_at(-1)
      refresh
    end
  end

  if Input.getstate(16)
    add("A") if Input.getkey(65)
    add("B") if Input.getkey(66)
    add("C") if Input.getkey(67)
    add("D") if Input.getkey(68)
    add("E") if Input.getkey(69)
    add("F") if Input.getkey(70)
    add("G") if Input.getkey(71)
    add("H") if Input.getkey(72)
    add("I") if Input.getkey(73)
    add("J") if Input.getkey(74)
    add("K") if Input.getkey(75)
    add("L") if Input.getkey(76)
    add("M") if Input.getkey(77)
    add("N") if Input.getkey(78)
    add("O") if Input.getkey(79)
    add("P") if Input.getkey(80)
    add("Q") if Input.getkey(81)
    add("R") if Input.getkey(82)
    add("S") if Input.getkey(83)
    add("T") if Input.getkey(84)
    add("U") if Input.getkey(85)
    add("V") if Input.getkey(86)
    add("W") if Input.getkey(87)
    add("X") if Input.getkey(88)
    add("Y") if Input.getkey(89)
    add("Z") if Input.getkey(90)
    add("^") if Input.getkey(54)
  else
    add("a") if Input.getkey(65)
    add("b") if Input.getkey(66)
    add("c") if Input.getkey(67)
    add("d") if Input.getkey(68)
    add("e") if Input.getkey(69)
    add("f") if Input.getkey(70)
    add("g") if Input.getkey(71)
    add("h") if Input.getkey(72)
    add("i") if Input.getkey(73)
    add("j") if Input.getkey(74)
    add("k") if Input.getkey(75)
    add("l") if Input.getkey(76)
    add("m") if Input.getkey(77)
    add("n") if Input.getkey(78)
    add("o") if Input.getkey(79)
    add("p") if Input.getkey(80)
    add("q") if Input.getkey(81)
    add("r") if Input.getkey(82)
    add("s") if Input.getkey(83)
    add("t") if Input.getkey(84)
    add("u") if Input.getkey(85)
    add("v") if Input.getkey(86)
    add("w") if Input.getkey(87)
    add("x") if Input.getkey(88)
    add("y") if Input.getkey(89)
    add("z") if Input.getkey(90)
  end
 end
 end
end

여기까지입니다 ^^ 잘 넣으셧다면  패스워드를 **** 이렇게 표시 가됄겁니다.

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '1'
  • ?
    칼리아 2010.09.06 07:09

    쓰었는데 오류표시도 나고 아무것도 안뜨는 1인


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
461 기타 [신기술 체험] 오투잼 스크립트 7 file 백호 2009.02.22 1959
460 기타 [신기술 체험] 빠른 애니매이션 1 file 백호 2009.02.22 1201
459 기타 [신기술 체험] 레이싱 스크립트 8 file 백호 2009.02.22 2185
458 기타 [신기술 체험] 마우스 사용 심플액션 7 file 백호 2009.02.22 2467
457 기타 [신기술 체험] RM포트리스 4 file 백호 2009.02.22 1428
456 기타 [신기술 체험] 윈도우 은행시스템 12 file 백호 2009.02.22 2089
455 기타 [신기술 체험] 추가, 수정 심플액션 4 file 백호 2009.02.22 1790
454 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
453 아이템 Additional Item Drop by SephirothSpawn (SDK호환) 1 백호 2009.02.22 891
452 아이템 Easy Item & Gold Gain by SephirothSpawn (SDK호환) 백호 2009.02.22 880
451 기타 NPC Details Window by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 1209
450 전투 랜덤 전투음악 by Fomar0153@rmxp.org 1 백호 2009.02.22 1008
449 메뉴 CogWheel Plug'n'Play Menu Bar by DerVVulfman@rmxp.org 2 백호 2009.02.22 1222
448 기타 Quick Animations by SephirothSpawn (SDK호환) 백호 2009.02.22 851
447 기타 Introduction & optional Splash 2.1 by SephirothSpawn (SDK호환) 1 백호 2009.02.22 860
446 기타 SG_Transfer Player Music Fix v2 by sandgolem (SDK호환) 1 백호 2009.02.22 824
445 저장 SG_Broken Save File Fix by sandgolem (SDK호환) 1 백호 2009.02.22 1068
444 메뉴 1-Scene CMS 1.16 by LegACy (SDK호환) 3 file 백호 2009.02.22 1564
443 장비 SIBruno's Advanced Equip Screen v2 file 백호 2009.02.22 1246
442 기타 몬스터도감 - 개량형 ? 7 file 백호 2009.02.22 2883
Board Pagination Prev 1 ... 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ... 52 Next
/ 52