게임강의
라그나로크 분류

[라그나로크] 자동볼록거울, 월드드랍.

컨텐츠 정보

본문

1. 오토볼록거울
아이템없이 맵에 가면 자동으로 보스위치 보이는 스크립트입니다.
신규맵은 추가 해주시면 됩니다.

- script 볼록거울 -1,{
   
onpcloadmapevent:
    sc_start sc_bossmapinfo,600000,0;
    end;
   
oninit:
    setarray  .maps$  ,    "ant_d02_i","ice_dun03","sp_rudus","sp_rudus3","amicitia2","nif_dun02","ve_fild01","ve_fild02","ra_fild03","ra_fild04","pay_fild10","moc_fild17","moc_fild22","mjolnir_04","xmas_fild01","gef_fild03","gef_fild10","xmas_dun02","tur_dun04","treasure02","thor_v03","teg_dun01","moc_pryd04","moc_pryd06","moc_prydn2","lou_dun03","lhz_dun02","kh_dun02","jupe_core","iz_dun05","in_sphinx5","gon_dun03","gld_dun01","gld_dun01_2","gld2_pay","gld_dun02","gld_dun02_2","gld2_ald","gld_dun03","gld_dun03_2","gld2_prt","gld_dun04","gld_dun04_2","gld2_gef","gl_chyard","gl_chyard_","gef_dun01","gef_dun02","ein_dun02","dic_dun02","dic_dun03","dew_dun01","c_tower3_","bra_dun02","beach_dun","ayo_dun02","anthell02","ama_dun03","abyss_03","abbey02","abbey03","bra_dun02","gl_cas01_","ein_dun03","mag_dun03","odin_past","abyss_04","tur_d04_i","pay_d03_i","ice_d03_i","gef_d01_i","iz_d05_i","ein_d02_i","com_d02_i","prt_mz03_i","teg_dun02","rockmi1","ra_san05","prt_sewb4","prt_maze03","pay_dun04","odin_tem03","mosk_dun03";
    set        .lens  ,    getarraysize(.maps$)                                  ;
    for(set(.a,0);.a<.lens;set(.a,.a+1)) {
        setmapflag .maps$[.a],    mf_loadevent ;
        set .tmp$  ,.tmp$+.maps$[.a]+",";
    }
}

2.월드드랍.
저는 캐쉬도 금화등 주화로 드랍이 아니라 자동드랍으로 설정해뒀습니다.
주화로 획득하고 싶으면 아이템번호만 바꿔주시면 되요.

prontera,1,1,1 script cashmob -1,{
    end;
OnNPCKillEvent:
if(getmonsterinfo(killedrid,MOB_LV) >= 1 && getmonsterinfo(killedrid,MOB_LV) <= 50) goto cashmob1;
if(getmonsterinfo(killedrid,MOB_LV) >= 51 && getmonsterinfo(killedrid,MOB_LV) <= 150) goto cashmob2;
if(getmonsterinfo(killedrid,MOB_LV) >= 151 && getmonsterinfo(killedrid,MOB_LV) <= 250) goto cashmob3;
close;

cashmob3:

            if (rand(1000) <= 5) goto getgold; // 0.5%
            if (rand(1000) <= 10) goto getsilver; // 1
            if (rand(1000) <= 30) goto getcooper; // 3
if (rand(1000) <= 15) goto zer; // 제르늄
            if (rand(1000) <= 10) goto sha; // 쉐도우데오콘
// if (rand(1000) <= 10) goto money; // 낡은 돈주머니
end;

cashmob2:
            if (rand(1000) <= 3) goto getgold; // 0.3
            if (rand(1000) <= 5) goto getsilver; // 0.5
            if (rand(1000) <= 20) goto getcooper; // 2
if (rand(1000) <= 5) goto zer;
            if (rand(1000) <= 5) goto sha;
// if (rand(1000) <= 5) goto money; // 낡은 돈주머니
end;

cashmob1:
            if (rand(1000) <= 1) goto getgold; // 0.1%
            if (rand(1000) <= 2) goto getsilver; // 0.2
            if (rand(1000) <= 5) goto getcooper; // 0.5
if (rand(1000) <= 3) goto zer;
            if (rand(1000) <= 3) goto sha;
end;

  zer:
        getitem 25730,5;
        dispbottom "제르늄 원석(5)을 획득했습니다";
        end;
  sha:
        getitem 25728,5;
        dispbottom "쉐도우데오콘 원석(5)을 획득했습니다";
        end;

  money:
        getitem 22876,1;
        dispbottom "낡은 돈주머니를 획득했습니다";
        end;

    getgold:
        set #CASHPOINTS,#CASHPOINTS +300;
        dispbottom "300 캐쉬를 획득했습니다";
    end;
 
    getsilver:
        set #CASHPOINTS,#CASHPOINTS +200;
        dispbottom "200 캐쉬를 획득했습니다";
    end;
 
    getcooper:
        set #CASHPOINTS,#CASHPOINTS +100;
        dispbottom "100 캐쉬를 획득했습니다";
    end;
 
}

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 484 / 1 페이지
번호
제목
이름

강의실

🏆 포인트 랭킹 TOP 10
순위 닉네임 포인트
1 no_profile 타키야겐지쪽지보내기 자기소개 아이디로 검색 전체게시물 91,144
2 no_profile 라프텔쪽지보내기 자기소개 아이디로 검색 전체게시물 51,320
3 no_profile 동가리쪽지보내기 자기소개 아이디로 검색 전체게시물 49,630
4 서번트쪽지보내기 자기소개 아이디로 검색 전체게시물 36,011
5 no_profile 불멸의행복쪽지보내기 자기소개 아이디로 검색 전체게시물 31,232
6 no_profile 보거스쪽지보내기 자기소개 아이디로 검색 전체게시물 30,118
7 no_profile 검은고양이쪽지보내기 자기소개 아이디로 검색 전체게시물 29,873
8 no_profile 닥터스쪽지보내기 자기소개 아이디로 검색 전체게시물 29,010
9 no_profile Revolution쪽지보내기 자기소개 아이디로 검색 전체게시물 28,199
10 no_profile 호롤롤로쪽지보내기 자기소개 아이디로 검색 전체게시물 16,580
알림 0