Jump to content
Sign in to follow this  
GrandlineHost

[Games] Jackpot slot machine

Recommended Posts

Hi there,

 

Today i would like to share two script that enable you to play the jackpot game!

 

1st script  : slot machine - original scripter is release by godaimet

2nd script : casino employee - my script which i modified from a simple "redeem script i found..uhmm...nowhere?"

 

How it work?

 

First, you need a exchange your zeny into token from the casino employee npc. From this script i set 1 token = 50k zeny.

 

Note that you can also :

  • exchange back the token into zeny
  • redeem some special gift

 

35j9n5s.jpg

 

2nd, you can start play the casino machine. Click on the casino machine npc.

 

You can roll the machine as many time as you like and it will reduce 1 pcs of your coin every single time you roll it.

 

2zqxy1d.jpg

 

During rolling the machine, it will goes randomly in 3 sequence alphabet.

 

If you are lucky to get the same three Alphabet in a row, you will win the reward as stated on the previous picture

 

243kcwj.jpg

 

fwoa42.jpg

 

Credits
goes to the casino machine scripter owner godaimet and i hope you guys
will have fun playing with this jackpot machine!  ani_oops.gif

 

slotmachine.txt

casinoemployee.txt

Edited by Ken Mist

Share this post


Link to post
Share on other sites

//===== Hercules Script ======================================= 
//= Casino Employee
//===== By: ================================================== 
//= Oceanid
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= Hercules Project
//===== Description: ========================================= 
//= Casino Employee to work with slot machine script
//===== Additional Comments: =================================
//= 1.0 Initial script.
//============================================================

scythero,44,162,4	script	Casino Employee	4_F_KAFRA9,{

	mes "[Casino Employee]";
	mes "Hello " + strcharinfo(0) + ".","I sell the items you need to gamble.";
	mes "So what can I help you with?";
	next;
	switch(select("Trade Zeny for Token:Return Tokens:Redeem Tickets:Nothing")) {
		case 1:
			mes "[Casino Employee]";
			mes "Very well. Each Token of the Ox costs 50,000 zeny.";
			mes "How many would you like?";
			next;
			input @coinamount;
			if (checkweight(7606,@coinamount) == 0) {
				mes "[Casino Employee]";
				mes "You do not have enough space for that many tokens!";
				emotion e_hmm;
				close;
			}else if (Zeny > (50000 * @coinamount)) {
				set Zeny,(Zeny - (50000 * @coinamount));
				getitem 7606,@coinamount;
				mes "[Casino Employee]";
				mes "Here are your Tokens.";
				close;
			}else{
				mes "[Casino Employee]";
				mes "You do not have enough Zeny for that many Tokens!";
				mes "Get out of here before I call Security!";
				close;
			}
		case 2:
			mes "[Casino Employee]";
			mes "Please be careful not to excahnge more than 1 billion zeny!";
			mes "YOU WILL NOT RECEIVE ZENY EXCEEDING 1 BILLION.";
			mes "------------------------------------------------";
			mes "YOU HAVE BEEN WARNED!";
			next;
			mes "[Casino Employee]";
			mes "How many Token of the Ox would you like to return?";
			input @returnamount;
			if (countitem(7606) < @returnamount) {
				mes "You don't have that many tokens!";
				mes "Get out of here before I call security!";
				close;
			}else{
				delitem 7606,@returnamount;
				set Zeny,(Zeny + (50000 * @returnamount));
				mes "Thank You. Here is your Zeny.";
				close;
			}
		case 3:
			mes "[Casino Employee]";
			mes "Please select which prize you would like to redeem.";
			next;
			switch(select("Old Card Album ^FF0000[5 Tickets]^000000:Old Blue Box ^FF0000[5 Tickets]^000000:Gift Box ^FF0000[5 Tickets]^000000:Poison Bottle ^FF0000[5 Tickets]^000000:Nevermind")) {
				case 1:
					mes "[Casino Employee]";
					mes "How many would you like to get?";
					input @prizeamount;
					if (countitem(7528) < 5 * @prizeamount) {
						mes "You do not have enough tickets for that many!";
						mes "Get out of here before I call security!";
						close;
					}else{
						delitem 7528,5 * @prizeamount;
						getitem 616,@prizeamount;
						mes "Thanks come again!";
						close;
					}
				case 2:
					mes "[Casino Employee]";
					mes "How many would you like to get?";
					input @prizeamount;
					if (countitem(7528) < 5 * @prizeamount) {
						mes "You do not have enough tickets for that many!";
						mes "Get out of here before I call security!";
						close;
					}else{
						delitem 7528,5 * @prizeamount;
						getitem 617,@prizeamount;
						mes "Thanks come again!";
						close;
					}
				case 3:
					mes "[Casino Employee]";
					mes "How many would you like to get?";
					input @prizeamount;
					if (countitem(7528) < 5 * @prizeamount) {
						mes "You do not have enough tickets for that many!";
						mes "Get out of here before I call security!";
						close;
					}else{
						delitem 7528,5 * @prizeamount;
						getitem 644,@prizeamount;
						mes "Thanks come again!";
						close;
					}
				case 4:
					mes "[Casino Employee]";
					mes "How many would you like to get?";
					input @prizeamount;
					if (countitem(7528) < 5 * @prizeamount) {
						mes "You do not have enough tickets for that many!";
						mes "Get out of here before I call security!";
						close;
					}else{
						delitem 7528,5 * @prizeamount;
						getitem 678,@prizeamount;
						mes "Thanks come again!";
						close;
					}
				case 5:
					close;
			}
		case 4:
			close;
	}
}

 

Downloaded these scripts for my server and the Casino Employee did not work so I scripted a new one

Edited by Oceanid

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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