XP 스크립트

http://www.gamebaker.com/rmxp/scripts/hide-free-item-cost.htm
  아이템의 가격이 0일 경우, 가격을 표시하지 않습니다.  SG Artifact Colors를 같이 사용할 경우 이 스크립트가 Artifact Colors아래에 들어가야 함.


#=============================================================================
# ** SG Hide Free Item Cost
#=============================================================================
# sandgolem
# Version 2
# 20.05.06
#=============================================================================
#
# To temporarily disable it in a specific shop, use this before it:
#$sg_shop_show_free = true
#
#=============================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# but under the default scripts and the SDK if you're using it. This needs
# to be above any that alias Window_ShopBuy's draw_item
#
# SG Artifact Colors compatability: Place Hide Free Item Cost anywhere under it.
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#=============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------

begin
  SDK.log("SG Hide Free Item Cost", "Sandgolem", 2, "20.05.06")
  if SDK.state("SG Hide Free Item Cost") != true
    @sg_hidefree_disabled = true
  end
  rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if @sg_hidefree_disabled != true

class Window_ShopBuy < Window_Selectable
 
  def draw_item(index)
    item = @data[index]
    case item
    when RPG::Item
      number = $game_party.item_number(item.id)
    when RPG::Weapon
      number = $game_party.weapon_number(item.id)
    when RPG::Armor
      number = $game_party.armor_number(item.id)
    end
#------------------------------------------------------------------------------
# For compatability with SG Artifact Colors
#------------------------------------------------------------------------------
    if item.price <= $game_party.gold and number < 99
      if $sg_artifact_colors     
        self.contents.font.color = sg_artifact_colors(item)
      else
        self.contents.font.color = normal_color
      end
    else
      if $sg_artifact_colors
        self.contents.font.color = sg_artifact_colors(item,1)
      else
        self.contents.font.color = disabled_color
      end
    end
#------------------------------------------------------------------------------
    x = 4
    y = index * 32
    rect = Rect.new(x, y, self.width - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(item.icon_name)
    opacity = self.contents.font.color == normal_color ? 255 : 128
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
    self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
#------------------------------------------------------------------------------
# Begin SG Hide Free Item Cost edit
#------------------------------------------------------------------------------
    if item.price >= 1
      self.contents.draw_text(x + 240, y, 88, 32, item.price.to_s, 2)
    elsif $sg_shop_show_free
      self.contents.draw_text(x + 240, y, 88, 32, item.price.to_s, 2)
    end
#------------------------------------------------------------------------------
# End SG Hide Free Item Cost
#------------------------------------------------------------------------------
  end
end

class Scene_Shop
 
  alias sandgolem_hidefree_sceneshop_main main
 
  def main
    sandgolem_hidefree_sceneshop_main
    if $sg_shop_show_free
      $sg_shop_show_free = nil
    end
  end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
501 온라인 광넷[ 광땡 온라인 + 넷플레이 ] 62 - 하늘 - 2009.08.02 9003
500 기타 광물캐기 스크립트 1 file 백호 2009.02.22 1850
499 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1776
498 이동 및 탈것 그래픽 변경 데쉬 3 file 백호 2009.02.22 2502
497 이동 및 탈것 그래픽의 크기로 좁은길은 못지나가게한다. 7 file 백호 2009.02.21 1816
496 이동 및 탈것 그림자 스크립트 13 file 백호 2009.02.22 3545
495 이동 및 탈것 금금님 요청 대쉬 1 백호 2009.02.22 1384
494 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4315
493 기타 기본설정 강화ㄴ 1 백호 2009.02.21 1047
492 스킬 기술문서(스킬 습득 아이템) 7 ok하승헌 2010.02.18 2132
491 이동 및 탈것 기차스크립트 6 백호 2009.02.21 1757
490 전투 깔끔한형식의 Asan'Tear배틀시스탬 4 file 콩밥 2010.09.29 4124
489 넷플2.0(펌) 1 오동훈 2008.02.25 1543
488 넷플2.0(펌) 2번째 2 오동훈 2008.02.25 1498
487 넷플2.0(펌) 3번째 4 오동훈 2008.02.25 1303
486 HUD 넷플레이 HUD표시 2 file 백호 2009.02.22 3094
485 메뉴 넷플레이 업그레이드됀 메뉴 스크립트 4 백호 2009.02.22 2040
484 온라인 넷플레이1.7.0+abs5.5+한챗 49 쀍뛝쒧 2009.01.24 7289
483 기타 능력치 무한대 스크립트 (따로 넣을필요없음) 2 백호 2009.02.21 1027
482 능력치 올리기 스크립트 21 file 아방스 2007.11.09 3451
Board Pagination Prev 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 ... 52 Next
/ 52