-
Minecraft Moderator
Originally Posted by
naithantu
It worked, but it just wasn't fun. With the way the plugin was (haven't tested it since we had it, so I'm not sure what it's currently like) you'd either constantly be winning money or constantly losing money, depending on config defined payouts. You couldn't really have a lucky day and win money, you'd just always lose. Quite difficult to explain :p
We could try this plugin again, but honestly it really isn't that fun to play anyway ;3
soo... basically it misses a random number generator? I'm not familiar with java but is it really that hard to add a random number generator to it? you could then link a certain number to winning while the others are losing numbers right or am I babbling impossible nonsense now? :S
that way the random number generator would randomly generate a number (o-9 for example) and only if the number was correct(0 for example) it would give you a winning result :S
-
Minecraft VIP
Originally Posted by
Ryuuga
soo... basically it misses a random number generator? I'm not familiar with java but is it really that hard to add a random number generator to it? you could then link a certain number to winning while the others are losing numbers right or am I babbling impossible nonsense now? :S
that way the random number generator would randomly generate a number (o-9 for example) and only if the number was correct(0 for example) it would give you a winning result :S
Well, I'm did not learn java, but with C# it's quite easy to make a random number generator, so I'd assume with java it wouldn't be much of a problem :S
-
Minecraft VIP
Originally Posted by
Ryuuga
soo... basically it misses a random number generator? I'm not familiar with java but is it really that hard to add a random number generator to it? you could then link a certain number to winning while the others are losing numbers right or am I babbling impossible nonsense now? :S
that way the random number generator would randomly generate a number (o-9 for example) and only if the number was correct(0 for example) it would give you a winning result :S
From what I know this is a possible suggestion to the improvement of this plugin
-
Minecraft VIP
Random generators are hard to build even if you know howto make a RNG most of the time it will be almost random.
Its difficult for a person to make stuff random
-
Minecraft Admin
The plugin may of been updated to of been fixed since, and if not im sure some petty random generator is nothing for our marvelous developers
Besides i don't think it would need to be an entirely random generator, you could maybe code it somewhat like;
Code:
if winning = 1
win
else lose
endif
{loop}
winning = winning + 1
if winning > 4
winning = 0
endif
{close loop}
That;d give like a 20% chance of winning and it wouldn't be a constant win 1 in 5 games it would depend on luck, although im not a good coder and this could be wrong, and also that's more psuedo code than anything, it's not designed with a language in mind >.< although it does look very VB lol
Last edited by honkin_pigs; 11-09-2013 at 10:53 PM.
-
Minecraft VIP
Originally Posted by
honkin_pigs
The plugin may of been updated to of been fixed since, and if not im sure some petty random generator is nothing for our marvelous developers
Besides i don't think it would need to be an entirely random generator, you could maybe code it somewhat like;
Code:
if winning = 1
win
else lose
endif
{loop}
winning = winning + 1
if winning > 4
winning = 0
endif
{close loop}
That;d give like a 20% chance of winning and it wouldn't be a constant win 1 in 5 games it would depend on luck, although im not a good coder and this could be wrong, and also that's more psuedo code than anything, it's not designed with a language in mind >.< although it does look very VB lol
that's not 20% chance xD that's winnining every 5th time
What ryuu saying that to make a random generator is hard, and nothing is truly random >...> but isn't just having some variable defined by Random could be good enough :S? even if a bit unrandom sometimes?
that is, if java has that, as I only know of C# >.>
-
Minecraft Admin
Originally Posted by
nirosu
that's not 20% chance xD that's winnining every 5th time
What ryuu saying that to make a random generator is hard, and nothing is truly random >...> but isn't just having some variable defined by Random could be good enough :S? even if a bit unrandom sometimes?
that is, if java has that, as I only know of C# >.>
The variable would keep changing it's integer value in a loop as the server ticks, it wouldn't simply increase by 1 every time the person rolls, it'd be constantly increasing and you'd have to be lucky to click it at the right time
-
Minecraft VIP
Originally Posted by
honkin_pigs
The variable would keep changing it's integer value in a loop as the server ticks, it wouldn't simply increase by 1 every time the person rolls, it'd be constantly increasing and you'd have to be lucky to click it at the right time
considering the fact the server has 20 ticks per sec, that would be a bit too random >...< and won't make it "luck based", also running this all the time is a bit of a waste of cpu, and this plugin is built like a slot machine, it's not about pure %, so maybe just a random number of movement of each line, if I got the plugin's idea right.
what about doing something like, the first line moves like 10-15 times(with random), the 2nd will be = first*2 - first%10 (since it needs to move while the first is moving, and stop right after) , and third could be something like first + 2nd + 2nd%10 (that seems random enough sure it has only 5 options of movement, but the outcome is not based one that, is it?)
Anyways, I think it's better just to leave it to the plugin guys, who actually gonna do something about the plugin xD (probably )
-
Minecraft Admin
Plugin Dev
Memer
Memes
Howmany things can I add here?
Top kek
Quite a few actually.
bullshit_everywhere-e1345505471862.jpg
Anyhow: Why not just use a new Casino plugin (which is pretty much the same plugin, but just under a new name + with bug fixes) instead of reviving an old one.
-
Post Thanks / Like - 3 Likes, 0 Dislikes
-
Minecraft Admin
Originally Posted by
nirosu
considering the fact the server has 20 ticks per sec, that would be a bit too random >...< and won't make it "luck based", also running this all the time is a bit of a waste of cpu, and this plugin is built like a slot machine, it's not about pure %, so maybe just a random number of movement of each line, if I got the plugin's idea right.
what about doing something like, the first line moves like 10-15 times(with random), the 2nd will be = first*2 - first%10 (since it needs to move while the first is moving, and stop right after) , and third could be something like first + 2nd + 2nd%10 (that seems random enough
sure it has only 5 options of movement, but the outcome is not based one that, is it?)
Anyways, I think it's better just to leave it to the plugin guys, who actually gonna do something about the plugin xD (probably )
rofl, as i said i'm not an experienced coder and was only trying to help, but either way i guess i seemed to make a random generator if your calling it too random >.<
knowing m though, this probably wouldn'even work, stoux seems to have the right idea and just go with a newer and better plugin, we should just leave it to the plugin god, he seems to know what hes doing