// ------------------------------------
// 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;
}