RPGXP 스크립트
2013.10.01 06:35

복권 스크립트

조회 수 1149 추천 수 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. 상점에서 아이템 능력치를 표시해주는 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1662 Votes0
    Read More
  2. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1820 Votes0
    Read More
  3. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2059 Votes0
    Read More
  4. 상점 메뉴 개조시킨 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1008 Votes0
    Read More
  5. 빠른 길찾기

    Date2013.09.30 CategoryRPGXP 스크립트 By휴리드 Views1342 Votes0
    Read More
  6. 부활 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views2772 Votes0
    Read More
  7. 부드러운화면이동

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2047 Votes0
    Read More
  8. 부드러운화면이동

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views2375 Votes0
    Read More
  9. 복권 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views930 Votes0
    Read More
  10. 복권 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1149 Votes0
    Read More
  11. 배틀미스트(전투중포그효과) 플러그인

    Date2015.10.26 CategoryRPGMV 플러그인 By파란별빛 Views547 Votes0
    Read More
  12. 밤낮 설정

    Date2013.10.01 CategoryRPGXP 스크립트 By Views996 Votes0
    Read More
  13. 발소리 재생 플러그인

    Date2015.12.28 CategoryRPGMV 플러그인 By러닝은빛 Views1655 Votes0
    Read More
  14. 발소리 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1732 Votes0
    Read More
  15. 반칸이동

    Date2010.07.18 CategoryRPGXP 스크립트 ByA.M.S Views2185 Votes0
    Read More
  16. 반칸이동

    Date2010.07.18 CategoryRPGXP 스크립트 ByA.M.S Views2448 Votes0
    Read More
  17. 미니맵 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1878 Votes0
    Read More
  18. 미니맵 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views2180 Votes0
    Read More
  19. 물가에가면 캐릭터를 반사시켜주는 스크립트

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views4494 Votes6
    Read More
  20. 물가에가면 캐릭터를 반사시켜주는 스크립트

    Date2007.12.02 CategoryRPGXP 스크립트 By창조도시 Views4995 Votes7
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 15 Next
/ 15






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

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