Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

dg1423

Members
  • Posts

    543
  • Joined

  • Last visited

    Never

Everything posted by dg1423

  1. I just thought of this, and I thought it would be funny to use on an English teacher: After class, go up to your teacher and write "I need to go to where the Finish is!" on the board or a paper. Make sure to capitalize the F in Finish. ask if there's anything wrong with the sentence and show it to your teacher. I wanna here some responses before I post the answer
  2. dg1423

    Funny WWII gif

    ![](http://img258.imageshack.us/img258/752/wwiiih2.gif)
  3. Teletubbies is the most racist show I have ever watched. 1) there's the black one (with green "fur" or w/e) who listens to hip-hop and breakdances, his toy-thing is a hat (cuz he likes to dress all cool). 2) there's the asian one (with red "fur" or w/e) who, as said by the company, only speaks mandarin chinese and has a horrific english accent. Her toy-thing is a scooter because, srsly, it's the only high tech toy thing any of them have. Also, the only one that sings (srsly, what's with asians and karaoke?) 3) there's the white one (with purple "fur" or w/e, noted to probably be from San Fransisco) is gay, has a purse, likes to prance around like a fairy. nuff said. 4) there's the "hispanic" one (with the yellow "fur" or w/e) plays with a ball (the cheapest of all the toys), is secretly a ballerina, always cleaning things. I don't mean to offend anyone, but srsly, wtf is wrong with the teletubbies?
  4. I just learned how to protect websites from proxies! OWNT!
  5. it said it was your birthday, so Happy B-Day! xD don't forget to eat lot's of cake (and send me some)
  6. http://en.wikipedia.org/wiki/List_of_sovereign_states#E Epic, now we need a flag.
  7. "Please note that we have added a consequence for failure. Any contact with the chamber floor will result in an unsatisfactory mark on your official testing record. Followed by death. Good luck!" ~GLaDOS
  8. dg1423

    Oh Noes!

    I know no one cares, but my laptop just committed suicide. It's out of batteris and won't charge xD. Any one know how to re-solder a charge port on a Compaq? ::)
  9. well, I have to say, I'm picky about what games I help out with. But I AM looking to help someone with their game if it's up to snuff. just one thing, I dun like fan-games >__<
  10. I just realized something that has caused me to start the dispute "Are Marsh and Mellowz the same person?" Well, to start off I'd like to explain exactly what caused me to think this; everyone knows that Marsh's name is from his email address and original name Marshmelloman0, so obviously it was about Marshmellows, can you see it already? Mellowz name doesn't seem to extend from anywhere, and he just suddenly popped up out of no where doing all this awsome stuff for eclipse, FOR FREE. and what's not else to look at is the fact that Marsh + Mellowz = MARSHMELLOWZ OMG CAN YOU SEE IT NOW!!!!????
  11. Hey guys! I've been making these IRL cards and I want to make a game out of them I'm attaching about 40 or so cards in a .rar file for you guys to see AGAIN, HIGH AMOUNTS OF RACISM INSIDE
  12. Post all your pictures of FAIL here: i.e: ![](http://blog.pbwiki.com/wp-content/uploads/2007/03/fail.jpg) ![](http://forum.alsacreations.com/upload/2043-fail-camera.jpg) ![](http://www.lafferty.ca/wp-content/uploads/2007/05/fail-24.jpg) ![](http://icanhascheezburger.files.wordpress.com/2007/10/128347587844687500fail.jpg) ![](http://i165.photobucket.com/albums/u59/wolfclown1/fail.jpg) ![](http://img357.imageshack.us/img357/2787/fail2it9.jpg) ![](http://masklinnscans.free.fr/4chan/fail.jpg) ![](http://www.bobpitch.com/anon/bigbabyjebus_Channel-7-newscaster-looking-for-rapist.jpg) ![](http://i157.photobucket.com/albums/t64/chickiepea86/fail.jpg) ![](http://www.yeah-oops.com/wp-content/uploads/fail.jpg) ![](http://i206.photobucket.com/albums/bb316/Snaileb/fail.jpg) ![](http://i148.photobucket.com/albums/s16/r3v3r3nd_album/fail1.jpg) ![](http://i36.photobucket.com/albums/e35/omgitsvince/TruckOfFail.jpg) ![](http://farm2.static.flickr.com/1212/1272549006_294f713d3c.jpg) ![](http://i188.photobucket.com/albums/z316/DeamonX3/Fail.jpg) ![](http://i61.photobucket.com/albums/h66/smdouglas82/fail.jpg) ![](http://i43.photobucket.com/albums/e399/sailorman_glh/success-fail.jpg) ![](http://i89.photobucket.com/albums/k218/Buruku/FAIL.jpg) ![](http://i177.photobucket.com/albums/w233/caturdayskwerl/fail-i-told-you.jpg) ![](http://i170.photobucket.com/albums/u250/kurebo/failatfailing.jpg) ![](http://tnet.no/bin/failfail.jpg) (^ Possibly gray's mom? ^) ![](http://defendingthepaederotic.files.wordpress.com/2007/02/fail02.jpg) ![](http://bluraysucks.com/media/entities/97-881-fail.jpg) ![](http://img259.imageshack.us/img259/1583/fail01cql1.jpg) ![](http://gobears.files.wordpress.com/2007/04/cubs-failure.jpg) (^ A meesage to people who constantly post dumb questions (especially in the 'General Chat' board, psh)) ![](http://mirror.servut.us/kuvat/fail_2.jpg) ![](http://i102.photobucket.com/albums/m104/dma83/noob.jpg) ![](http://www.acc.umu.se/~zqad/cats/1191862800-1189254064763.b.jpg) ![](http://b.mektroid.net/fail_cat.jpg) ![](http://i24.photobucket.com/albums/c15/miketyson76/FAIL2.jpg) ![](http://i24.photobucket.com/albums/c15/miketyson76/FAIL1.jpg) ![](http://tfarchive.com/toys/reviews/images/jbt_mp_megatron_fail.jpg) ![](http://image.idlethreat.com/gallery/images/5cfbc4687b24a0137cf4b7ffc813719c.fail2.jpg) ![](http://image.idlethreat.com/gallery/images/b38102eb89cfaadb5d6ef5007610abcb.fail1hh0.jpg) ![](http://i52.photobucket.com/albums/g15/cocomuffincookie/YouFail.jpg) (^ Sirken? …. Maybe? ^)
  13. This topic has been moved to [Questions](http://www.freemmorpgmaker.com/smf/index.php?board=2). http://www.freemmorpgmaker.com/smf/index.php?topic=23073.0
  14. This topic has been moved to [Questions](http://www.freemmorpgmaker.com/smf/index.php?board=2). http://www.freemmorpgmaker.com/smf/index.php?topic=22818.0
  15. dg1423

    PHP Stat Cards

    well people have been asking how, so here is a tut….. Things you will need: * Card Background(s) (a sample is provided below) * Basic understanding of PHP; or at least the primary fundamentals of coding * Modified Sprite and Item files (samples provided below) * A webhost with PHP and PHP sockets enabled Here is a sample card background: ![](http://stwalarts.game-host.org/wtg/card2.gif) PLEASE NOTE: This background was created by ICT/Atrophy for the sole purpose of my use. Spainion simple recolored it for his game Honor of Blood. I suggest you come up with an original design and layout (instructions on moving tags will be below). Here are examples of modded sprite and item files for use in this script: Sprites: http://stwalarts.game-host.org/wtg/Sprites2.gif Items: http://stwalarts.game-host.org/wtg/Items2.gif PLEASE NOTE: You will only need the items file if your game uses PD. PLEASE REMEMBER that you will need to modify the sprite and item files for your game the way shown so that the sprites will be the same as those ingame. ALSO, because of the PD formula I used, it is required that you leave the icon section at the top of the item file if you use it, otherwise it'll mess up. okay, so here's the entire script. I will then break it down into parts explaining the function on the script. ``` 3) { $im = imagecreatetruecolor(150, 30); /* Create a blank image */ $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ imagestring($im, 1, 5, 5, "Invalid card number!", $tc); imagegif($im); }else{ parse_str($out); parse_str($statout); $card = loadgif("card" . $_GET['card'] . ".gif"); $black = ImageColorAllocate($card, 255, 255, 255); ImageString($card, 1, 42, 20, "Name: " . $name . "", $black); ImageString($card, 1, 42, 30, "Guild: " . $Guild . "", $black); ImageString($card, 1, 42, 40, "Class: " . $class . "", $black); ImageString($card, 1, 42, 50, "Lvl:" . $level . "", $black); $levelen = strlen("Lvl: " . $level . "") * 3; ImageString($card, 1, 42 + $levelen + 22, 50, "Sex: " . $sex . "", $black); ImageString($card, 1, 42, 60, "HP:" . $HP . "", $black); ImageString($card, 1, 92, 60, "MP:" . $MP . "", $black); ImageString($card, 1, 68, 70, "SP:" . $SP . "", $black); ImageString($card, 1, 42, 80, "STR:" . $STR . "", $black); ImageString($card, 1, 92, 80, "DEF:" . $DEF . "", $black); ImageString($card, 1, 42, 90, "MAGI:" . $MAGI . "", $black); ImageString($card, 1, 92, 90, "SPEED:" . $SPEED . "", $black); $ston = stripos($status, "On"); if ($ston === 0) { $offcolor = ImageColorAllocate($card, 62, 137, 84); imagefilledrectangle($card, 17, 83, 26, 93, $offcolor); } else { $oncolor = ImageColorAllocate($card, 142, 51, 51); imagefilledrectangle($card, 17, 83, 26, 93, $oncolor); } $sprite_sheet = loadgif("Sprites2.gif"); $charsprite = ImageCreate(32, 64); $bg = imagecolorallocate($charsprite, 0, 0, 0); imagecolortransparent ($charsprite, $bg); imagefill($charsprite, 0, 0, $bg); imagecolortransparent ($card, $bg); imagecolortransparent ($sprite_sheet, $bg); imagecopyresized($charsprite, $sprite_sheet, 0, 0, 0, $sprite_y, 32, 64, 32, 64); Imagedestroy($sprite_sheet); $item_sheet = Loadgif("Items2.gif"); imagecolortransparent ($item_sheet, $bg); if ($legs_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $legs_y, 32, 64, 32, 64); } if ($armor_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $armor_y, 32, 64, 32, 64); } if ($helmet_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $helmet_y, 32, 64, 32, 64); } if ($necklace_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $necklace_y, 32, 64, 32, 64); } if ($ring_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $ring_y, 32, 64, 32, 64); } if ($shield_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $shield_y, 32, 64, 32, 64); } if ($weapon_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $weapon_y, 32, 64, 32, 64); } imagecopyresized($card, $charsprite, 7, 11, 0, 0, 32, 64, 32, 64); imagedestroy($charsprite); imagedestroy($item_sheet); } } } imagegif($card); ?> ``` alright, lets get this party started: ``` starts the script and tells the browser its an image ``` function LoadGIF($imgname) { $im = @imagecreatefromgif($imgname); /* Attempt to open */ if (!$im) { /* See if it failed */ $im = imagecreatetruecolor(150, 30); /* Create a blank image */ $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ imagestring($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } ``` this is the gif loading function, please remember that the images MUST be gifs in this script (to save loading time and space) you can modify the script to load PNGs but I recommend leaving it at gifs. ``` $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("could not connect"); $address = gethostbyname('stwalarts.game-host.org'); $service_port = 4001; $result = socket_connect($socket, $address, $service_port); ``` this is the socket connector, you have to change "stwalarts.game-host.org" to the ip of your server and 4001 to the port. ``` if ($result == false){ $card = imagecreatetruecolor(120, 20); /* Create a blank image */ $backcol = imagecolorallocate($card, 255, 255, 255); $textol = imagecolorallocate($card, 0, 0, 0); imagefilledrectangle($card, 0, 0, 150, 30, $backcol); /* Output an errmsg */ imagestring($card, 1, 5, 5, "The server is offline!", $textcol); }else{ ``` this checks if the server is offline and creates a small image that says "The server is Offline!", can be easily modified ``` $in = "getplayerspriteinfo,".$_GET['name']; socket_write($socket, $in, strlen($in)); $out = socket_read($socket, 2048); $in = "getplayerstats,".$_GET['name']; socket_write($socket, $in, strlen($in)); $statout = socket_read($socket, 2048); socket_close($socket); ``` this sends and recieves the character data from the server ``` if (stripos($statout, "name") === False){ $im = imagecreatetruecolor(150, 30); /* Create a blank image */ $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ imagestring($im, 1, 5, 5, $statout, $tc); imagegif($im); }else{ ``` this checks the server's response for integrity and to see if the character exists or not (i.e: if character dg1423 does not exist it will return a small image displaying "Could not find dg1423") ``` if ($_GET['card'] > 3) { $im = imagecreatetruecolor(150, 30); /* Create a blank image */ $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ imagestring($im, 1, 5, 5, "Invalid card number!", $tc); imagegif($im); }else{ ``` this is for if you have multiple backgrounds, it checks the card number to make sure it's valid. NOTE: in "if ($_GET['card'] > 3) {" the 3 represents the max number of backgrounds. I suggest you change it if you have more/less backgrounds. ``` parse_str($out); parse_str($statout); ``` this parses the information recieved from the server ``` $card = loadgif("card" . $_GET['card'] . ".gif"); ``` loads the card background from the card number given (i.e: if card=2 in the url the script will load card2.gif) ``` $black = ImageColorAllocate($card, 255, 255, 255); ``` this creates the color for the text, I originally had it black (thus the reason it's call $black) but its actually white, can easily be changed ( 255, 255, 255 is the RGB value you would like as the color) ``` ImageString($card, 1, 42, 20, "Name: " . $name . "", $black); ImageString($card, 1, 42, 30, "Guild: " . $Guild . "", $black); ImageString($card, 1, 42, 40, "Class: " . $class . "", $black); ImageString($card, 1, 42, 50, "Lvl:" . $level . "", $black); ``` writes that info to the card, format is (IMAGE, FONTSIZE(1-5), X, Y, TEXT, COLOR) in the first case $card represents the image of the background, it uses font size 1, writes to the co-ordinates (42, 30), shows "Name: dg1423" (if it were looking for dg1423), and in the color stored in $black. ``` $levelen = strlen("Lvl: " . $level . "") * 3; ``` that calculates the end of the level text so as to write the gender after it. ``` ImageString($card, 1, 42 + $levelen + 22, 50, "Sex: " . $sex . "", $black); ``` writes the gender after the level (i.e: "Lvl: 6 Sex: Male") ``` ImageString($card, 1, 42, 60, "HP:" . $HP . "", $black); ImageString($card, 1, 92, 60, "MP:" . $MP . "", $black); ImageString($card, 1, 68, 70, "SP:" . $SP . "", $black); ImageString($card, 1, 42, 80, "STR:" . $STR . "", $black); ImageString($card, 1, 92, 80, "DEF:" . $DEF . "", $black); ImageString($card, 1, 42, 90, "MAGI:" . $MAGI . "", $black); ImageString($card, 1, 92, 90, "SPEED:" . $SPEED . "", $black); ``` writes more info to the card ``` $ston = stripos($status, "On"); if ($ston === 0) { $offcolor = ImageColorAllocate($card, 62, 137, 84); imagefilledrectangle($card, 17, 83, 26, 93, $offcolor); } else { $oncolor = ImageColorAllocate($card, 142, 51, 51); imagefilledrectangle($card, 17, 83, 26, 93, $oncolor); } ``` Determines the on/offline status of the player and creates a small square on the card (red if offline, green if on) format is the same for color, but for the square it's (IMAGE, UPPERX, UPPERY, LOWERX, LOWERY, COLOR) the upper x and y are the upper-left co-ordinates of the square, the lower x and y are the co-ordinates of the bottom-right corner. ``` $sprite_sheet = loadgif("Sprites2.gif"); $charsprite = ImageCreate(32, 64); ``` this loads Sprites2.gif and creates a 32x64 blank space to put the character and PD ``` $bg = imagecolorallocate($charsprite, 0, 0, 0); imagecolortransparent ($charsprite, $bg); imagefill($charsprite, 0, 0, $bg); imagecolortransparent ($card, $bg); imagecolortransparent ($sprite_sheet, $bg); ``` in order: creates the color black (0, 0, 0), sets black as transparent on the 32x64 char space, fills the 32x64 charspace with black(now transparent), makes black transparent on the card background and makes black transparent on the sprite sheet. ``` imagecopyresized($charsprite, $sprite_sheet, 0, 0, 0, $sprite_y, 32, 64, 32, 64); Imagedestroy($sprite_sheet); ``` copies the player's sprite from the sprite sheet to the character space and destroys the sheet (saves memory space, destroys as in remove from memory, not deleting the file) ``` $item_sheet = Loadgif("Items2.gif"); imagecolortransparent ($item_sheet, $bg); ``` loads Items2.gif and sets black transparent, can be removed if you don't have PD ``` if ($legs_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $legs_y, 32, 64, 32, 64); } if ($armor_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $armor_y, 32, 64, 32, 64); } if ($helmet_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $helmet_y, 32, 64, 32, 64); } if ($necklace_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $necklace_y, 32, 64, 32, 64); } if ($ring_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $ring_y, 32, 64, 32, 64); } if ($shield_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $shield_y, 32, 64, 32, 64); } if ($weapon_y != "0") { imagecopyresized($charsprite, $item_sheet, 0, 0, 0, $weapon_y, 32, 64, 32, 64); } ``` the PD algorithm (prolly shouldn't call it an algorithm as it's not THAT complicated), can be removed if you don't have PD. ``` imagecopyresized($card, $charsprite, 7, 11, 0, 0, 32, 64, 32, 64); imagedestroy($charsprite); imagedestroy($item_sheet); } } } ``` copies the sprite from the character space and puts it on the card background and then destroys the character space and item sheet. ``` imagegif($card); ?> ``` displays the final product. I think I did a pretty good job explaining that. at least I hope so ```
  16. This is a Quote from Fallout Developer Terry C.: "It isn't Unstable, It's just buggy. There's a difference."
  17. Alright, this is 2.5, I guess. I'm giving it to you as-is, because while a lot of you have been patient with me, there are some people who can't stand waiting. Anyway, this is a very stable release. there are only 3 things I haven't gotten around to: -Scrolling Maps(still have no idea where to go with them) -Paperdoll (I'm struggling with this one, as every solution I come up with either causes lag or crashes the server) -GFX Encryption (Baron actually explained to me how to do this, but I totally forgot, sorry Baron >.
  18. [![](http://img88.imageshack.us/img88/4807/61fullan8.th.jpg)](http://img88.imageshack.us/my.php?image=61fullan8.jpg) [![](http://img263.imageshack.us/img263/3300/130fulltq9.th.jpg)](http://img263.imageshack.us/my.php?image=130fulltq9.jpg) [![](http://img172.imageshack.us/img172/4618/134fulltk7.th.jpg)](http://img172.imageshack.us/my.php?image=134fulltk7.jpg) [![](http://img201.imageshack.us/img201/2122/156fullrb0.th.jpg)](http://img201.imageshack.us/my.php?image=156fullrb0.jpg) [![](http://img201.imageshack.us/img201/3205/158fullwk4.th.jpg)](http://img201.imageshack.us/my.php?image=158fullwk4.jpg) [![](http://img249.imageshack.us/img249/6454/160thumbtn7.th.jpg)](http://img249.imageshack.us/my.php?image=160thumbtn7.jpg) [![](http://img201.imageshack.us/img201/8384/182fullao5.th.jpg)](http://img201.imageshack.us/my.php?image=182fullao5.jpg) LOL
  19. This topic has been moved to [Websites](http://www.freemmorpgmaker.com/smf/index.php?board=124). http://www.freemmorpgmaker.com/smf/index.php?topic=21433.0
  20. I'm gonna leave for 5 minutes, I gotta go take a shower >.< NOTE: This should stop all of those "You're gonna miss me" Topics people seem to be posting recently :D
  21. This topic has been moved to [Chit Chat](http://www.freemmorpgmaker.com/smf/index.php?board=1). http://www.freemmorpgmaker.com/smf/index.php?topic=20807.0
  22. This topic has been moved to [GFX Showoff](http://www.freemmorpgmaker.com/smf/index.php?board=56). http://www.freemmorpgmaker.com/smf/index.php?topic=20483.0
  23. This topic has been moved to [Questions](http://www.freemmorpgmaker.com/smf/index.php?board=2). http://www.freemmorpgmaker.com/smf/index.php?topic=20150.0
  24. This topic has been moved to [Questions](http://www.freemmorpgmaker.com/smf/index.php?board=2). http://www.freemmorpgmaker.com/smf/index.php?topic=20151.0
  25. This topic has been moved to [Recruiting Center](http://www.freemmorpgmaker.com/smf/index.php?board=5). http://www.freemmorpgmaker.com/smf/index.php?topic=20131.0
×
×
  • Create New...