ChiknNuggets, on 03 July 2012 - 04:42 AM, said:
NeonJ, on 02 July 2012 - 08:36 PM, said:
Haha, I was looking at and messing with the code for this, and I made something pretty neat out of it. Had the slots rolling and different payouts and everything, it's pretty neat!
/> First time using LUA too. o,o Though I've used one other language before, I'm still pretty proud of my edit. o,o
... I'd record it but my PC records at terrible FPS. Any suggestions? ;o
EDIT: Just spent the past undefined minutes making the prizes have a fair payout. It now pays out 89% of the money it gets (Small profit woo) and the jackpot is rather large!
Mix this up with an antigrief plugin and you have a nice and profitable slot machine. But I don't have a method of storing the profits yet - anything given into the machine goes right to the dispenser, even when it's full.
Some one inboxed me on facebook the other day saying the slots should scroll and im like cbf its not needded but, that nice that you could be bothered to do it, i actually tried this the other day on a multiplayer server and for some reason it didnt work i think it must have been the server, because it works fine on single player
Was working fine on my Tekkit server! ;o
It's pretty cool actually. I took a few screenshots of it, and it's surprisingly solid.
Drop your iron nugget, and the games can begin!
Rolling, rolling, rolling. I also removed the other winlines and restricted winning to the middle, so I could organize the prices and profits easier. Made it easier to win a bit, though.
Hooray, I won! Only two nuggets for this win (it took me a while, too!) but it was a win, nonetheless.
It was fun messing with this code, I enjoyed it and created something rather cool. Only problem with it is that the slots don't actually "roll", they just pick random numbers 30 times (getting slower each time until the 30th) and then decides if you've won or not. Like I said before, I'd record but my recording system's terrible. ;o
EDIT:
Code! Download with your favourite CC pastebin program!
The indents look broken in Pastebin, but they're fine in Notepad++ and CC, for some reason.