Jump to content
  • 0

how to change the lotti girl announcement.


Brynner

Question


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

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;

 

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...