Page 1 of 2
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:01 pm
by Red Squirrel
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:37 pm
by manadren_it
Nifty! I noticed the winning number doesn't really jump around too much though. Still haven't won it yet
but every time I try the number seems to be between 605-620. It that a bug, or is it by design - to make the odds a little easier?
Archived topic from Iceteks, old topic ID:1505, old post ID:12727
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:41 pm
by Red Squirrel
manadren wrote: Nifty! I noticed the winning number doesn't really jump around too much though. Still haven't won it yet
but every time I try the number seems to be between 605-620. It that a bug, or is it by design - to make the odds a little easier?
It's done on purpose. But I was trying a lot and I never won at all! I came so close though, I was 1 number off!!! So it's still pretty hard. It will works on averages based on other's guesses, but it also adds in a random number to the calculation so even if you keep entering 500 it won't just average out to 500. This is kind of like gambling since you can easly take a loan if you don't have money and keep hoping to win.
I also screwed up on the igloo pictures, I'll redo them tomorow. I lost the psd's for the originals so I could not make one the same.
Archived topic from Iceteks, old topic ID:1505, old post ID:12728
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:47 pm
by Chris Vogel
This is really cool, Red.
I won! However... Look at the attachment.
Archived topic from Iceteks, old topic ID:1505, old post ID:12729
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:49 pm
by Red Squirrel
takahita_tsukino wrote: This is really cool, Red.
I won! However... Look at the attachment.
Wow at least I know it's possible to win now!
I'll have to check that. Did you get the money though? I think everything is fine. I just forgot to impliment the auto delete of the database entries.
And I think instead of deleting it when someone wins, I'll make it delete when there's like 100 entries, that way it will make it a bit harder to win. I seriously did not think someone would win today!
Archived topic from Iceteks, old topic ID:1505, old post ID:12730
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:49 pm
by manadren_it
Ok, so it kinda increases your chances the more you play. Trying to lure people into some virtual addiction are you
Archived topic from Iceteks, old topic ID:1505, old post ID:12731
new cybervillage feature: Lottery!
Posted: Thu Oct 23, 2003 11:52 pm
by Chris Vogel
Yes, I did get the money I think.
I just won again. It's not that hard.
I still got that error, but I did get the money I believe.
Archived topic from Iceteks, old topic ID:1505, old post ID:12732
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 12:01 am
by Red Squirrel
manadren wrote: Ok, so it kinda increases your chances the more you play. Trying to lure people into some virtual addiction are you
Yep!
Now I made it a bit harder by making it 0-5000 but it's a 15 million dollar jack pot
I made it so it deletes all records after someone wins, so we'll see if it works or not. It should...
Archived topic from Iceteks, old topic ID:1505, old post ID:12734
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 9:43 am
by Chris Vogel
Wow... That took longer...
I still got that error though...
Archived topic from Iceteks, old topic ID:1505, old post ID:12736
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 11:31 am
by wldkos
I have a 3 hour break... Guess what im going to be doing
Oh and red, you give IC's to guests now?
Archived topic from Iceteks, old topic ID:1505, old post ID:12740
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 12:04 pm
by fishyfool
some of those Q&A tests are screwy, btw check out my ice cubes
Archived topic from Iceteks, old topic ID:1505, old post ID:12746
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 12:21 pm
by Chris Vogel
fishyfool wrote: some of those Q&A tests are screwy, btw check out my ice cubes
Yeah, I don't think things based on opinion should be on there even if most of the forum agrees...
Archived topic from Iceteks, old topic ID:1505, old post ID:12747
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 2:15 pm
by Red Squirrel
fishyfool wrote: some of those Q&A tests are screwy, btw check out my ice cubes
You must of got hit with that RIAA question. There's one that asks if they suck, and if you put no you loose a lot.
Maybe it's a little harsh though, I'll put the number a bit lower.
I'm at school now so I can't do much, but I'll do it once I get home.
So tak, you won the 15M and still got the error? That's weird. I'll have to reput the select_db function in the win code, but I should not have to put it twice.
Archived topic from Iceteks, old topic ID:1505, old post ID:12749
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 2:17 pm
by Red Squirrel
wldkos wrote: I have a 3 hour break... Guess what im going to be doing
Oh and red, you give IC's to guests now?
Yes and no. There's an account for all member IDs including 0 which is guests. But I usually make sure it's low enough so guests can't do much. I might even disable guest cybervillage functions completly just to encourage registrations. I'll make it so they can see it, but not actually use the features.
Archived topic from Iceteks, old topic ID:1505, old post ID:12750
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 3:07 pm
by Red Squirrel
Ok, try it again. It should be a bit harder to win now. Hope so since it's a big jack pot now!!
By the way fishy, I never actually figured someone would get hit with that question so I changed it, and I got rid of the negative in your account and took out a few digits so you're at a decent ammount. I usually don't alter the database like this but I felt sort of bad. Figured you'd never pay that dept any time soon. I did not even check but I had like a 11 digit number in there or something lol
Archived topic from Iceteks, old topic ID:1505, old post ID:12753
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 4:13 pm
by Chris Vogel
Red, you say 0-5000, but -1 has been a the answer for a few times...
Archived topic from Iceteks, old topic ID:1505, old post ID:12754
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 4:25 pm
by Red Squirrel
takahita_tsukino wrote: Red, you say 0-5000, but -1 has been a the answer for a few times...
Weird... that's not right. Thanks for letting me know, I'll see what's up with the script. Maybe there's a bad entry in the database or something.
Archived topic from Iceteks, old topic ID:1505, old post ID:12755
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 4:39 pm
by Red Squirrel
Ok now numbers should stay in range. I forgot to make it so that if the user enters a number smaller then 0, that it rounds it off to 0. I did it for if the user enters a number bigger then 5000 but forgot 0. Still don't see why it did that as there was no negative values in the database but mine when testing after your post. But just to be safe I made it so that if the win number is out of range, it will just randomly pick a number without no fancy math average stuff to be sure it's not out of range. (I doubt the rand() function is what made the mistake).
I'll see if anyone wins fast again and if it takes more tries, I'll keep it coded how it is. The number jumps around a bit more now so you can't just put the same number over and over.
Archived topic from Iceteks, old topic ID:1505, old post ID:12757
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 4:59 pm
by Chris Vogel
This time it took quite a few more tries, and I didn't get that error...
This is addicting.
Archived topic from Iceteks, old topic ID:1505, old post ID:12758
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 5:02 pm
by Red Squirrel
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 5:09 pm
by Chris Vogel
Yeah... That's a good idea!
I have no idea what to do with all this money. Most likely, I'll give a lot of it away.
Archived topic from Iceteks, old topic ID:1505, old post ID:12762
new cybervillage feature: Lottery!
Posted: Fri Oct 24, 2003 5:38 pm
by Red Squirrel
takahita_tsukino wrote:
Yeah... That's a good idea!
I have no idea what to do with all this money. Most likely, I'll give a lot of it away.
lol yeah you had quite a lot. I assume you just put it in the bank.
I need to make an option to rob the bank. Really not sure how that would work though. Maybe some kind of game with php or something. Maybe even a flash game. But I don't really know much flash programming, but if I would learn, it would be something cool to know though.
Archived topic from Iceteks, old topic ID:1505, old post ID:12763
new cybervillage feature: Lottery!
Posted: Sat Oct 25, 2003 11:25 am
by fishyfool
Red Squirrel wrote: By the way fishy, I never actually figured someone would get hit with that question so I changed it, and I got rid of the negative in your account and took out a few digits so you're at a decent ammount. I usually don't alter the database like this but I felt sort of bad. Figured you'd never pay that dept any time soon. I did not even check but I had like a 11 digit number in there or something lol
what happened was, i couldn't get more than 70% on that quiz, so i kept redoing it over and over, i tried every combo and still couldn't get more than 70% right (bug?)
then i saw my ice cubes!!!
Archived topic from Iceteks, old topic ID:1505, old post ID:12780
new cybervillage feature: Lottery!
Posted: Sat Oct 25, 2003 1:42 pm
by Red Squirrel
hmm I'll check on the 70% thing... I know the way I did it was that when you create the quiz you have to put in the answer, but it's case sensitive so there might be places where it's not typed right. I'll check it in the database and see. This feature still uses a file based database and will stay that way though.
Archived topic from Iceteks, old topic ID:1505, old post ID:12782