Jump to content

[SOLVED] RuneScape Stat Signature Maker


LemonInflux

Recommended Posts

  • Replies 79
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I know you have already solved this, but i had done something similar untill I had a powercut :(

 

<?php
$image_link = "demo.png";
$image = imagecreatefrompng($image_link);
$font_colour = imagecolorallocate($image, 0, 0, 0);
$font_size = 5;
$array = array(0 => array(0 => "10", 1 => "28", 2 => "8"), 1 => array(0 => "12", 1 => "28", 2 => "32"), 2 => array(0 => "30", 1 => "28", 2 => "54"),
3 => array(0 => "22", 1 => "28", 2 => "79"), 4 => array(0 => "5", 1 => "28", 2 => "103"), 5 => array(0 => "13", 1 => "82", 2 => "8"),
6 => array(0 => "25", 1 => "82", 2 => "32"), 7 => array(0 => "32", 1 => "82", 2 => "54"), 8 => array(0 => "28", 1 => "82", 2 => "79"),
9 => array(0 => "18", 1 => "82", 2 => "103"), 10 => array(0 => "4", 1 => "135", 2 => "8"), 11 => array(0 => "54", 1 => "135", 2 => "32"),
12 => array(0 => "14", 1 => "135", 2 => "54"), 13 => array(0 => "34", 1 => "135", 2 => "79"), 14 => array(0 => "31", 1 => "135", 2 => "103"),
15 => array(0 => "19", 1 => "189", 2 => "8"), 16 => array(0 => "1", 1 => "189", 2 => "32"), 17 => array(0 => "31", 1 => "189", 2 => "54"),
18 => array(0 => "23", 1 => "189", 2 => "79"), 19 => array(0 => "14", 1 => "189", 2 => "103"), 20 => array(0 => "27", 1 => "239", 2 => "8"),
21 => array(0 => "38", 1 => "239", 2 => "32"), 22 => array(0 => "21", 1 => "239", 2 => "54"));
$array_num = count($array);
for($i = 0; $i < $array_num; $i++)
{
$stat = $array[$i][0];
$x = $array[$i][1];
$y = $array[$i][2];
imagestring($image, $font_size, $x, $y, $stat, $font_colour);
}
header("Content-type: image/gif");
imagepng($image);
?>

 

The reason why the code didnt work in my last post was because I used gif instead of png :-[

 

This code works by just pulling in all out of an array(I only recently learnt how to use arrays and I love them ;D). The first number being the stat, the second being the x coordinate and the third being the y coordinate.

 

I know you have it working but I thought I would give you this code seeing as I would have posted it days ago, but I couldn't :(

 

~ Chocopi

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.