Jump to content
MakeWebGames

Sim

Members
  • Posts

    2,392
  • Joined

  • Last visited

  • Days Won

    62

Everything posted by Sim

  1. Will give $25 for DS =)
  2. Sounds like a great project. Seems like a battle.net project but with other games. best of luck. Wish I knew more about cell phone development. Sure I could pick it up quick but don't really have the time right now.
  3. pick a template and modify it: free to use: http://www.freecsstemplates.org/css-templates/ what i do for every start up project I start.
  4. I like MC codes. EzRPG and Bertrand new engine. I never purchased any engine or used at but have seen all code for them and they all set standard for new games and allowed others to learn from. For me to purchase any engine it must have graphics rendering and some sort of easy plug system.
  5. why not mix both... ;)
  6. http://www.php.net/time
  7. You hear enough people complaining about games saying there is not enough content? So how much content would you say is enough to launch a game? ;) I plan on attempting some crime based game for fun. I have 100 crime text. Not sure how far I should spread them based upon levels. I am thinking maybe up to level 5? SO thats like 20 different crimes up per level so far.
  8. Its hard to give a quote. You should be providing the project plan for us to give the quote. I can quote 1,000$ for a mc-code style while another guy quotes 10,000$ for something 10x bette then a mc-code style game. ;) get the drift?
  9. Send me a PM or message me on msn; [email protected] and we discuss this.
  10. I 2nd bertrand's #1 and #3
  11. o wow a MC-Codes based on sex. Great idea!!!!! =] No wondering your being hounded by paypal... By reading description, its based upon rape and stuff. lol I would go with a direct bank transfer approach or maybe google checkout like thing. debit card/cc checkout? Lots of alternative's. A lot of host now-a-days have a thing like this for store's, can easily be alternated to allow game credits.
  12. PRICE: $75/copy A few people have inquired about this script and I have developed it a bit further. mostly bug fixes but a few bug fixes. Heres the latest list of features: To create games, go to http://www.orpgcreator.com To view my demo account visit: http://www.hehrpg.com/Sim/ user: testing pass: testing This is an admin account This scritp allows "anyone" to create there own game with simple data entry which is hosted on one of owners domains. The script requires mod rewrite and uses OOP techniques and uses smarty templating. All php and html code is seperate.   Game Owners can do the following: Read oRPG Creator News Vote in oRPG Creator Polls Create/Manage Tasks (quest, crimes, missions) Create/Manage Items with images Create/Manage Bot's (NPC's) with images Create/Manage Levels Create/Manage Custom Pages Change Banner Change Name of Task/Gold/Turns/# of turns starting with/# of turns regenerated every few minutes Create News View/Delete Players View some Basic Stats Game Players Can: Complete Task(quest, crimes, missions) Purchase Items Equip Items Battle Bots (NPC's) Battle Other Players View Player Stats View Events (When a task is complete, or when attacked) View Homepage (game activity feed) Level up now!! Distribute Stats upon leveling up Refer Friends via referral link View Top Players Change Avatar Master Admin Panel Create News For Game Owners Create Polls For Game Owners Mass eMail Owners/Players View Games Add new domain (like hehrpg.com)   misc notes HTML emails are sent during orpgcreator registration activation email and welcome emails   Some code samples: Code samples: Partial User class:   <? include "includes/constants.php"; class user { //vars private $db; private $smarty; //place holder function __autoload() { } public function __construct($dbRef, $smartyRef) { $this->db = $dbRef; $this->smarty = $smartyRef; //see what we doing here. //login, register, forgot password, or reset password switch ($_GET['action']) { case "activate": $this->userActivate(); break; case "forgot": $this->userResetPass(); break; case "login": $this->userLogin(); break; case "logout": session_destroy(); $_SESSION[$_SESSION['game'] . '_msg'] = "You are now logged out..."; header("Location: " . $_SESSION[$_SESSION['game'] . '_url'] . "/"); break; case "register": $this->userRegister(); break; case "resend": $this->userResendCode(); break; } $this->smarty->assign("msg", $_SESSION[$_SESSION['game'] . '_msg']); unset($_SESSION[$_SESSION['game'] . '_msg']); } //attempt to login user public function userLogin() { //check if username pass string test if($this->checkUser() == true && $this->checkPass() == true) { //query to check if user name or email in use $pass = sha1(strtoupper($_POST['textUser']) . $_POST['textPass1']); $rec = $this->db->fetch("SELECT userImage, userLogins, userID, userHandle, userActCode, userRank, COUNT(userID) as ammount FROM " . USER_TABLE . " WHERE userHandle='" . $this->db->escape($_POST['textUser']) . "' AND userPass='" . $this->db->escape($pass) . "' AND userGameRefID='" . $_SESSION[$_SESSION['game'] . '_userGameID'] . "'"); //user name and password match if($rec['ammount'] == 1) { //user account activated if($rec['userActCode'] == 0) { //session $_SESSION[$_SESSION['game'] . '_userID'] = $rec['userID']; $_SESSION[$_SESSION['game'] . '_userRank'] = $rec['userRank']; $_SESSION[$_SESSION['game'] . '_userImage'] = $rec['userImage']; $_SESSION[$_SESSION['game'] . '_userHandle'] = $rec['userHandle']; //update last activitity $data = array("userLastActive" => time(), "userLogins" => $rec['userLogins']+1, "userLastIP" => $_SERVER['SERVER_ADDR']); $this->db->update(USER_TABLE, $data, "userID='" . $rec['userID'] . "'"); header("Location: " . $_SESSION[$_SESSION['game'] . '_url'] . "/game/feeds/"); } else { //display error $_SESSION[$_SESSION['game'] . '_msg'] = "You must first activate your account..."; } } else { //display error $_SESSION[$_SESSION['game'] . '_msg'] = "Incorrect User name and password combination..."; } } } //attempt to register user public function userRegister() { //check if username, password, email pass string test if($this->checkUser() == true && $this->checkEmail() == true) { //query to check if user name or email in use $rec = $this->db->fetch("SELECT COUNT(userID) AS ammount FROM " . USER_TABLE . " WHERE userGameRefID='" . $_SESSION[$_SESSION['game'] . '_userGameID'] . "' AND (userHandle='" . $this->db->escape($_POST['textUser']) . "' OR userEmail='" . $this->db->escape($_POST['textEmail']) . "')"); //user name and email not in use if($rec['ammount'] == 0) { if($_POST['textPass1'] == $_POST['textPass2']) { //encrypt pass $pass = sha1(strtoupper($_POST['textUser']) . $_POST['textPass1']); //query to check if email verification is set $rec = $this->db->fetch("SELECT settingResult FROM " . SETTINGS_TABLE . " WHERE settingType='actRequired' AND settingGameRefID='" . $_SESSION[$_SESSION['game'] . '_userGameID'] . "'"); //activation required if($rec['settingResult'] == 'y') { //set activation code $code = rand(10000, 99999); //insert userdata $data = array("userGameRefID" => $_SESSION[$_SESSION['game'] . '_userGameID'], "userHandle" => $_POST['textUser'], "userEmail" => $_POST['textEmail'], "userPass" => $pass, "userRegDate" => time(), "userActCode" => $code); $this->db->insert(USER_TABLE, $data); //dispatch activation email $this->userEmail($_POST['textEmail'], array("url", "user", "code"), array($_SESSION[$_SESSION['game'] . '_url'], $_POST['textUser'], $code), $type = "activate"); //display msg $_SESSION[$_SESSION['game'] . '_msg'] = "Account successfully created. You must first activate your account before logging in..."; } else { //activation not required. insert user. log user in $data = array("userGameRefID" => $_SESSION[$_SESSION['game'] . '_userGameID'], "userHandle" => $_POST['textUser'], "userEmail" => $_POST['textEmail'], "userPass" => $pass, "userRegDate" => time(), "userActCode" => 0); $this->db->insert(USER_TABLE, $data); $rec = $this->db->fetch("SELECT userID FROM " . USER_TABLE . " ORDER BY userID DESC LIMIT 1"); //create user character $this->createChar($rec['userID']); //dispatch welcome email(thanks) $this->userEmail($_POST['textEmail'], array("url", "user"), array($_SESSION[$_SESSION['game'] . '_url'], $_POST['textUser']), $type = "thanks"); //log user in $this->userLogin(); } } else { //display error $_SESSION[$_SESSION['game'] . '_msg'] = "Passwords do not match..."; } } else { //display error $_SESSION[$_SESSION['game'] . '_msg'] = "User name and/or email address is allready in use..."; } } } //create users character public function createChar($userID) { $rec2 = $this->db->fetch("SELECT settingResult FROM " . SETTINGS_TABLE . " WHERE settingType='turnMax' AND settingGameRefID='" . $_SESSION[$_SESSION['game'] . '_userGameID'] . "'"); //insert character data $data = array("charGameRefID" => $_SESSION[$_SESSION['game'] . "_userGameID"], "charUserID" => $userID, "charTurnsLeft" => $rec2['settingResult'], "charTurnsMax" => $rec2['settingResult']); $this->db->insert(CHAR_TABLE, $data); }   admin file for adding/managing/deleting levels   <? include "../includes/constants.php"; class levels { //vars private $db; private $smarty; private $game_id; public function __construct($dbRef, $smartyRef, $gameRefID) { //vars $this->db = $dbRef; $this->smarty = $smartyRef; $this->game_id = $gameRefID; //if inserting news if(isset($_POST['submitForm'])) { $this->levelInsert(); } //if listing level's if($_GET['action'] == "manage") { //if wanting to edit item if(isset($_POST['StartEditDetails'])) { $this->displayEdit(); } //if submitting edit item form elseif(isset($_POST['EditDetails'])) { $this->levelEdit(); $this->levelList(); } elseif(isset($_POST['StartDelete'])) { $this->smarty->assign("delete", "y"); $this->smarty->assign("id", $_POST['hidden']); } elseif(isset($_POST['ConfirmDelete'])) { $this->levelDelete(); $this->levelList(); } else { $this->levelList(); } $this->getNextLevel(); } $this->smarty->assign("site_page", "Create Level"); } //display edit level form public function displayEdit() { $rec = $this->db->fetch("SELECT COUNT(levelID) AS ammount, levelNum, levelExpNeeded FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "' AND levelID='" . $this->db->escape($_POST['hidden']) . "'"); if($rec['ammount'] == 1) { //template vars $this->smarty->assign("level", $rec['levelNum']); $this->smarty->assign("exp", $rec['levelExpNeeded']); $this->smarty->assign("id", $_POST['hidden']); $this->smarty->assign("edit", "y"); } } //display edit level form public function levelEdit() { $rec = $this->db->fetch("SELECT COUNT(levelID) AS ammount, levelNum, levelExpNeeded FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "' AND levelID='" . $this->db->escape($_POST['hidden']) . "'"); if($rec['ammount'] == 1) { //template vars $Data = array("levelExpNeeded" => $_POST['textEXP']); $this->db->update(LEVELS_TABLE, $Data, "levelID='" . $this->db->escape($_POST['hidden']) . "'"); $this->smarty->assign("msg", "Level updated..."); } } //delete level public function levelDelete() { //fetch information $rec = $this->db->fetch("SELECT COUNT(levelID) AS ammount, levelNum FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "' AND levelID='" . $this->db->escape($_POST['hidden']) . "'"); //record exist for level belonging to game if($rec['ammount'] == 1) { $this->db->del("DELETE FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "' AND levelID='" . $this->db->escape($_POST['hidden']) . "'"); $this->db->inc("UPDATE " . LEVELS_TABLE . " SET levelNum=levelNum-1 WHERE levelOwnerID='" . $this->game_id . "' AND levelNum>" . $rec['levelNum']); } } //list all levels public function levelList() { $Data = array(); //query to get all tasks that player can do.. $rows = $this->db->fetch_array("SELECT * FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "' ORDER BY levelNum ASC"); //get all records foreach($rows as $rec) { //set data for template $Data[] = array("id" => $rec['levelID'], "level" => $rec['levelNum'], "exp" => $rec['levelExpNeeded']); } //template vars $this->smarty->assign("looper", $Data); $this->smarty->assign("list", "y"); } //insert new created level public function levelInsert() { if($_POST['textEXP'] > 0) { $Data = array("levelExpNeeded" => $_POST['textEXP'], "levelNum" => $this->getNextLevel(), "levelOwnerID" => $this->game_id); $this->db->insert(LEVELS_TABLE, $Data); $msg = "Level created..."; } else { $msg = "Experience must be greater then 0"; } //template var $this->smarty->assign("msg", $msg); } public function getNextLevel() { //get # of levels in game, next level would be ammount + 1 $rec = $this->db->fetch("SELECT COUNT(levelID) AS ammount FROM " . LEVELS_TABLE . " WHERE levelOwnerID='" . $this->game_id . "'"); //var $next_level = $rec['ammount'] + 2; //template var $this->smarty->assign("level", $next_level); //return level return $next_level; } } ?>
  13. Sim

    headers allready sent =(

    I think i'll go with meta refresh. Forgot about that method. thanks a lot sniko!!
  14. My 2 files: the exact error: Warning: Cannot modify header information - headers already sent by (output started at /home/founder/public_html/orpgcreator.com/createrpg.php:1) in /home/founder/public_html/orpgcreator.com/createrpg.php on line 99 createrpg.php <? include "config.php"; //if creating new game if(isset($_POST['CreateGame'])) { //RESERVED WORDS VAR $reserved_game_names = array("default"); //vars $ip = $_SERVER['REMOTE_ADDR']; $game_server = mysql_real_escape_string($_POST['selectServer']); $game_url = mysql_real_escape_string($_POST['textGameURL']); $game_url_unreal = str_replace(" ", "", strtolower($game_url)); $game_name = mysql_real_escape_string($_POST['textGameName']); $game_desc = mysql_real_escape_string($_POST['textDesc']); $name = mysql_real_escape_string($_POST['textName']); $handle = mysql_real_escape_string($_POST['textHandle']); $email = mysql_real_escape_string($_POST['textEmail']); $pass = mysql_real_escape_string($_POST['textPass']); $goals = mysql_escape_string($_POST['textMsg']); $code = rand(10000,99999); $time = time(); //check if name was left blank if (empty($name)) { //set error message $err .= "Name was left blank...<br>"; } //check if desc is blank if (empty($game_desc)) { $err .= "Description was left blank..<br>"; } //check if email was left blank or invalid if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email) || empty($email)) { //set error message $err .= "Email was left blank or incorrect...<br>"; } //check if username in use $result = mysql_query("SELECT ownerID FROM game_owners WHERE ownerHandle='$handle'"); if (mysql_num_rows($result) == 1 || empty($handle)) { //set error message $err .= "Username in use...<br>"; } //check if game url in use or a RESERVED WORD $result = mysql_query("SELECT ownerID FROM game_owners WHERE ownerGameURL='$game_url'"); if (mysql_num_rows($result) == 1 || in_array($game_url, $reserved_game_names) || empty($game_url)) { //set error message $err .= "Game url allready in use...<br>"; } //check if game server exists $result = mysql_query("SELECT serverID FROM game_servers WHERE serverName='$game_server'"); if (mysql_num_rows($result) == 0) { //set error message $err .= "Game server does not exist...<br>"; } else { //get server ID $rec = mysql_fetch_object($result); } //if password empty if(empty($pass)) { $err .= "Admin password was left blank..."; } //check if no errors if(empty($err)) { //insert new user query mysql_query("INSERT INTO game_owners (ownerName, ownerIP, ownerHandle, ownerPass, ownerEmail, ownerActCode, ownerGameURL, ownerGameURLReal, ownerGameServerID, ownerGameGoals, ownerRegDate) VALUES ('$name', '$ip', '$handle', '$pass', '$email', '$code', '$game_url_unreal', '$game_url', '$rec->serverID', '$goals', '$time')") or die(mysql_error()); //fetch latest game $result = mysql_query("SELECT ownerID FROM game_owners ORDER BY ownerID DESC LIMIT 1"); $game = mysql_fetch_object($result); mysql_query("INSERT INTO settings(settingType, settingResult, settingGameRefID) VALUES ('gameDesc', '$game_desc', '$game->ownerID')") or die(mysql_error()); mail($email, "oRPG Creator.com New Game Activation", "Please visit http://www.orpgcreator.com/activate.php?server=$game_server&code=$code&game=$game_url_unreal&email=$email", "From: oRPGCreator.com <[email protected]>\n\r"); header("Location: activate.php?email=$email"); //$err = "An email has been dispatched to $email to activate your game from [email protected]"; } } ?>   my config.php file   <? $dbhost="localhost"; // usually "localhost" $dbname="dd_dumjy"; $dbuser="sdaf_sdaf"; $dbpass="asdfadsfdsaf"; $connection = mysql_connect("$dbhost", "$dbuser", "$dbpass"); mysql_select_db("$dbname", $connection); max_chars = 4; ?>   I just dont understand why it just stopped redirecting... :(
  15. Sim

    Need crimes

    Done got.. thanks. thread can be closed!!
  16. Sim

    flash game intro

    I remember someone made.aflash game intro for someone awhile ago for.a hacking game. Anyone remember who did that
  17. Ishmell did u get my pm?
  18. sending you a PM now... ;)
  19. Sim

    "Coding" or "Programming"

    You know there is phpWindows? ;) It alllows for people to make windows applications with php language.
  20. Sim

    "Coding" or "Programming"

    I prefer php Superstar!!
  21. i have for sale 100 crime text's for sale must sell today for 30$ heres an example of the first 3   payment by paypal: 1: Score some of the good stuff Win: You found Slim Shady and made a deal, no problem. Fail: The cops busted you before you were even halfway home.   2: Mug an old lady Win: You grabbed her purse and escaped real quick. Fail: That old lady was really a crossdresser and he kicked you into the next dimension.   3: Break into a private safe Win: You listened carefully as you turned the dial, and now whatever's inside is yours. Fail: The owner got home right as you were about to crack it. Busted.
  22. Thanks sniko ;)
  23. My query is returning 0 for all COUNT's and NULL for rest any ideas.   SELECT COUNT( cheat.cheatID )AS cheats, COUNT( review.reviewID )AS reviews, COUNT( image.screenID )AS images, COUNT( news.newsID )AS newz, COUNT( video.videoID )AS videos, game.gameID, game.gameName, game.gameFType FROM games AS game, game_cheats AS cheat, game_reviews AS review, game_screens AS image, game_news AS news, game_videos AS video WHERE cheat.cheatGameID = game.gameID AND review.reviewGameID = game.gameID AND image.screenGameID = game.gameID AND news.newsGameID = game.gameID AND video.videoGameID = game.gameID ORDERBY game.gameName DESC LIMIT 0 , 50
  24. I am currently using the following code: select Month is 1 or 2 digits day is 1 or 2 digits year is 4 digits $release_date = strtotime($_POST['selectMonth'] . "/" . $_POST['selectDay'] . "/" . $_POST['selectYear']);   release date is always blank... any ideas?
  25. Wheres the screen shots?
×
×
  • Create New...