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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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