viewing paste Unknown #54027 | 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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
//  _______   __      ____    ____      __  __  ____    __  __    __   __ __      __   __  ____    _      ____       
// /__  __/  / /     / __ \      / __ \    / / / / /__  \  / / /_/ __/ /_ / // /     / /__/ / /__  \  / /__  / __ \  _____
//   / /    / /_    / /_/ /     / / / /   / / / / ____/ / / / __  /_  __// // /     / _  _ / ____/ / / // / / /_/ / / __  \
//  / /    / __ \  / ____/     / / / /   / / / / / __  / / / / /   / /   \_  /     / // /// / __  / /  __/ / ____/ / /  /_/
// / /    / / / / / /__       / /_/ /_  / /_/ / / /_/ / / / / /   / /   __/ /     / // /// / /_/ / / _ \  / /__   / /
///_/    /_/ /_/  \____/      \_______/ \____/  \____/ /_/ /_/   /_/    \__/     /_//_///  \____/ /_/ \_\ \____/ /_/
//=============================================================================
//
//   Gold Room Advance Script - Mining Gold for wealth - Please Leave Credit   \\
//=============================================================================
//POWERED by: rudolp
//[The Quality Maker]
//Time Finished :6:28 PM 6/7/2009
//Please Report any bug and suggestions.
//===== Compatible With: =================================================================
//= Any eAthena Version
//=============Gold Room Settings===================
//This should always be enable for a better Gold Room System.
//==================================================
//ordeal_1-2    mapflag noskill
ordeal_1-2  mapflag nomemo
ordeal_1-2  mapflag nobranch
ordeal_1-2  mapflag noloot 
ordeal_1-2  mapflag noexp
ordeal_1-2  mapflag nodrop
ordeal_1-2  mapflag novending
ordeal_1-2  mapflag nowarp
ordeal_1-2  mapflag nowarpto
ordeal_1-2  mapflag pvp
//ordeal_1-2    mapflag noreturn
//=================================================
 
ordeal_1-2,0,0,0    script  Gold Room   -1,{
 
OnInit:
//No. of Mine Guardian.
//For golden peko it is default to 100 and 4 seconds~2 seconds spawn rate.
    set .guardian,50;
 
//Type of guardian. 0 = normal 1 = extreme
    set .@guardiantype,0;
 
    if(.@guardiantype == 0){
        monster "ordeal_1-2",0,0,"Guard Pacific",1369,.guardian,""; 
    }else{
        monster "ordeal_1-2",0,0,"Guard Pacific",1369,.guardian,"";
    }
end;
OnNPCKillEvent:
//===== Configurations: ========================================================================
 
//Max gold can a player get after killing 1 golden peko (default 5 note:this will increase if luk bonus is enable).
    set .@maxgaingold,5;
 
//Apply gold penalty. 0 = no 1 = yes
    set .@penalty1,0;
 
//The Maximum no. of gold Penalty.
    set .@maxpenalty1,0;
 
//Apply speed & HP penalty. 0 = no 1 = yes 
    set .@penalty2,0;
 
//Gold limitation penalty must be enable
    set .@maxgold,9999;
 
//The maximum no. of hp penalty by %.
    set .@maxpenalty2,0;
 
//Enable luk bonus. 0=no 1=yes
    set .@lukbonus,0;
 
//If luk Bonus is enable,luk divider default 49 w/ 99 max parameter. Note: the quotient of your max parameter and .@lukdiv must not grater than 5 to avoid over mining.
    set .@lukdiv,49;
 
//Show Server Name. 0=no 1=yes
    set .@showservername,1;
 
//Name of your Server
    set .@servername$,"[The Quality Maker]";
 
//=========================================================================================
 
 
if (getmapxy(@mapname$,@mapx,@mapy,0) == -1) goto L_Finish;
if (@mapname$ == "ordeal_1-2"){
    set @bonus,0;
    set @deduction,0;
    set @gain,rand (.@maxgaingold);
 
//Luk bonus
    if (.@lukbonus != 0){
        set @bonus,readparam(bLuk)/.@lukdiv;
    }
 
//Gold Penalty
    if (.@penalty1 != 0){
        set @deduction,rand(.@maxpenalty1);
        if(@deduction == 0) set @deduction,1;   
    }
 
    set @gain, @gain + @bonus - @deduction;
    set gold, gold + @gain ;
 
//Displaying Gained Gold
    if(.@showservername != 0){
        if(gold%5 == 0){ //Show Server Name every 10 gold gain.
            dispbottom "===============Brought to you by===============";
            dispbottom "==============" + .@servername$ +"==============";
        }
    }
 
    if(@gain){
        dispbottom "-|You got: " +@gain+ " gold| - |Total: " +gold+ " gold|- ";
 
    }else{
        dispbottom "-|You got: NOTHING! |- ";
    }
 
 
 
    if (.@penalty2 != 0){
        if (gold >= .@maxgold/2 && gold <=.@maxgold/2+20){
             sc_start   SC_DECREASEAGI,240000,10;       
        }else if(gold >.@maxgold){
            percentheal (.@maxpenalty2*-1),(.@maxpenalty2*-1);
            heal 0,0; //For him to die
        }
    }
 
    if(paid == 0){
        mapannounce "ordeal_1-2"," x( "+strcharinfo(0)+" is a cheater!",bc_map;
        dispbottom "Go out you bastard!";
        set gold,0;
        warp "prontera", 172, 152;
    }
        end;
}
 
 
OnPCDieEvent: 
 
if (getmapxy(@mapname$,@mapx,@mapy,0) == -1) goto L_Finish;
if (@mapname$ == "ordeal_1-2"){
        dispbottom "Holy Shit you died!";
        dispbottom "All of your gold will gone!";
        set alive, 0;
        set paid, 0;
        end;
}
 
L_Finish:
end;
}
 
 
 
//===============================================
//warper
//===============================================
ordeal_1-2,154,156,5    script  Gold Miner  813,{
    mes "[Gold Miner]";
    if(gold >=50){
        goto wa;
    }
    mes "Want to go now?";
    mes "Your gold is just "+gold+" you can still get more.";
    end;
wa:
    mes "Want to go now?";
     if(select("Yes", "No") == 1) {
        // Old Part of the script
        set alive,1;
            warp "prontera", 156, 188;
        }
    end;
}
 
prontera,165,151,4  script  Gold Room#pront 813,{
    set @name$,"prontera";
    callfunc "goldmain";
}
 
aldebaran,133,116,6 script  Gold Room Warperer#alde 813,{
    set @name$,"aldebaran";
    callfunc "goldmain";
    end;
}
 
alberta,32,242,4    script  Gold Room Warperer#alb  813,{
    set @name$,"alberta";
    callfunc "goldmain";
    end;
}
payon,184,106,4 script  Gold Room Warperer#pay  813,{
    set @name$,"payon";
    callfunc "goldmain";
    end;
}
 
geffen,117,108,6    script  Gold Room Warperer#gef  813,{
    set @name$,"geffen";
    callfunc "goldmain";
    end;
}
 
function    script  goldmain    {
    if (getgmlevel() >= 90){
        mes "[Gold Room Warperer]";
    if(sex != 0){
        mes "Hello Sir what can I do for you?";
    }else{
        mes "Hello Maam what can I do for you?";
    }
 
    next;
    menu "Enter Mining Site",start,"Please end the mine Site. Now!",-,"Please Open the mine Site. Now!",G_open,"Nothing",C_s;
    next;
    mes "[Gold Room Warperer]";
    mapannounce "ordeal_1-2","Excuse me Miners.",bc_map;
    mes "Ok.";
    next;
    mapannounce "ordeal_1-2",strcharinfo(0) +" wants to end the Gold Room for a while",bc_map;
    mes "Just a second I will just ask them to";
    mes "go out in the mining site";
    next;
    mapannounce "ordeal_1-2","Please settle your things and move quitely",bc_map;
    mes "[Gold Room Warperer]";
    mes ".............";
    mes "........";
    next;
    mes "[Gold Room Warperer]";
    mes "Ok your done";
    set .opengoldroom,1;
    areawarp "ordeal_1-2",21,286,286,22,"prontera", 156, 105;
OnInit:
    .zeny = 200000;     // Entrance FEE for the room
    waitingroom "Hunting Gold Room",0;
    end;
    }
 
    if(.opengoldroom == 0){
        goto start;
    }else{
        mes "[Gold Room Warperer]";
        mes "Sorry!";
        mes "The Mining Site is endd.";
        end;
    }
G_open:
    mes "[Gold Room Warperer]";
    mes "Ok.";
    mes "Mining Site is Already Available.";
    announce " Gold Room is open for public!",bc_map;
    set .opengoldroom,0;
    end;
 
start:
    if ( alive == 0){
        set gold,0;
    }
        mes "[ ^C6A518Gold Room Warperer^000000 ]";
        mes "Sorry to disturb you,but I need to";
        mes "check if you're a bot.";
        mes "Please type the correct captcha:";
        .charSet$ = "0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ";
        .strLen = 4;        // Sets how many characters for the generated confirmation code.
        for (.@i = 0; .@i < .strLen; ++.@i)
            .@str$ += charat(.charSet$, rand(0, getstrlen(.charSet$)));
        mes "Captcha: ^C6A518"+ .@str$ +"^000000";
        next;
        input .@txt$;
        if (.@txt$ != .@str$) {
            mes "You have not inputted Correct.";
            mes "Captcha";
            next;
            atcommand "@kick "+ strcharinfo(0);
            end;
        }
    next;
    menu "To the Gold Room",-,"Exchange Gold",exchange,"Nothing",C_s;
    mes "[Gold Room Warperer]";
    mes "Hmm..";
    mes "It cost 100,000z";
        mes "Would you like to go now to the gold room?";
        if(select("Yes", "No") == 1) {
        if(@name$ == "prontera") savepoint "prontera", 172, 152;
        if(@name$ == "aldebaran") savepoint "aldebaran",154, 120;
        if(@name$ == "alberta") savepoint "alberta",32, 234;
        if(@name$ == "payon") savepoint "payon",184, 98;
        if(@name$ == "geffen") savepoint "geffen",124, 85;
        if (Zeny < 100000) goto nomoney;
        set Zeny, Zeny - 100000;
        set alive, 1;
        set paid, 1;
                warp "ordeal_1-2", 156, 155;
        
        }
        end;
nomoney:
    mes "[Gold Room Warperer]";
    mes "Sorry insufficient balance";
    end;
exchange:
    mes "[Gold Room Warperer]";
    mes "Hmm...let me see";
    mes "You have " +gold+ ".";
    if (gold == 0) goto nogold; 
    mes "Ok get this.";
    next;
        if (checkweight(969,gold) == 0) goto L_OverWeight;
    getitem 969, gold;
    set gold, 0;
    emotion ET_KIK;
    end;
L_OverWeight:
    mes "[Gold Room Warperer]";
    mes "Sorry your overweight";
    end;
nogold:
    end;
C_s:
    end;
}
 
 
//============================================================
 
//===========================================================
//========================================
//warps you may edit this one for your convenience
//========================================
ordeal_1-2,73,265,0 warp    ord500  1,1,prontera,156,188
ordeal_1-2,129,194,0    warp    ord501  1,1,prontera,156,188
ordeal_1-2,130,194,0    warp    ord502  1,1,prontera,156,188
ordeal_1-2,178,193,0    warp    ord503  1,1,prontera,156,188
ordeal_1-2,290,130,0    warp    ord504  1,1,prontera,156,188
ordeal_1-2,241,281,0    warp    ord505  1,1,prontera,156,188
ordeal_1-2,66,25,0  warp    ord506  1,1,prontera,156,188
ordeal_1-2,202,129,0    warp    ord509  1,1,prontera,156,188
ordeal_1-2,105,154,0    warp    ord510  1,1,prontera,156,188
 
//============Spawns=================
 
ordeal_1-2,0,0,0,0  monster Golden Pecopeco 1369,200,0,0,0
ordeal_1-2,0,0,0,0  monster Golden Pecopeco 1369,200,0,0,0
ordeal_1-2,0,0,0,0  monster Golden Pecopeco 1369,200,0,0,0
ordeal_1-2,0,0,0,0  monster Golden Pecopeco 1369,200,0,0,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,300,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,300,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,50,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,30,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,30,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,30,40000,20000,0
//ordeal_1-2,0,0,0,0    monster Golden Pecopeco 1369,20,40000,20000,0
Viewed 6146 times, submitted by Guest.