viewing paste Unknown #307 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
prontera,147,154,5  script  Mining Engineer 848,{
 
mes "Hello " + strcharinfo(0) + ",";
mes "Welcome to the Mining Company Founded By: ^880000Intel^000000";
next;
switch(select("Rent Mining Items:I'm Not Yet Ready:Mining Information"))    {
 
    case 3:     
        mes "Mining Drops and Rates :";
        mes "Bronze Bar : 10%";
        mes "Phracon and Emvertracon: 45%";
        mes "Elunium and Oridecon: 25%";
        mes "Enriched Elu and Enriched Ori: 3%";
        next;
        mes "You have 1 Hour to Mine and you need Mining Hat for the mining to work.";
        close;
 
    case 2:
        mes "Ok ~ See Ya Around";
        close;
 
    case 1:
        next;
        if (countitem(6010)<1) {
        mes "Would You Like to Rent Mining Items ?";
        if( select( "Yes:No" ) == 1)
        rentitem 6010, 3600;
        next; 
}
        mes "Do you want to warp to the mining field right now?";
        mes "Warping will cost 5,000,000Z";
 
        if( select( "Yes:No" ) == 2)
        goto L_exit;
 
        if( Zeny < 5000000 ) {
            mes "Sorry, You Don't Have Enough Zeny.";
            close; 
}
 
attachnpctimer strcharinfo(0);
initnpctimer;
callfunc("MiningTimer");
 
warp "ordeal_1-1",149,158;
end;
 
OnTimer3600000:
    warp "SavePoint", 0, 0;
OnTimerQuit:
    stopnpctimer;
    set mining_start, 0;
    end;
 
L_exit:
    mes "Ok, See Ya";
    close;
}
 
 
function    script  Minner  {
 
if(getarg(0) == 2) {
 
    undisguise;
 
    if(strcharinfo(3) == "ordeal_1-1")
        warp "SavePoint", 0, 0;
    end;
}
 
if(getarg(0) == 1 && strcharinfo(3) == "ordeal_1-1") {
 
    if(getequipid(4) != 6010 || getequipid(1) != 5031)
        end;
 
    if(rand(100) < 45)
        getitem 1010, 1;
 
    if(rand(100) < 45)
        getitem 1011, 1;
 
    if(rand(100) < 25)
        getitem 984, 1;
 
    if(rand(100) < 25)
        getitem 985, 1;
 
    if(rand(100) < 3)
        getitem 7619, 1;
 
    if(rand(100) < 3)
        getitem 7620, 1;
 
    if(rand(100) < 10)
        getitem 20003, 1;
 
    specialeffect2 154;
    end;
}
 
bonus bAspd, -30;
bonus bCritical, 100;
bonus bAtkRate, -100;
 
if(getequipid(1) == 5031)
    disguise 1169;
else
    undisguise;
 
return;
}
 
-   script  Minnerx -1,{
 
OnDo:
    callfunc "Minner",1;
    end;
 
OnLill:
    set .@t,1;
 
OnInit:
    if(!.@t)
        set .@t,100;
 
    monster "ordeal_1-1",0,0,"--ja--",1907,.@t,"Minnerx::OnLill";
    end;
}
 
//=========== TIMER SHOW ====================
ordeal_1-1,149,149,5    script  Mining Time Limit   837,{
 
mes "^66CCFF[ Mining Area ]^000000";
mes "";
mes "Mining Time Limit:";
mes "^FF0000" + mine_day$ + "/" + mine_month$ + "/" + mine_year$ + "  " + mine_hour$ + ":" + mine_minute$ + "^000000";
mes "If you want to stop mining just remove all mining items in your inventory.";
close;
}
//===========================================
 
 
 
function    script  MiningTimer {
 
 
setarray .@daymonth[0], 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31;
 
set mine_minute$, ( (gettime(2) < 10) ? "0" + gettime(2) : "" + gettime(2) );
 
if((gettime(3)+1) == 24)
    set mine_hour$, "00";
else if((gettime(3)+1) < 10)
    set mine_hour$, "0" + (gettime(3)+1);
else
    set mine_hour$, "" + (gettime(3) + 1);
 
if( mine_hour$ == "00")
    set mine_day$, "" + (gettime(5) + 1);
else
    set mine_day$, "" + gettime(5);
 
if( atoi(mine_day$) > .@daymonth[gettime(6)-1])
    set mine_day$, "1";
 
if( mine_day$ == "1" )
    set mine_month$, "" + (gettime(6) + 1);
else
    set mine_month$, "" + gettime(6);
 
if( mine_month$ == "13" ) {
    set mine_month$, "1";
    set mine_year$, "" + (gettime(7) + 1);
}
else
    set mine_year$, "" + gettime(7);
return;
}
 
 
ordeal_1-1  mapflag loadevent
ordeal_1-1  mapflag noskill
ordeal_1-1  mapflag nowarp
ordeal_1-1  mapflag nowarpto
ordeal_1-1  mapflag noteleport
ordeal_1-1  mapflag nosave  SavePoint
ordeal_1-1  mapflag noteleport
ordeal_1-1  mapflag novending
ordeal_1-1  mapflag noreturn
ordeal_1-1  mapflag nomemo
ordeal_1-1  mapflag nobranch
Viewed 868 times, submitted by Guest.