Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,137
  • Joined

  • Last visited

  • Days Won

    35

Everything posted by Djkanna

  1. Ah fair enough, still a pretty nice looking tool.
  2. Stanford published a paper on 'breaking' captchas, maybe you'll find some 'tips' in it. Captcha's are annoying, and not that useful...
  3. This one looks rather good: ZBrush I think it's more geared towards characters rather than objects. There's a free (somewhat the same as Zbrush) called Sculptris which is rather fun to play around with.
  4. Djkanna

    Vps

    It's probably a little more expensive that what your budget is, you could probably get away with grabbing their GS service depending on what you actually need, anyway I'd recommend Media Temple.
  5. I tend to use RegExr for testing/writing regular expressions, it makes my life much easier. :)
  6. From what I can tell, (my knowledge of regular expressions or lack of) that would only capture for example: `select` but not `select from`. The original was pretty much a silly way of going about it, considering it would have removed those words from every input passed through the function, those poor players not being able to use the word 'where' within their messages.
  7. I did, did I? /me must go check...
  8. I did that part, like the way I did as I did not know how you came about becoming a noble or a pirate. It was either a choice of picking which, or being promoted therefore I picked the latter and did it the way I did. Now I know that you have to pick on register, either noble or pirate, a simple if/else will do fine, in that sense Nickson is right.
  9. Try this: <?php class headers { function startheaders() { global $set; echo ' <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>'.htmlentities($set['game_name'], ENT_QUOTES, 'UTF-8').'</title> '; } function userdata ($ir, $lv, $fm, $cm, $dosessh = 1) { if ($ir['class'] == 'pirates') { include 'header2.php'; } else if ($ir['class'] == 'nobles') { include 'header7.php'; } else { //Include a default one perhaps? } } }
  10. RIP, helping shape technology as we know it today.
  11. No problem. (:
  12. If your using the jQuery library, you may have better luck using the jKey plugin Then you do something like (portion taken from their samples page): [js] $(document).jKey('up, left, down, right, up+right, up+left, down+right, down+left', function (key) { //Current location is y = 2 x = 2 if (key == 'up') { player.location = 'n:3,2'; // North, y =3, x =2 } else if (key == 'down') { player.location = 's:1,2'; // South y = 1, x = 2 } else if (key == 'left') { player.location = 'w:2,1'; // West y = 2, x = 1 } else if (key == 'right') { player.location = 'e:2,3'; // East y = 2, x = 3 } else if (key == 'up+right') { player.location = 'ne:3,3'; // N'East y=3, x = 3 } //So on and so forth. }); [/js] for example. Urgh didn't see your previous code Shady, would have saved me thinking of an appropriate value for the updated location. T.T
  13. <a href="whatyounamedthefile.php" title="Buy yourself out of jail">Buyout (20) Crystals.</a> ^SomeRandomBastard did it above.
  14. <?php require_once (dirname (__file__) .'/globals.php'); //Define the price. $bailCost = 20; // Change //Check for actually in jail. if ($ir['jail'] > 0) { //Check that they have enough crystals to continue. if ($ir['crystals'] > $bailCost) { //Update the users, crystal amount and jail amount. $db->query ('UPDATE `users` SET `jail` = 0, `crystals` = `crystals` - '.$bailCost.' WHERE (`userid` = '.$userid.')'); echo '<p>You\'ve paid to get yourself out of jail...<br /><a href="index.php" title="Back to home">Back to home</a></p>'; } else { //Not enough crystals message. echo '<p>You cannot afford to buy yourself out of jail.<br /><a href="index.php" title="Back to home">Back to home</a></p>'; } } else { //Not actually in jail at the time. echo '<p>You\'re not currently in the jail.<br /><a href="index.php" title="Back to home">Back to home</a></p>'; } //Show footer. $h->endpage(); Very simple to do... Note: I have no idea, if it will work on the newest MCCodes release, no idea what has changed within it.
  15. If you take from the code I posted before, you could try; <?php $username = 'Smokey'; $colours = array ( '#FFF', '#000', '#eee' ); //Add more... $newName = ''; for ($i = 0; $i < strlen($username); $i++) { $newName .= '<span style="color: '.$colours[array_rand($colours)].'">'.$username[$i].'</span>'; } echo $newName; ?> To generate a random value of that colours array and use that value as that characters colour, however this will change each page load, and has the possibility to pick the exact same colour for each character. (script it untested but should work fine.)
  16. All the time. :O Just watched the one with Willie Nelson staring. >_<
  17. Does it still star Alyson Hannigan?
  18. Djkanna

    Jobs?

    I do come on MSN occasionally, in-fact I am on now. :P
  19. House M.D season 8 (Oct), cannot wait! Supernatural season 7 (the other day premiere), pure awesomeness. Law and Order: SVU (Sep), :=D That's about all I can think of that's in new seasons lately, as for Two and a half men, I didn't really like it much with Sheen, but I may give it a try when it airs over here.
  20. Djkanna

    Jobs?

    It's hard to find jobs, in many places bud. As for references, if this is your first job, put down your head-master of your high school, or college tutor, or if you've worked for a friend ask them to be your reference. Good luck in your job hunt.
  21. I believe, people like to learn from code posted on here, therefore your code (all scrunched up, on-liner doing all the work) is unreadable to most. Yes it is, otherwise it will throw an undefined variable notice. Let me guess you develop with notices turned off? (not wise & lazy) At the whitespace comments: Personal preference, once again I enjoy the fact that my code can be read by other people. ;) -DJK.
  22. Oh just for you. Dominion?
  23. Technically this: http://makewebgames.io/showthread.php/36289-Attack-List.-%28Request%29 But first proper mod posted here: http://makewebgames.io/showthread.php/36594-Different-way-of-going-about-User-Display-Pictures-. Scary but (13th, May 2010).
  24. From my experience, usually the ones with more experience with these games, know that the Mafia genre is overused, and tend to stay away from it. There is a few good MCCodes games that are no where near a Mafia game, take Ruler Of Zu for example, it's about Dragons how un-mafia can you get? I guess a lot of the people that start out creating games take the easy route as they just want a game, MCCodes is more suited for that style of game, out the box, therefore those that use MCCodes usually use it for a Mafia game.
  25. Over-complicated... <?php $username="SMOKEY_TEK"; $colours = array ( 'even' => '#FF0000', 'odd' => '#000' ); $length = strlen($username); $newName = ''; for ($i = 0; $i < $length; $i++) { $state = (($i+1) % 2 == 0) ? 'even' : 'odd'; $newName .= '<span style="color: '.$colours[$state].'">'.$username[$i].'</span>'; } echo $newName; Would be a simpler method, also much easier to read. Or the link RulerOfZu posted. Or even http://blog.kungf.eu/wp-content/uploads/gradient.class.phps, may be a more suitable option, if you're using it for multiple members.
×
×
  • Create New...