What is the problem with this one? because some of the players complaining that some they will be log out/DC
/////////////////////////////////////////////////
// Credits to Anakid for providing this script //
/////////////////////////////////////////////////
- script Lotti -1,{
OnInit:
disablenpc "Lotti Girl#Lotti";
end;
OnWhisperGlobal:
if ( getgmlevel() < 99 ) end;
else if ( compare ( @whispervar0$, "on" ) ) goto L_start;
else if ( compare ( @whispervar0$, "off" ) ) goto L_end;
else end;
L_end:
OnClock1300:
OnClock0000:
announce "The Lotti Girl will be back soon! Thanks for Joining",bc_all,0x00CED1;
disablenpc "LottiGirl#Lotti";
end;
L_start:
OnClock1200:
OnClock0100:
announce "The Lotti Girl is Back! Come here @ zhakastia 98 51",bc_all,0x00CED1;
enablenpc "Lotti Girl#Lotti";
end;
}
zhakastia,98,51,4 script Lotti Girl#Lotti 714,{
if(Weight >= MaxWeight/2) goto Low;
mes "[Lotti Girl]";
mes "Hello Sir! Are you out";
mes "shopping in the city?!";
next;
mes "[Lotti Girl]";
mes "I'm Lotti! I'll exchange cool";
mes "random prizes for every";
mes "^ff000010 MavenRO Credits^000000.";
next;
mes "[Lotti Girl]";
mes "Our Grand prize is:";
mes "^ff0000Kiel D-01 Card^000000";
mes "Special prizes are:";
mes "^ff0000100 Bravery Badges^000000";
mes "^ff00001 Bloody Branch^000000";
mes "and ^ff0000100 MavenRO Credits^000000";
next;
mes "[Lotti Girl]";
mes "You can still get random item";
mes "if you failed to get the grand";
mes "prize and special prizes.";
if (countitem(22001) < 10)
end;
next;
if(select("Deal me in!:No way...")==2)
end;
mes "[Lotti Girl]";
mes "Here we go...";
delitem 22001,10;
set .@Total,8;
//<%>,<ItemID>,<Amount>
setarray .@P1[0],0,4403,1;
setarray .@P2[0],1,7828,1;
setarray .@P3[0],2,12103,1;
setarray .@P4[0],3,22001,100;
setarray .@P5[0],10,14232,10;
setarray .@P6[0],15,22001,10;
setarray .@P7[0],25,12214,1;
setarray .@P8[0],50,607,10;
setarray .@Default[0],12221,1;
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 248;
end;
Low:
mes "You are Overweight!";
end;
}
Question
Yoona
What is the problem with this one? because some of the players complaining that some they will be log out/DC

Edited by Yoona2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.