Jump to content
  • 0
Brynner

how to change the lotti girl announcement.

Question

how to make this lotti girl announcer will announce only if you get item below 10%. and it will not announce the default reward item.

	mes "[Lotti Girl]";	mes "It costs "+.Price+" Zeny to play.";	if (Zeny < .Price) close;	next;	if(select("Deal me in!:No way...")==2) close;	mes "[Lotti Girl]";	mes "Here we go...";	progressbar "",2;	set Zeny, Zeny-.Price;	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]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } }	announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0;	specialeffect2 248;	close;

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.