-
Posts
88 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Neon
-
That is appropriate. Its suppose to be more energy recovered per 5 minutes as you level, so you don't have to wait 24 hours to recover 1000 energy, but the formula for the levels under < 5 was really bad. I refactored it and applied a hotfix. I wasted all my energy and 5 minutes later I gained 1.2 back, so it seems to be working. Thanks for the suggestion. Since I changed the regen code, it auto refilled everyone's everything to prevent bugs.
-
If you mean the 3 pages (Gym, Lottery, University) then okay. Our Staff decided to release those POST release, as we didn't want to push the release any further. None of those are game changing pages, and will be out shortly. Its been said for the past 2 months that we weren't going to complete those 3 pages. It is a bit decieving having them on the navigation bar, but for staff they redirect to the proper page (just not finished). I'll finish the lottery this weekend. I think that is far from "half-done".
-
I don't usually double post, but I'm proud to announce the release of SoulRaider. This game is the culmination of months of work. SoulRaider is more than just a game. Its a community. The planning and structure of the entire back-end and game took an entire 2 full spiral notebooks. This game has been examined and coded by 3 staff members over the course of 3 months. Our entire framework is custom, with the exception of Smarty for templates. Our server is quite fast, and we look forward to any interested players. You may sign up at http://soulraider.net . Doing so, will automatically register you for the forums. You may take part in the community discussions where our new news post was posted (http://soulraider.net/forums/topic/41-024-released-public-release/unread/). I'm an Neon over there (duh), and also the Lead Developer & Server Admin. If you have any questions don't hesitate to contact me. I like helping people.
-
Look at the code there is like curly braces and then code and then the elseif. You gotta either put that code in the IF or the ELSE. It cannot be floating in between them, because then PHP isn't expecting an ELSE. EDIT: The whole use of ElseIf is not needed. Since all the queries in the IF are based differently, just use IFs.
-
Buying user database backups price will vary
Neon replied to firecamp's topic in Requests & In Production
Yeah selling another email without the users consent is illegal. Regardless if the terms of service of that database specifically said "can sell email". -
this line $storedTime = intval(time()) + intval(300); should be $storedTime = intval(time() + intval(300)); Otherwise its just storing the current timestamp, thus never adding anything to it.
-
yes it will reset everytime. You gotta store that in the player dB or something and pull from it. So then your checking a stored value VS the time. You cannot just expect $storedTime to hold its value among page changes.
-
I don't know what $smarty.now is stored as but time() gives you the unix timestamp which is this large number of seconds since the unix epoch. Soo. You have to add number of seconds to it. I doubt you want just 10 seconds. So do this. $storedTime = intval(time()) + intval(300); //5 minutes added to timestamp Then check if (intval(time()) >= intval($storedTime)) { // done waiting }
-
Take the current timestamp (time()) and add seconds to that for how long you want them to wait. Then you have a timestamp of which then can do another crime. So check if (time() > $storedTime) { #expired, time go go } else { #not expired yet, subtract time() from $storedTime to how many seconds left }
-
Sencha Touch is very robust and has a tough learning curve, but it'll be very good if you just re-design a strict mobile theme.
-
Vaguely, Were you friends with (i think his name was) Luke? I remember those names a bit. As for the game, just finishing off some balancing issues, then gonna turn off DEBUG mode and reset everyone and let the game roll.
-
kk submitted. "My Sites" returns 404 right now, but probably cause I haven't been approved. Thanks for quick fixes.
-
My constructor initializes the database information from a readonly file. It then unsets the reference to that file and connects to the database. The deconstructor is blank. I believe phpEdit automatically put that in there when I built the class. _connect() and _disconnect() are just some helping classes. I check _connect() on each query. Just in case the connection to the dB has been disconnected or went down. _disconnected is ran when I explicitly want to end the database connection (mainly on shutdown queries).
-
Tried to add a game. INSERT INTO `sites` (`site_name`, `site_desc`, `site_banner`, `site_verification`, `site_ownerid`, `site_cats`, `site_url`) VALUES (''SoulRaider'', ''Can you be in the best gang? Can you use your brain and not your money? Can you battle your way to the top gang and hold the position. Try out SoulRaider today!'', ''http://www.webgamepoint.com/soulraider_1318796574.png'', ''1'', ''11'', ''{1}'', '''') You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SoulRaider'', ''Can you be in the best gang? Can you use your brain and not your' at line 1
-
I see you have headers() in both parts of that IF in criarempresa(), so it just hits that. Then gets directed out of it. Thats why it goes to it without that function. Make sure on your headers you retain the act=criarempresa Just join the other parameters like the msg & mod with the ampersand &
-
Warning: Missing argument 1 for DB::num_rows(), called in /home/oxydenne/public_html/webgamepoint.com/modules/create_account.php on line 16 and defined in /home/oxydenne/public_html/webgamepoint.com/includes/class/mysql.class.php on line 111 Warning: Missing argument 1 for DB::num_rows(), called in /home/oxydenne/public_html/webgamepoint.com/modules/create_account.php on line 20 and defined in /home/oxydenne/public_html/webgamepoint.com/includes/class/mysql.class.php on line 111 On register. Don't think I got inserted into the dB.
-
Looks great. I added my game, since there was a beta field.
-
I tried to take a screenshot of mine to show how my is setup. I dislike doing any "direct" queries so I tried to make a broken down wrapper for anything I'd possibly need to do.
-
Pulling whats left of my hair out please help
Neon replied to Bennyh789's topic in Modification Support
The htaccess file could be needed for numerous reasons. Instead of simply deleting or removing it, why not post the contents of the file here? We can examine it and look for problems. htaccess deals with many things such as rewrites and bans and redirects. Its not something you just wanna delete. It may be causing the 500, but thats because there probably is a mistype. -
Not going through the host? Whats that suppose to mean? php_mail and smtp both "go" through the host. Maybe because your hosting company logs direct smtp emails, but not php_mail. Rest assured, its still being counted. Otherwise anyone could sign up and begin to spam all of eternity. I'd be interested in seeing the headers for those emails. My main problem is getting emails delivered. Sites like AOL/Hotmail won't accept my mail unless all the headers are perfect. So I said, eff it, and pay postmark for my emails.
-
I don't know if copying and pasting messed up that code, but that had soo many errors. On line 43, they don't say what part of $npdata they are referencing, and I don't know MCCodes at all. So I put $npdata['npADDER'], if that doesn't work then replace that with something else. (line 43 on your code, no clue on mine) <?php include "globals.php"; print "<h3>Newspaper</h3>"; print <<<EOF <table width=90% cellspacing=1 class='table' border=2> <tr> <td class=h><center><a href="http://job.php" target="_blank"><font color='red'>YOUR JOB</font></a></td> <td class=h><center><a href="http://gym.php" target="_blank"><font color='red'>LOCAL GYM</font></a></td> <td class=h><center><a href="http://halloffame.php" target="_blank"><font color='red'>HALL OF FAME</font></a></td> <td class=h><center><a href="http://gangcentral.php" target="_blank"><font color='red'>LOCAL GANGS</font></a></td> <td class=h><center><a href="http://index.php" target="_blank"><font color='red'>MY HOUSE</font></a></td> </tr> <tr> <td class=h><center><a href="http://userlist.php" target="_blank"><font color='red'>LOCAL RESIDENTS</font></a></td> <td class=h><center><a href="http://stats.php" target="_blank"><font color='red'>CITY STATS</font></a></td> <td class=h><center><a href="http://usersonline.php" target="_blank"><font color='red'>PEOPLE AWAKE</font></a></td> <td class=h><center><a href="http://gangwars.php" target="_blank"><font color='red'>CURRENT WARS</font></a></td> <td class=h><center><a href="http://estate.php" target="_blank"><font color='red'>HOUSES FOR SALE</font></a></td> </tr> <tr> <td colspan=6>"; EOF; print <<<EOF <table width=90% cellspacing=1 class='table'><center><h3>Player Advertisements</h3><center> | <a href="http://newspaper.php?action=add" target="_blank"><b>Buy An Advertisement ($10,000)</b></a>' EOF; if($ir['user_level'] > 1) { print " | <a href=newspaper.php?action=all><b>DELETE ALL</b></a>"; } $anpdata=mysql_query("SELECT * FROM npaper"); $q=mysql_query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); print "<marquee speed=2 direction=up onmouseover='this.stop()' onmouseout='this.start()' class='textbox'>"; while($npdata=$db->fetch_row($anpdata)) { $us=mysql_query("SELECT username FROM users WHERE userid={$npdata['npADDER']}"); $us=$db->fetch_single($us); $time=date('F j',$npdata['npTIME']); print <<<EOF <hr> <b>Ad By: <a href="http://viewuser.php?u={$npdata["npADDER"]} target="_blank"><font color=red>{$us}</font> [{$npdata['npADDER']}]</a> | Added On: {$time}</b> EOF; if($r['user_level'] != 1) { print " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}><b>DELETE</b></a>"; } print " <i><u>{$npdata['npTITLE']}</i></u> <i>{$npdata['npBODY']}</i> "; } print "<hr /></marquee></table>"; $q=mysql_query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); if($r['user_level'] != 1) { if($_GET['action'] == "all") { if($r['user_level'] != 1) { mysql_query("TRUNCATE TABLE npaper"); print "Newspaper Ads All Cleared! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } else if($_GET['action'] == "npID") { if($r['user_level'] != 1) { mysql_query("DELETE FROM npaper WHERE npID={$_GET['npID']}"); print "News Paper Ad ID {$_GET['npID']} deleted! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } } if($_GET['action'] == "add") { print "<h3>Add Advertisement ($10,000)</h3> <form action='newspaper.php?action=added' method='post'> Ad Title:* <input type='text' name='npTITLE' class='textbox'> * Ad Body:* <textarea rows=14 cols=65 name='npBODY' class='textbox'></textarea> * <input class='textbox' type='submit' value='Place Ad ($10,000)' /> </form> <font color=red><b>WARNING:</b> Only plain text will work Do not advertise other games Follow the rules."; } if($_GET['action'] == "added") { if($ir['money']>9999) { print "Congratulations, you bought an ad for \$10,000! "; mysql_query("UPDATE users SET money=money-10000 WHERE userid=$userid"); $title=str_replace(array("\n"),array(" "),strip_tags($_POST['npTITLE'])); $body=str_replace(array("\n"),array(" "),strip_tags($_POST['npBODY'])); $q=mysql_query("INSERT INTO `npaper` VALUES (NULL, '$userid', '$title', '$body', unix_timestamp())"); print "Advertisement was successfully added! <META HTTP-EQUIV=Refresh CONTENT='5;url=newspaper.php'>"; } else { print <<<EOF You do not have enough money to place an advertisement. <a href="http://newspaper.php" target="_blank">Back</a> EOF; } } print"</td></tr> <tr> <td td colspan=6> <center>$content</td> </tr> </table>"; $h->endpage(); ?> If you trust me enough to put the file in its place with the rest of the files, I can fix any other errors.
-
Pulling whats left of my hair out please help
Neon replied to Bennyh789's topic in Modification Support
Theres a handful reasons a 500 error could be thrown and none are really set in stone. Your best bet is to knock out the easy ones of checking php/apache logs and looking for anything. Some other reasons I know off the top of my head php.ini is corrupted or missing, and your setup is designed to look for it. (common with shared hosting) You use htaccess files and you messed up one of the rewrites Your doing an action that hits your php.ini max (like max_execution or max_upload, and it doesn't know how to respond, so pops a 500. -
Hello all, Chiming in again with another update. We released 0.1.9b. This update squashed most of our remaining bugs and problems. Our final thing to do is just balance the game, and holy cow. I give all my respect to anyone who has created an advance fighting formula. We are at 600 lines for this fighting + money theft, exp gain, health loss, etc and it works well for a couple of fight instances but then just bugs out on some. Were logging insane amounts of data per fight and are digging through the logs fixing bugs one by one. We hope to go public soon, as always you may join the beta testing over at SoulRaider with the invite code of "ra1n". @Arson. I will add the game on the next release.
-
This is just a poor regex statement in general. Any poor player using any of those words, actually just one, will have it replaced to a blank char. The | in between the words means OR, so if there is no "from" in their input, it will check for "select" etc. Once it finds one, I believe the | skips the rest until the end. So I could type "Hello from Brazil, DELETE * FROM members;" It would replace from with "" and become, "Hello Brazil, DELETE * FROM members;". Once I get to work I have some handy regex application on my computer. I'll go ahead and create one for you. My memorization isn't good enough, but I think it involves asterisks and brackets.
-
Thats just a function. Post it outside of your current function or class or method, or whatever. Then just reference it. Depending if your in a class file or not simply time_duration() or self::time_duration() or $this->time_duration(). I shouldn't of posted, since I code in a custom framework & I don't know one bit of how the structure of MCCodes is.