NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#SingleInstance Force
SetWorkingDir, C:UsersPriceDesktopslotmachineSlots
OutcomeList := ["GOB","Seven","Bar","Diamond","Clover","Melon","Lemon","Cherry"]
GOB3 := 0.015
Seven3 := 0.045
Bar3 := 0.15
Diamond3 := 0.5
Clover3 := 1
Lemon3 := 2.5
Cherries3 := 5
Melon3 := 1.5
GOB2 := 0.15
Seven2 := 0.5
Bar2 := 1.5
Diamond2 := 5
Clover2 := 10
Melon2 := 10
Lemon2 := 20
Cherries2 := 20
3LineChance := GOB3 + Seven3 + Bar3 + Diamond3 + Clover3 + Lemon3 + Cherries3 + Melon3
PayoutDouble := [30,10,3,1,.4,.4,.2,.2]
PayoutTriple := [300,100,30,10,5,3,2,1]
GOBWeight := [2.5,2,1]
SevenWeight := [5,4,3]
BarWeight := [7.5,5.5,4]
DiamondWeight := [10,8.5,7]
CloverWeight := [12.5,10.5,11]
MelonWeight := [15,16,16.5]
LemonWeight := [22.5,21,22.5]
CherryWeight := [25,32.5,40]
Balance = 5000

Gui, Main:Add, Text, x140 y15 h20 w120 vBalance, $%Balance%
Gui, Main:Add, Text, x140 y35 h20 w120 vPayout, $0
Gui, Main:Add, Text, x15 y35 h500 w120 vOutcomes,
Gui, Main:Add, Picture, x140 y100 h120 w120 vSlot1, bar.png
Gui, Main:Add, Picture, x140 y220 h120 w120 vSlot2, bar.png
Gui, Main:Add, Picture, x140 y340 h120 w120 vSlot3, bar.png
Gui, Main:Add, Picture, x260 y100 h120 w120 vSlot4, bar.png
Gui, Main:Add, Picture, x260 y220 h120 w120 vSlot5, bar.png
Gui, Main:Add, Picture, x260 y340 h120 w120 vSlot6, bar.png
Gui, Main:Add, Picture, x380 y100 h120 w120 vSlot7, bar.png
Gui, Main:Add, Picture, x380 y220 h120 w120 vSlot8, bar.png
Gui, Main:Add, Picture, x380 y340 h120 w120 vSlot9, bar.png
Gui, Main:Add, Button, x300 y475 h20 w40 gStart, JOMS
Gui, Main:Show, x600 y250 h600 w600, slot machine
Return

Start:
GuiControl,Main:, Slot1, bar.png
GuiControl,Main:, Slot2, bar.png
GuiControl,Main:, Slot3, bar.png
GuiControl,Main:, Slot4, bar.png
GuiControl,Main:, Slot5, bar.png
GuiControl,Main:, Slot6, bar.png
GuiControl,Main:, Slot7, bar.png
GuiControl,Main:, Slot8, bar.png
GuiControl,Main:, Slot9, bar.png
Payout = 0
BetSize = 5000
Outcomes =
OutcomeQueue3 := ["","","","",""]
OutcomeQueue2 := ["","","",""]
3Lines = 0
2Lines = 0
Gosub GetLines
Gosub CalcPayout
Balance := Round(Balance,0)
Payout := Round(Payout,0)
Balance := Balance + Payout - BetSize
GuiControl,Main:, Balance, $%Balance%
GuiControl,Main:, Payout, $%Payout%
Loop, 5
{
if (OutcomeQueue3[A_Index] = "")
{
continue
}
if (A_Index = 1)
{
name := OutcomeQueue3[A_Index]
GuiControl,Main:, Slot2, %name%.png
GuiControl,Main:, Slot5, %name%.png
GuiControl,Main:, Slot8, %name%.png
Outcomes =%Outcomes%%name% X3`n
}
else if (A_Index = 2)
{
name := OutcomeQueue3[A_Index]
GuiControl,Main:, Slot1, %name%.png
GuiControl,Main:, Slot4, %name%.png
GuiControl,Main:, Slot7, %name%.png
Outcomes =%Outcomes%%name% X3`n
}
else if (A_Index = 3)
{
name := OutcomeQueue3[A_Index]
GuiControl,Main:, Slot3, %name%.png
GuiControl,Main:, Slot6, %name%.png
GuiControl,Main:, Slot9, %name%.png
Outcomes =%Outcomes%%name% X3`n
}
else if (A_Index = 4)
{
name := OutcomeQueue3[A_Index]
GuiControl,Main:, Slot1, %name%.png
GuiControl,Main:, Slot5, %name%.png
GuiControl,Main:, Slot9, %name%.png
Outcomes =%Outcomes%%name% X3`n
}
else if (A_Index = 5)
{
name := OutcomeQueue3[A_Index]
GuiControl,Main:, Slot3, %name%.png
GuiControl,Main:, Slot5, %name%.png
GuiControl,Main:, Slot7, %name%.png
Outcomes =%Outcomes%%name% X3`n
}
}

Loop, 4
{
if (OutcomeQueue2[A_Index] = "")
{
continue
}
if (A_Index = 1)
{
name := OutcomeQueue2[A_Index]
GuiControl,Main:, Slot2, %name%.png
GuiControl,Main:, Slot5, %name%.png
Outcomes =%Outcomes%%name% X2`n
}
else if (A_Index = 2)
{
name := OutcomeQueue2[A_Index]
GuiControl,Main:, Slot1, %name%.png
GuiControl,Main:, Slot4, %name%.png
Outcomes =%Outcomes%%name% X2`n
}
else if (A_Index = 3)
{
name := OutcomeQueue2[A_Index]
GuiControl,Main:, Slot3, %name%.png
GuiControl,Main:, Slot6, %name%.png
Outcomes =%Outcomes%%name% X2`n
}
else if (A_Index = 4)
{
name := OutcomeQueue2[A_Index]
GuiControl,Main:, Slot1, %name%.png
GuiControl,Main:, Slot5, %name%.png
Outcomes =%Outcomes%%name% X2`n
}
}
if (!Outcomes)
{
Outcomes = Nothing
}
GuiControl,Main:, Outcomes, %Outcomes%
Return

GetLines:
Loop
{
Random, r, 0.0000, 99.9999
if (3Lines < 3)
{
if (r > 99.9999 - GOB3)
{
AddOutcome3("GOB")
continue
}
else if (r > 99.9999 - GOB3 - Seven3)
{
AddOutcome3("Seven")
continue
}
else if (r > 99.9999 - GOB3 - Seven3 - Bar3)
{
AddOutcome3("Bar")
continue
}
else if (r > 99.9999 - GOB3 - Seven3 - Bar3 - Diamond3)
{
AddOutcome3("Diamond")
continue
}
else if (r > 99.9999 - GOB3 - Seven3 - Bar3 - Diamond3 - Clover3)
{
AddOutcome3("Clover")
continue
}
else if (r > 99.9999 - GOB3 - Seven3 - Bar3 - Diamond3 - Clover3 - Lemon3)
{
AddOutcome3("Lemon")
continue
}
else if (r > 99.9999 - GOB3 - Seven3 - Bar3 - Diamond3 - Clover3 - Lemon3 - Cherries3)
{
AddOutcome3("Cherry")
continue
}
else if (r > 99.9999 - 3LineChance)
{
AddOutcome3("Melon")
continue
}
}
if (2Lines < 4)
{
if (r > 99.9999 - GOB2 - 3LineChance)
{
AddOutcome2("GOB")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - 3LineChance)
{
AddOutcome2("Seven")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - 3LineChance)
{
AddOutcome2("Bar")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - Diamond2 - 3LineChance)
{
AddOutcome2("Diamond")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - Diamond2 - Clover2 - 3LineChance)
{
AddOutcome2("Clover")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - Diamond2 - Clover2 - Lemon2 - 3LineChance)
{
AddOutcome2("Lemon")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - Diamond2 - Clover2 - Lemon2 - Cherries2 - 3LineChance)
{
AddOutcome2("Cherry")
continue
}
else if (r > 99.9999 - GOB2 - Seven2 - Bar2 - Diamond2 - Clover2 - Lemon2 - Cherries2 - Melon2 - 3LineChance)
{
AddOutcome2("Melon")
continue
}
}
Return
}
Return

CalcPayout:
i = 1
Loop, 5
{
if (OutcomeQueue3[A_Index] = "")
{
i++
continue
}
j = 1
Loop, 8
{
if (OutcomeQueue3[i] = OutcomeList[j])
{
Payout += PayoutDouble[j] * BetSize
i++
break
}
j++
}
}

i = 1
Loop, 4
{
if (OutcomeQueue2[A_Index] = "")
{
i++
continue
}
j = 1
Loop, 8
{
if (OutcomeQueue2[i] = OutcomeList[j])
{
Payout += PayoutDouble[j] * BetSize
i++
break
}
j++
}
}
Return

AddOutcome2(x)
{
global
Loop, 8
{
if (x = OutcomeList[A_Index])
{
2Lines++
OutcomeQueue2[SelectPayline(2, x)] := x
return
}
}
}
Return

AddOutcome3(x)
{
global
Loop, 8
{
if (x = OutcomeList[A_Index])
{
3Lines++
OutcomeQueue3[SelectPayline(3, x)] := x
return
}
}
}
Return

SelectPayline(queue, x)
{
global
CheckCount = 0
if (queue = 3)
{
CheckedPaylines := ["","","","",""]
while(CheckCount < 5)
{
Random r, 1, 5
if (OutcomeQueue3[r] = "" && OutcomeQueue2[r] = "")
{
if (r = 1)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x))
{
return r
}
else
{
CheckedPaylines[1] := "checked"
}
}
else if (r = 2)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x))
{
return r
}
else
{
CheckedPaylines[2] := "checked"
}
}
else if (r = 3)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x))
{
return r
}
else
{
CheckedPaylines[3] := "checked"
}
}
else if (r = 4)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x))
{
return r
}
else
{
CheckedPaylines[4] := "checked"
}
}
else if (r = 5)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x))
{
return r
}
else
{
CheckedPaylines[5] := "checked"
}
}
}
else
{
CheckedPaylines[r] := "checked"
}
CheckCount = 0
Loop, 5
{
if (CheckedPaylines[A_Index] = "checked")
{
CheckCount++
}
else
{
break
}
}
}
}
else if (queue = 2)
{
CheckedPaylines := ["","","",""]
While (CheckCount < 4)
{
Random r, 1, 4
if (OutcomeQueue2[r] = "" && OutcomeQueue3[r] = "")
{
if (r = 1)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x) && (OutcomeQueue2[4] = "" or OutcomeQueue2[4] = x) && (OutcomeQueue2[5] = "" or OutcomeQueue2[5] = x))
{
return r
}
else
{
CheckedPaylines[1] := "checked"
}
}
else if (r = 2)
{
if ((OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x) && (OutcomeQueue2[4] = "" or OutcomeQueue2[4] = x))
{
return r
}
else
{
CheckedPaylines[2] := "checked"
}
}
else if (r = 3)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue2[5] = "" or OutcomeQueue2[5] = x))
{
return r
}
else
{
CheckedPaylines[3] := "checked"
}
}
else if (r = 4)
{
if ((OutcomeQueue3[5] = "" or OutcomeQueue3[5] = x) && (OutcomeQueue3[4] = "" or OutcomeQueue3[4] = x) && (OutcomeQueue2[4] = "" or OutcomeQueue2[4] = x) && (OutcomeQueue2[5] = "" or OutcomeQueue2[5] = x))
{
return r
}
else
{
CheckedPaylines[4] := "checked"
}
}
}
else
{
CheckedPaylines[r] := "checked"
}
CheckCount = 0
Loop, 4
{
if (CheckedPaylines[A_Index] = "checked")
{
CheckCount++
}
else
{
break
}
}
}
}
else
{
msgbox bad queue num
return
}
}





















     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.