Fyrd Argentus Posted April 23, 2011 Report Posted April 23, 2011 How do you echo an avy by ID number (e.g., one in your vault)? Also, is there a way to print out the negative (white on black) of an avy? Quote
Root Admin Chewett Posted April 23, 2011 Root Admin Report Posted April 23, 2011 It would require some specific code to take the image and make it a negative, there is no function that i know of in php or MDscript to do so. On the top request, im not sure you can. Quote
Laphers Posted April 23, 2011 Report Posted April 23, 2011 [code]mds_player_avatar("playername");[/code] will echo the active avatar of said player. I don't think there is a way to echo "any" avatar by id number as it could be used to look at all avys without seeing them on people or going through the shop. On a php server you may be able to use the gd library to modify an image with something like [code]imagefilter("img",IMG_FILTER_NEGATE);[/code] but it should be noted that Mur may not have it installed and if he does he may not have allowed it for use in md-script. Quote
Fyrd Argentus Posted April 23, 2011 Author Report Posted April 23, 2011 So if I create an alt just so that I can print out the avatar I put on it - is that alt abuse? Actually that's a pretty expensive way to do it, unlocking avy's, so I'm not going to anyway.... Quote
Fyrd Argentus Posted April 24, 2011 Author Report Posted April 24, 2011 (edited) Okay, real basic stupid question. I have a .jpg file (e.g., screen shot of an avy). How do I print it out interwoven with the other stuff on a clickie? I seem unable to paste an image into the content section... Edited April 24, 2011 by Fyrd Argentus Quote
Root Admin Chewett Posted April 24, 2011 Root Admin Report Posted April 24, 2011 upload it somewhere then use html to display? the Img tag Quote
Fyrd Argentus Posted April 25, 2011 Author Report Posted April 25, 2011 (edited) Okay, <img src="whereveritis"> displays the image (thanks), but it does not do it in linear sequence with the avy calls. Worse, I have discoverd there is a 5 avy limit to a clickie display. Tsk, tsk, this is not going to work the way I thought.... a chessboard filled with avys is not going to automate easily. Edited April 25, 2011 by Fyrd Argentus Quote
Laphers Posted April 25, 2011 Report Posted April 25, 2011 Well, the mds_player_avatar is pretty clear about the 5 avy limit. It's there to keep from overloading the script processing engine. Perhaps regular chess icons (in MD style) and the King as the avatar of the player playing the script? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.