Forum: Questions and Supports
02-07-2010, 07:37 PM
|
Replies: 9
Views: 9,913
RE: Limit clicks/day to 10, for each pet?
I thought I needed the query to check the number of rows in the votes table? Sorry Brandon, but could you show me an example..? :S
EDIT: Is this what you meant?
$query = "SELECT * FROM...
|
Forum: Questions and Supports
02-05-2010, 09:44 PM
|
Replies: 9
Views: 9,913
RE: Limit clicks/day to 10, for each pet?
:o
Lol. Trust me to pick the abstract, complex way right off the bat. I'll definitely do that Brandon, thanks for suggesting it. :D
EDIT: It's really hard to see if it's working, but does this...
|
Forum: Questions and Supports
02-05-2010, 01:13 PM
|
Replies: 9
Views: 9,913
RE: Limit clicks/day to 10, for each pet?
Hmm but it's used earlier to write to the "voters" table? (I mean $date, which doesn't work if I replace all the date('Y-m-d') with it. $date = date('Y-m-d') as it is)
Did you guys want to peer at...
|
Forum: Questions and Supports
02-05-2010, 07:37 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-05-2010, 02:28 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-05-2010, 02:24 AM
|
Replies: 9
Views: 9,913
RE: Limit clicks/day to 10, for each pet?
if ($clickdate != date('Y-m-d')) { $newdate = date('Y-m-d'); $newctd= $ctd + 1; $addclicks = 1; }
if ($clickdate = date('Y-m-d') && $ctd > 9 ) { $newdate = $clickdate; $newctd = $ctd + 0;...
|
Forum: Questions and Supports
02-04-2010, 06:20 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-04-2010, 04:08 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-04-2010, 02:16 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-04-2010, 01:24 AM
|
Replies: 9
Views: 9,913
Limit clicks/day to 10, for each pet?
I want to do this a) to stop Yarolds people buying 100pets and lvling them all to max that day and b) to add a sense of realism (so they dont grow old in a day).
My idea was to add two columns to...
|
Forum: Questions and Supports
02-03-2010, 09:41 PM
|
Replies: 10
Views: 15,622
RE: Alternate adopt
Also I've heard of using seeds to make rand() more random. But which would be best and are there any better than mt_rand?
For example, I heard s_rand(time()) is what neopets use..?
|
Forum: Questions and Supports
02-03-2010, 09:38 PM
|
Replies: 17
Views: 15,780
|
Forum: Adoptables Sites Showcase
02-03-2010, 09:37 AM
|
Replies: 11
Views: 16,167
RE: Arvyre: Beta 2 - out now!
I'd just like to post again to announce Arvyre version 2's official release. (Sorry this message is 3 days late :P)
You're all the best reviewers since you've actually run the script. So does...
|
Forum: Questions and Supports
02-03-2010, 06:10 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-02-2010, 08:36 AM
|
Replies: 17
Views: 15,780
|
Forum: Questions and Supports
02-01-2010, 10:28 PM
|
Replies: 10
Views: 15,622
RE: Alternate adopt
Just while this topic's back on page one, I heard that mt_rand() is "truely" random, whereas rand() is not.
This is coming from someone who deals a lot with random chances on his php site, so I...
|
Forum: Adoptables Sites Showcase
01-30-2010, 12:09 PM
|
Replies: 11
Views: 16,167
RE: Arvyre: Beta 2 - need alpha testers!
Ah yes I know all about that. Didn't bother reading your post properly, I should try that next time. x)
Thought you were peeking at my top secret highly original php files lol.
|
Forum: Adoptables Sites Showcase
01-30-2010, 11:02 AM
|
Replies: 11
Views: 16,167
RE: Arvyre: Beta 2 - need alpha testers!
Aha, thanks for that. :D
I should really make a test account and poke around with that, so I don't miss things like that.
How'd you find my code, by the way? Just want to know so I can keep the...
|
Forum: Adoptables Sites Showcase
01-30-2010, 09:04 AM
|
Replies: 11
Views: 16,167
|
Forum: Questions and Supports
01-30-2010, 01:37 AM
|
Replies: 4
Views: 6,153
PHP: Have a 1/2 chance to add or subtract 1 ..?
I'm trying to create a code that will take an existing number (from a table) and have a one-in-two chance of adding or subtracting one from it.
This is what I have at the moment:
// $numnew =...
|
Forum: Adoptables Sites Showcase
01-29-2010, 11:58 PM
|
Replies: 11
Views: 16,167
RE: Arvyre: Beta 2 - need alpha testers!
Good to hear. :)
Don't adopt any pets just yet. They'll hatch just fine but every levelup after that is bugged. I know exactly where the problem is, but my knowledge of php is slowing things down....
|
Forum: Adoptables Sites Showcase
01-29-2010, 09:46 PM
|
Replies: 11
Views: 16,167
RE: Arvyre: Beta 2 - need alpha testers!
Aha, looks like my "Search people" field is a little too wide and it's pushing the "Sign Out" button to another line.
Thanks, I'd probably never pick that up. ;)
EDIT: Any better now?
ANd...
|
Forum: Mys v1.1.x Mods
01-29-2010, 12:26 PM
|
Replies: 93
Views: 97,907
RE: Breeding System - Complete!
basically you would have to make a new table with say 1-10 being possible for 1xb breeding ... 11-20 being possible for yxz breeding.. then set up limits on a random for each breeding pair...
|
Forum: Adoptables Sites Showcase
01-29-2010, 11:59 AM
|
Replies: 11
Views: 16,167
Arvyre: Beta 2 - out now!
Arvyre: Beta version 2 in now live! I'm still looking for people to review the site, look for glitches and try to break the store (rather you than someone I can't track, eh).
Please also adopt and...
|
Forum: Questions and Supports
01-29-2010, 11:47 AM
|
Replies: 6
Views: 7,735
|