scythero,110,84,2 script Lotti Girl 113,{
mes "[Lotti Girl]";
mes "It costs "+.Cost[1]+"x "+getitemname(.Cost[0])+" to play.";
if (countitem(.Cost[0]) < .Cost[1]) close;
next;
if(select("Deal me in!:No way...")==2) close;
mes "[Lotti Girl]";
mes "Here we go...";
progressbar "",2;
delitem .Cost[0], .Cost[1];
set
[email protected], rand(1,.Total);
if (rand(1,100) > getd(".P"
[email protected]+"[0]")) {
for(set
[email protected],0;
[email protected]<getarraysize(.Default); set
[email protected],
[email protected]+2) {
getitem .Default[
[email protected]], .Default[
[email protected]+1];
if (
[email protected][0]) setarray
[email protected][0], .Default[
[email protected]], .Default[
[email protected]+1]; } }
else {
for(set
[email protected],1;
[email protected]<getarraysize(getd(".P"
[email protected])); set
[email protected],
[email protected]+2) {
getitem getd(".P"
[email protected]+"["
[email protected]+"]"), getd(".P"
[email protected]+"["+(
[email protected]+1)+"]");
if (
[email protected][0]) setarray
[email protected][0], getd(".P"
[email protected]+"["
[email protected]+"]"), getd(".P"
[email protected]+"["+(
[email protected]+1)+"]"); } }
if(
[email protected][0] == 4441)
announce "Congratulations to "+strcharinfo(0)+" for getting "
[email protected][1]+"x "+getitemname(
[email protected][0])+"!",0;
specialeffect2 248;
close;
OnInit:
// Format: <%>,<item ID>,<count>{,...};
setarray .P1[0],60,12214,5; //convex mirror 10pcs 60%
setarray .P2[0],50,674,5; //Mithril Coin 10pcs 70%
setarray .P3[0],40,20251,20; //Hourly coin 20pcs 30%
setarray .P4[0],5,13413,1,13412,1; //Naght Seiger(Red) 2% 1pc
setarray .P5[0],60,7227,5; //TCG 10pcs 70%
setarray .P6[0],40,2387,1,2440,1,2744,1; //sprint set 40%
setarray .P7[0],5,4403,1; //Kiel Card 5% 1pc
setarray .P8[0],2,4399,1; // Thanatos Card 2% 1pc
setarray .Default[0],12214,1; //convex mirror default 1pcs
setarray .Cost[0],7227,15; // 15pcs tcg required para makalaro sa lotti
set .Total,8;
end;
}
Use this one. I already included the change posted by jezznar and tested it in my server. Just make sure to change the map to the one you want.