GmOcean

Quests, Games: Slot Machine

Recommended Posts

File Name: Slot Machine

File Submitter: GmOcean

File Submitted: 13 Sep 2014

File Category: Games, Events, Quests

Content Author: GmOcean


This script will allow users to spend zeny &/or an item for a chance to win a prize from the slot machine. Currently there are 2 versions. First is a Single Slot Machine, where only 1 slot is rolled. Second is the Triple Slot machine, where 3 slots are rolled. For either version, SUCCESS must be the only thing displayed in order to win.

To add the cutins, just place them in: data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/illust

/* =============================================================
/* NOTE - If using soundeffects you must add the ".wav" files
/* provided in the ".rar" file to your: data/wav folder located
/* in either your: ( Ragnarok folder ) OR ( .grf file )
/* =============================================================



Click here to download this file

  • Upvote 2

Share this post


Link to post
Share on other sites

Nice script but it is possible to re-shuffle again in three times? specifically like this  

(success,success,success) = win
(success,success,lose) = lose
(success,lose,success) = lose
...
and so forth

Players will notice the machine works as a 50-50 chances of winning and losing due to it only once decide if success/lose

Thank you sorry for the bad english =)
 

Share this post


Link to post
Share on other sites

The fail / success rate is determined by you. It only shows a 50% but it can be anywhere from 0% success -> 100% success.

But what you mean is you want it to roll the slot machine 3x and determine the outcome then? I'll take a look at it and probably add it as an extra feature that can be enabled/disabled.

Share this post


Link to post
Share on other sites

The fail / success rate is determined by you. It only shows a 50% but it can be anywhere from 0% success -> 100% success.

But what you mean is you want it to roll the slot machine 3x and determine the outcome then? I'll take a look at it and probably add it as an extra feature that can be enabled/disabled.

it would be nice if three animations will rolled out in 1 round =)

Share this post


Link to post
Share on other sites

Updated to v0.2 - Added the Triple slot machine with animations.

Edited by GmOcean

Share this post


Link to post
Share on other sites

O.o I updated the description, it would allow you to use either a single slit machine version or a triple slot machine version. I even made a semi-custom animation for it.

Share this post


Link to post
Share on other sites

O.o I updated the description, it would allow you to use either a single slit machine version or a triple slot machine version. I even made a semi-custom animation for it.

ohh thank you =)

Share this post


Link to post
Share on other sites

Suggestion :

  • Enable multiple prizes
  • Different chances of winning

Share this post


Link to post
Share on other sites

Sorry, I forgot to update to version 0.7 on rAthena @[email protected]; I've submitted an upload just waiting for approval by an admin.

    v0.1 - Original Script Created.
    v0.2 - Added Option for Triple Slot Machine with animations.
    v0.3 - Added support for item pricing &/or zeny pricing.
    v0.4 - Cleaned up script variables for easy editing.
    v0.5 - Tested out some new scripting methods with IF(THEN).
    v0.6 - Added option to change slot machine modes ingame.
    v0.7 - Added optional sound effects to slot machines. - NOTE

Share this post


Link to post
Share on other sites

report this missing file wav (v 0.7)

if( .soundeffects ){ soundeffect "rog_steal coin.wav",1; }

change

if( .soundeffects ){ soundeffect "rog_steal_coin.wav",1; }

and when success rate with soundeffect client crash

Share this post


Link to post
Share on other sites

report this missing file wav (v 0.7)

if( .soundeffects ){ soundeffect "rog_steal coin.wav",1; }

change

if( .soundeffects ){ soundeffect "rog_steal_coin.wav",1; }

and when success rate with soundeffect client crash

same happends to me, if win client crash

Share this post


Link to post
Share on other sites

Looks like you guys were missing a wav file under wav folder from data folder.

To create your own file, simply look at the client error and determine what file is missing. Make any wav file(just to test) and rename it to the "missing error file".

Put the renamed file inside wav folder in data folder.

Share this post


Link to post
Share on other sites

My apologies, my attention was else where @[email protected]; I provided the wav file, but I neglected to re-name it to the one the script uses. I'll update this shortly. Sorry again.

Share this post


Link to post
Share on other sites

hello i was testing ur slot mech, but it dint not show those cutin, does it becoz my data folder are in korean?

Share this post


Link to post
Share on other sites

Can anyone provide a quick edit to make the "Another Round" and "I'm done" randomly switch location every after round?

 

For example:

Switch 1 = Another Round & I'm Done.

Switch 2 = I'm Done & Another Round.

Share this post


Link to post
Share on other sites

is it possible to have multiple item prize instead of 1 item prize??

Share this post


Link to post
Share on other sites

How could i edit this script to basically hide the npc, but at every 2nd hour it shows up and players can play with it?

Share this post


Link to post
Share on other sites

how to add the cutins in thor patcher??? to enable also on players already downloaded the full installer

rog_steel_coin.wav missing

Share this post


Link to post
Share on other sites
17 hours ago, kitty14 said:

How can I lower success rate of this? It seem I won 8/10. tnx

up please.

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.   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.