RPGXP 스크립트
2013.10.01 06:35

복권 스크립트

조회 수 1202 추천 수 0 댓글 5
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

실행 방법
이벤트->스크립트->bokgun = Bokgun.new
                                    bokgun.Bokgun1

 


#----------------------------------------------------------------------------------
#
#                                즉석 복권 스크립트 BY.스방
#
#----------------------------------------------------------------------------------
class Bokgun
  def Bokgun1
    a = rand(100)+1 #1등(1/100)2등(10/100)3등(30/100)4등(40/100)꽝(50/100)
    if a == 1 #1등 확률
      p "축하합니다. 1등 당첨입니다. 상금 30만원입니다."
      $game_party.gain_gold(300000)
    end
    if 2 < a and a < 11 #2등 확률
      p "축하합니다. 2등 당첨입니다. 상금 10만원입니다."
      $game_party.gain_gold(100000)
    end
    if 10 < a and a < 31 #3등 확률
      p "축하합니다. 3등 당첨입니다. 상품으로 네크리스 오브 레지스트가 있겠습니다."
      $game_party.gain_armer(88, 1)
    end
    if 39 < a and a < 51
      p "축하합니다. 4등 당첨입니다. 상품으로 풀 파워 엘릭서 50개가 있겠습니다."
      $game_party.gain_item(58, 50)
    end
    if 50 < a and a < 101
      p "안타깝습니다. 꽝입니다. 다시 도전해보세요 ^^"
    end
  end
end

?
  • ?
    Ruit 2013.10.13 00:15
    아이템이나 돈같은거 어떻게 바꾸나요??아니 코드는 어떻게아나요?
  • ?
    Ruit 2013.10.13 09:37
    아하 감사합니다
  • ?
    2013.10.13 04:47
    데이터베이스 아이템 번호입니다.
  • ?
    2013.10.15 03:27
    님이 만든거에여??
  • ?
    2013.10.24 08:20
    제가 만든거 아니에요. 알아서 수정하심이..

  1. 한글조합입력기(영어가능)

    Date2019.11.10 CategoryRPGXP 스크립트 By조규진1 Views946 Votes0
    Read More
  2. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP 스크립트 By심심치 Views1161 Votes0
    Read More
  3. Font Setup

    Date2016.07.22 CategoryRPGXP 스크립트 By운님 Views1641 Votes0
    Read More
  4. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP 스크립트 By부초 Views2043 Votes0
    Read More
  5. RPGXP ATB전투 시스템 예제(스크립트는 예제 안에 포함)

    Date2015.11.17 CategoryRPGXP 스크립트 ByMagNesium Views870 Votes0
    Read More
  6. 스테이터스,보수,골드,플레임 타임 삭제

    Date2015.06.02 CategoryRPGXP 스크립트 Byrpgmakingbot Views847 Votes0
    Read More
  7. 헤드 업 디스플레이 스크립트

    Date2015.01.30 CategoryRPGXP 스크립트 By 운 Views958 Votes0
    Read More
  8. 컬러 비트맵 타이틀 스크립트

    Date2015.01.20 CategoryRPGXP 스크립트 By 운 Views912 Votes1
    Read More
  9. 로고 스크립트

    Date2014.12.10 CategoryRPGXP 스크립트 By 운 Views1257 Votes1
    Read More
  10. 타이틀 로딩 스크립트

    Date2014.12.07 CategoryRPGXP 스크립트 By 운 Views1148 Votes0
    Read More
  11. 타이틀 스크립트

    Date2014.12.05 CategoryRPGXP 스크립트 By 운 Views1121 Votes0
    Read More
  12. 액알 스크립트

    Date2014.11.23 CategoryRPGXP 스크립트 By커비♥ Views1527 Votes1
    Read More
  13. 공포게임에 장비착용메뉴

    Date2014.08.24 CategoryRPGXP 스크립트 By 운 Views1506 Votes0
    Read More
  14. 얼굴표시/문장을 한글자씩 나타내주는 스크립트 (출처-히페리온)

    Date2014.06.22 CategoryRPGXP 스크립트 By시르카 Views1285 Votes0
    Read More
  15. 횡스크롤 점프 [버튼허용스위치추가]

    Date2014.06.01 CategoryRPGXP 스크립트 By 운 Views1722 Votes0
    Read More
  16. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP 스크립트 By천둥번들 Views1936 Votes0
    Read More
  17. 스텟찍기스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views1920 Votes3
    Read More
  18. 달리기스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views2391 Votes2
    Read More
  19. 8방향 이동스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views1827 Votes6
    Read More
  20. AraLab_MultiStartingPoint (다중 출발점 스크립트, 캐릭터 선택 스크립트) ver.0.2beta

    Date2014.01.21 CategoryRPGXP 스크립트 By 운 Views2065 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8


[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)