viewing paste Unknown #15551 | 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
// ------------------------------------
// Lotti Gurl
// [ Modified Version ] NubDes
// SSRO TEAM
// ------------------------------------
 
prontera,135,171,6  script  Bebang's Lotti  408,{
 
set .@urnpcs$,"[ Aling Bebang ]";
 
if(Weight >= MaxWeight/2) goto Low;
menu "Deal me in!",L_Deal,"Explanation",L_Explan,"Nothing.",L_Cancel;
 
L_NoZeny:
    mes .@urnpcs$;
    mes "Are you kidding me?";
    close;
 
L_Deal:
    if(Weight >= MaxWeight/2) goto Low;
    if (Zeny < 200000) goto L_NoZeny;
    //mes " ";
    set Zeny,Zeny-100000;
    //delitem 7608,1;
    set .@Total,25;
    //<%>,<ItemID>,<Amount>
    setarray .@P1[0],.1,25129,1;        // Costume Solar God Helm - 0.1%
    setarray .@P2[0],1,25100,50;    // Donation Coin - 0.1%
    setarray .@P3[0],.1,5374,1;         // Gigantic Baphomet Horn - 0.1%
    setarray .@P4[0],.1,5518,1;         // Large Baphomet Horn - 0.1%
    setarray .@P4[0],.1,5013,1;         // LKH - 0.1%
    setarray .@P5[0],5,7619,1;      // Enriched Elu 3%
    setarray .@P6[0],5,7620,1;      // Enriched Ori 3%
    setarray .@P7[0],5,12210,1;     // Bubble Gum 5%
    setarray .@P8[0],5,14545,1;     // 300% Manual 5%
    setarray .@P9[0],40,12043,1;    // Str + 3 10%
    setarray .@P10[0],40,12048,1;   // Int + 3 10%
    setarray .@P11[0],40,12053,1;   // Vit + 3 10%
    setarray .@P12[0],40,12058,1;   // Agi + 3 10%
    setarray .@P13[0],40,12063,1;   // Dex + 3 10%
    setarray .@P14[0],80,7227,2;    // TCG Card 80% (Dummy)
    setarray .@P15[0],80,7227,1;    // TCG Card 80% (Dummy)
    setarray .@P16[0],95,25118,5;   // Grape Juice 85% (Dummy)
    setarray .@P17[0],95,25118,5;   // Grape Juice 85% (Dummy)
    setarray .@P18[0],90,678,1;     // poison bottle 90% (Dummy)
    setarray .@P19[0],2,14003,1;    // coat 90% (Dummy)
    setarray .@P20[0],95,656,2;     // Awakening Potion 95% (Dummy)
    setarray .@P21[0],95,656,2;     // Awakening Potion 95% (Dummy)
    setarray .@P22[0],95,7227,2;    // WoE White Potion 95% (Dummy)
    setarray .@P23[0],95,7227,2;    // WoE White Potion 95% (Dummy)
    setarray .@P24[0],95,7227,1;    // WoE White Potion 95% (Dummy)
    setarray .@P25[0],95,7227,1;    // WoE White Potion 95% (Dummy)
    setarray .@P26[0],95,25118,5;   // WoeE Blue Potion 95% (Dummy)
    setarray .@P27[0],95,25118,5;   // WoeE Blue Potion 95% (Dummy)
    setarray .@P28[0],95,25118,5;   // WoeE Blue Potion 95% (Dummy)
    setarray .@P29[0],95,25118,5;   // WoeE Blue Potion 95% (Dummy)
    setarray .@Default[0],25144,2// if no Reward given (Bebang's Ticket will be the default) at 100%
    set .@i, rand(1,.@Total);
    if (rand(1,100) > getd(".@P"+.@i+"[0]"))
    {
        for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
        {
            getitem .@Default[.@j], .@Default[.@j+1];
            if(!.@k[0])
                setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
        }
    }
    else{
        for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
        {
            getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
            if (!.@k[0])
            {
                set .@gz,.@i;
                setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
                break;
            }
        }
    }
    if(1<=.@gz&&.@gz<=4)
        announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;
        specialeffect2 18;
    end;
 
//L_Whatodo:
//switch(select("Continue:Stop")) {
//  case 1:
//      goto L_Deal;
//  case 2:
//      mes .@urnpcs$;
//      mes "Are you that kind of poor?!";
//      mes "Ok, Goodbye..";
//      close;
//  }
 
L_Explan:
    mes .@urnpcs$;
    mes "Hello Sir! Are you out";
    mes "shopping in the city?!";
    next;
    mes .@urnpcs$;
    mes "I'm Lotti! I'll exchange cool";
    mes "random prizes for every";
    mes "^ff0000200,000^000000.";
    next;
    mes .@urnpcs$;
    mes "Our Grand prize is:";
    mes "^ff0000Solar God Helm(Costume)^000000";
    mes "Special prizes are:";
    mes "^ff0000Gigantic Baphomet Horns^000000";
    mes "^ff0000Large Baphomet Horns^000000";
    mes "and ^ff0000Donation Coins(50PCS)^000000";
    next;
    mes .@urnpcs$;
    mes "You can still get random item";
    mes "if you failed to get the grand";
    mes "prize and special prizes.";
    close;
    
L_Cancel:
    mes .@urnpcs$;
    mes "Ok, come back when you got enough money..";
    close;
 
Low:
    mes .@urnpcs$;
    mes "You are Overweight!";
    close;
OnInit:
    waitingroom "Aling Bebang",0;
    end;
}
Viewed 573 times, submitted by Guest.