dnenb
Members-
Posts
325 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Everything posted by dnenb
-
+1 for MTG!
-
+1 for that. You can google "php email verification", Razor. I found some ok guides there. If you already have a "forgot password" system, you can use much of the same logic.
-
I guess my way of doing it (you get your password via email) puts some people off since they can't start playing at once. But do it like this: You can't level up until you've verified your email. That way people can start playing at once, and they will verify if they like the game.
-
Do it! I know for sure it stopped one guy from creating multiple accounts on my game, and it has probably stopped others as well.
-
Selling a game - How to do the transaction?
dnenb replied to dnenb's topic in General Gaming Discussion
Thanks. That looks like the best choice so far. -
Selling a game - How to do the transaction?
dnenb replied to dnenb's topic in General Gaming Discussion
Which service did you use? -
I'm currently entertaining an offer on one of my games. Have you sold games in teh x,xxx-range before? How did you do the transaction? I'm curious about the payment specifically. Escrow? Thanks.
-
50 players online the last 24 hours isn't bad at all! How have you gotten your players? How many registrations per day now?
-
Well, the code is simple enough. If you get to the default case in the switch, then $ir['tutorial_step'] has a value (if any) different than 1 or 2. Try echoing it out to see.
-
Then $ir['tutorial_step'] doesn't have a value recognised. Did you add the field `tutorial_step` to the users table, as I said above?
-
Thanks, but I'll code it myself if it doesn't already exist :)
-
Has anyone here made a mod for player banks? Where players can open banks, and let other players apply for loans with a set interest? Tried searching around, but couldn't find anything.
-
Glad you like it! :)
-
Giving rewards for staying in the same gang every 50 days
dnenb replied to dnenb's topic in General Discussion
I ended up doing this: // rewarding players who have been in the same gang every 50 days $q = $db->query(" SELECT * FROM `users` WHERE `daysingang`%50=0 AND `daysingang`!=0 "); while($r = $db->fetch_row($q)){ event_add( $r['userid'], "You've been in your gang another 50 days! Congratulations. You've received $100,000 and 20 crystals.", NULL ); $db->query(" UPDATE `users` SET `money`=`money`+100000, `crystals`=`crystals`+20 WHERE `userid`=" . $r['userid'] . " "); } :) -
Sure. I guess you could set a session variable when they register, and check if that exists when they log in. Or you could just check if "lastactive" has been set previously, and set a session variable for the tutorial if lastactive=0. Too many options :) But I like the way I did it, as it's easy to add a new tutorial step if there's a new feature in the game.
-
Did you even glance at the code? :P It's for v2.
-
Giving rewards for staying in the same gang every 50 days
dnenb replied to dnenb's topic in General Discussion
Thanks again! Already have a field counting the number of days, so that's ok. I could do as you're suggesting Razor, but I was hoping there's something more efficient. -
You should validate what you get from $_GET before using it in a query..!
-
Giving rewards for staying in the same gang every 50 days
dnenb replied to dnenb's topic in General Discussion
Nah, because the user should get the reward even though he/she doesn't log on that day. Edit: But thanks for the suggestion :) -
Giving rewards for staying in the same gang every 50 days
dnenb posted a topic in General Discussion
I'm gonna give players rewards for being in the same gang every 50 days. How would you do that? I could do it quite easily with an if-test in the users-update in the daily cron, but if I want to give them an event about it as well? How would you do it? Thanks! -
Hah, maybe it's a typo? 1 and 4 and veeeery close to each other mon the numpad? :P But I doubt it, as the frontpage says the game has 87k active players (holy ****).
-
Using PHP? Use mysql with PDO!
-
Are you saying that's rushing things for a browser game? I disagree. Launch the game as soon as you can. The issues that arise will make you get to fixing them fast, and you'll learn something new every time. As a new developer you can't possibly read up on every single mistake you might make. http://www.codinghorror.com/blog/2009/12/version-1-sucks-but-ship-it-anyway.html If I misunderstood: Sorry. But that link is still worth reading.
-
I have a player named that in my game. You're saying "he just" has access to other accounts?
-
It isn't advertising like that. It's placing links in an active forum. Search engines loves that stuff.