XP 스크립트

사용법은 저도 잘 몰라요^^

 

 

 

 

 

# ▼▲▼ XRXS36. 숍·변동시장 ▼▲▼
# by 앵아 재흙

#==============================================================================
# ■ Interpreter
#==============================================================================

class Interpreter
  #--------------------------------------------------------------------------
  # ◇ 아이템의 시세를 설정
  #--------------------------------------------------------------------------
  def command_item_quote(id, percent)
    $data_items[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 무기 의 시세를 설정
  #--------------------------------------------------------------------------
  def command_weapon_quote(id, percent)
    $data_weapons[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 방어구의 시세를 설정
  #--------------------------------------------------------------------------
  def command_armor_quote(id, percent)
    $data_armors[id].quotation_percent = percent
  end
end

module RPG
#==============================================================================
# ■ RPG::Item
#==============================================================================
class Item
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end
#==============================================================================
# ■ RPG::Weapon
#==============================================================================
class Weapon
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end
#==============================================================================
# ■ RPG::Armor
#==============================================================================
class Armor
  attr_accessor :quotation_percent
  #--------------------------------------------------------------------------
  # ● 가격
  #--------------------------------------------------------------------------
  def price
    # 초기화
    @quotation_percent = 100 if @quotation_percent.nil?
    # 값을 돌려준다
    return @price * @quotation_percent / 100
  end
end

end

 

Who's 캉쿤

?

배고파요ㅠㅜ

전 댓글을 먹고 살아요ㅠㅜ

댓글 하나만요ㅠㅜ

Comment '4'
  • ?
    겨울별 2011.12.10 11:16

    아이템의 경우 이벤트 스크립트로

    $data_items[아이템 번호].quotation_percent = 몇 %

    이렇게 설정하는거 같은데요?

    아무튼 감사합니다.

  • ?
    [아마추어] 2012.02.01 19:34

    사용법을 자신도 모른체 올리는건 좀그런데요..최소한의 신뢰를 주는게 좋다고생각하네요 ㅎ

  • ?
    게임애호가 2014.02.08 23:48
    사용법 알아내신분 댓글좀 올려주세요
  • ?
    게임애호가님 축하합니다.^^ 2014.02.08 23:48
    포인트 팡팡!에 당첨되셨습니다.
    게임애호가님은 2포인트를 보너스로 받으셨습니다.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
641 메뉴 Ring menu edit (Non-SDK ver.) Alkaid 2010.09.08 1538
640 이동 및 탈것 점프 높이를 자유자제로 조절하는 스크립트!! 8 file 백호 2009.02.21 1539
639 이동 및 탈것 Maplinks - 맵연결을 쉽게 하기 1 백호 2009.02.22 1541
638 메시지 UCoder's Message System by Mr.Mo file Alkaid 2010.10.05 1542
637 넷플2.0(펌) 1 오동훈 2008.02.25 1543
636 스크립트 호출 명령어 통합버전 / Version 2.21 / 8 WMN 2008.04.06 1543
635 기타 디버그 윈도우 강화! 3 file 백호 2009.02.21 1550
634 기타 Trailing Characters ver.1 by SephirothSpawn 6 file 백호 2009.02.22 1551
633 기타 RM2kXP file 습작 2014.03.17 1551
632 전투 버틀러 색조 변경 5 file 백호 2009.02.21 1552
631 저장 Advanced Save System Edit (현재 맵을 보여주지 않음) file 백호 2009.02.22 1557
630 저장 Chaos Project Save Layout 1.4 by Fantasist, Blizzard file Alkaid 2010.10.08 1558
629 기타 데미지 출력 스크립트 예제 9 file 백호 2009.02.22 1559
628 기타 Advanced Gold Display by Dubealex (돈 액수를 세자리씩 끊어 표기) 2 Alkaid 2010.11.18 1559
627 그래픽 Composite Window Skins by PK8 (XP/VX/VXA) Alkaid 2012.08.26 1559
626 이동 및 탈것 텔레포트 마나소비량 수정하기 3 지존!! 2010.07.22 1563
625 메뉴 1-Scene CMS 1.16 by LegACy (SDK호환) 3 file 백호 2009.02.22 1564
624 메뉴 Star Ocean 3 형식으로 스테이터스 화면 변경 1 file 백호 2009.02.21 1570
623 메뉴 스테이터스 화면 from Harts Horn 2 백호 2009.02.22 1571
622 그래픽 Weather Script(버전 불명) by ccoa 1 file Alkaid 2010.09.08 1571
Board Pagination Prev 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 52 Next
/ 52