Jump to content

Question

3 answers to this question

Recommended Posts

Posted

Replace <item_id> with the ticket id.

prontera,100,100,5	script	Lotto Ticket	100,{
	mes "[Lotto Ticket Dealer]";
	mes "How many voting points would you like to exchange?";
	mes "[10 Voting points = 1 Lotto Ticket]";
	next;
	switch( input( .@pas1, 10, #KAFRAPOINTS ) ) {
		case -1:
			mes "[Lotto Ticket Dealer]";
			mes "You can't go that low; the minimum value is 10.";
			close;
			
		case 1:
			mes "[Lotto Ticket Dealer]";
			mes "You don't have that many voting points!";
			close;
	}
	#KAFRAPOINTS = #KAFRAPOINTS - (.@pas1-(.@pas1%10));
	mes " [Lotto Ticket Dealer]";
	mes "Thank you please come again!";
	getitem <item_id>, .@pas1/10;
	close;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...