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 키입력 전체키 입력 스크립트 v4 by Cybersam 5 file 백호 2009.02.22 1947
460 키입력 Glitchfinder's Input Modules (XP/VX 공용) 2 Alkaid 2011.03.19 1952
459 이동 및 탈것 Super Simple Vehicle System Enhanced 8.0 by DerVVulfman 1 Alkaid 2010.12.12 1956
458 기타 [All RGSS] 윈도우 커서 숨기기/보이기 1 file Cheapmunk 2014.03.02 1956
457 기타 [신기술 체험] 오투잼 스크립트 7 file 백호 2009.02.22 1959
456 전투 KGC_BattlerEffect(버틀러 효과) 2 file 백호 2009.02.22 1959
455 저장 세이브 & 로드 화면 개조 스크립트 file 백호 2009.02.21 1962
454 메뉴 개별 메뉴 호출 단축키 스크립트 5 file 백호 2009.02.21 1965
453 HUD 맵 이름 뛰우기 10 WMN 2008.03.17 1966
452 상태/속성 KGC_StateIcon(스테이터스 아이콘 표시) 2 file 12345678 2010.02.03 1967
451 그래픽 MAWS: Modified Advanced Weather Script 1.2 by Agckuu Coceg 2 file Alkaid 2010.09.13 1969
450 기타 Project RGSS3 by joe5491 6 습작 2013.05.06 1969
449 저장 심플 세이브 로드(1개의 세이브 사용하기) 3 백호 2009.02.22 1971
448 메뉴 링 메뉴 Edited by Hypershadow180@rmxp.net 1 file 백호 2009.02.22 1975
447 스킬 스킬 레벨 스크립트 # 번역 진행중 6 빗자루씨 2010.02.11 1981
446 맵/타일 World Map 스크립트 1 file 백호 2009.02.21 1983
445 저장 Improved Save by gerrtunk 2 file Alkaid 2010.10.13 1983
444 저장 렉없는 자동세이브(중복임??) 4 캉쿤 2011.09.12 1986
443 장비 전투중에 장비변경 from RGSS Wiki 1 백호 2009.02.22 1988
442 기타 동료들이 기차처럼 줄줄 따라온다!? 7 file 백호 2009.02.21 1990
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