Jump to content
MakeWebGames

Dayo

Administrators
  • Posts

    2,491
  • Joined

  • Last visited

  • Days Won

    196

Everything posted by Dayo

  1. Dayo

    Layout opinion

    also i would change the background to more of a grunge theme, a great website i use is http://subtlepatterns.com/page/2/?s=dark&submit=Search Dont under estimate how a font can impact the look of your game ;)
  2. Dayo

    Layout opinion

    also i would look at the typography it can change the look/feel of aa theme completely with the correct font
  3. if i had $5k+ spare i would bid, you could make you money back in 3-6 months. How much of the 1,700 is from one person ie i can see someone donated $516 in one go
  4. from what i remember drug district didnt have such a good income did it?
  5. are the passwords stored in plain text?
  6. i just put it off and off because i CBA to learn it while my code was still 'working' but in the end im glad i changed my mind :P
  7. Dayo

    Need a bot

    Why do you want a bot anyway?
  8. what was the error? may become helpful for others who may have a similar problem down the line
  9. how comes you are using a $db class to call the query and then mysqli_fetch_array() to proccess the results? kind of nulls the need for a db class if you are going to mix the two methods. a small function i find usefull is sessionLog() function sessionLog($var) { $_SESSION['log'][] = $var; } //then make a file session.log.php <?php foreach ($_SESSION['log'] as $temp) { echo '<pre>'.print_r($temp, true).'</pre><br />'; } ?> then use the above code to check the query out ie like this function new_pm($u_id, $sid, $t, $ot) { include "mysqli.php"; global $db; $uid = $u_id; $s_id = $sid; $type = $t; $other = $ot; $s_details_sql = $db->query("SELECT * FROM users WHERE userid = '$s_id'"); // i would change this so it only selects the fields you need $s_details = mysqli_fetch_array($s_details_sql); sessionLog($s_details); // see if we are getting details $s_dname = $s_details['display_name']; $s_username = $s_details['username']; $s_dpic = $s_details['display_pic']; $notification_message = "" . $s_dname . " (" . $s_username . ") has sent you a private message!"; $notifcation_nmessage = "<a href='#' onClick='showPMC(". $s_id .",". $other .")'><table class='notification'><tr><td><img src='" . $s_dpic . "' /></td><td>" . $notification_message . "</td></tr></table></a>"; $sql = "INSERT INTO notifications(userid, s_id, type, n_message, n_time) VALUES('$uid', '$s_id', '$type', '$notifcation_nmessage', NOW()"; sessionLog($sql); // now you can run the sql query in phpmyadmin to see whats wrong with it $db->query($sql); }
  10. Dayo

    Chat RPG

    thank you for the bug reports: - you can not send a PM yo yourself now - PMs only show once
  11. Dayo

    Chat RPG

    Todays bug fixes - help was not working correctly - you can now actually chat with each other - PM module was fixed (had to re-write user class) New features - Line hilighted when your name is said - Started work on the inventory and made a function to display data nicley in columns using 's and -'s (to keep with the terminal theme) - as you type and click enter or submit it auto focuses back on the chat box thanks for all the good help so far :)
  12. Dayo

    Chat RPG

    great idea :P
  13. no idea is truly unique, out there somewhere will be a feature similar what ever game you make, but how its made makes it different from everything else. If you do a lottery mod ive often thought of making a scratch card script, maybe add this?
  14. Dayo

    Chat RPG

    Thanks, ive just finished re-writing the user class so i can pass it a username or a id and it will supply me with the information. Now this is done you can now chat with eachother aswell as PM each other. The beauty of this system is that it should only ever hold the chat line in the database for 1-2 seconds or if its a PM untill they see it :)
  15. Dayo

    Chat RPG

    Yea, but i got the main idea from a terminal
  16. Dayo

    Chat RPG

    to get more information onn a command just type -help command ie if i wanted help on the login type -help login Ive done it like this as each command may have diffent commands ie -inventory equip sword -inventory sell sword -inventory information sword -inventory show -inventory show weapons etc ...
  17. Dayo

    Chat RPG

    ive just had to clear the user database as i ran a query that changes everyones password to 123456 when i was testing out teh change password option, sorry :(
  18. Dayo

    Chat RPG

    @!angel you must of caught it as i was re-uploading the $user class
  19. Dayo

    Chat RPG

    The other day i started work on chat RPG after having a random thought about making it, I have finished work on the framework and added only a few basic modules, would be good if you check it out/report any bugs. http://www.chatrpg.co.uk
  20. Dayo

    Cookies

    i didnt bother with editing the import/export i just ran code like this in the console for (var i = 0; i<100000; i++) { ClickCookie();}
  21. Just a small update, ive made the framework (Not used IRC as i wanted to build a chat system from the ground up as ive never fully coded one all by myself :P) and its all tested, currently you can login/register. It is modular so if i want to add a different command its only a matter of adding a file, it also used PDO felt it was about time to switch over from mysql_* been putting it of for a while lol
  22. Dayo

    Styled Numbers

    i done something similar at http://forbiddenage.com/ i done mine via JS but using php you can use str_replace like so $string = date('d/m/Y H:i:s', $timestamp); $find = array('/', ':', '1', '2', '3', ........); $replace = array('<img src="img/dash.png" alt="" />', '<img src="img/colon.png" alt="" />', '<img src="img/1.png" alt="" />', '<img src="img/2.png" alt="" />', '<img src="img/3.png" alt="" />', ........); $new_string = str_replace($find, $replace, $string);
  23. to do what you want you would have to run a cron every second! it would be much easier to use a timestamp i.e. // When updating the DB $newts = time()+5; // 5 second wait $db->query("UPDATE `userstats` SET `newwait`=$newts WHERE id=$userid"); //then when checking run this code if (time()<$ir['newwait']) { echo 'You have to wait for '.($ir['newwait']-time()).' seconds'; }
  24. Yea could be done in irc will have to look I to that
  25. To day whils walking down the street I had a really random idea for a game, it's basically a chat box where you type commands to play I.e. -attack dayo with sword -travelto London -equip sword -top10 attackers -stats dayo Etc... May just throw this together and see what's its like
×
×
  • Create New...