Adding a script:
Here is the layout:
[ID] Script_name
[ID] Variable (Action), [ID] Variable (Action) and continue.. etc
These ID's you use in your script, you use the script ID to commit and the var IDs are what you commit, as seen in the above simba
Dynamic Sig:
Here is a very basic one, anyone feel free to go more into "detail"
See explanation below
You can find the script selector from the "custom graphs" tab when logged in
PHP Code:
<?php
img();
exit();
function img()
{
ini_set("user_agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)");
$data = file_get_contents('http://stats.grats.pw/misc/sig.php?s=1');
$font = 'monofonto.ttf';
$width = 400;
$height = 200;
$data = explode("_._",$data);
$scriptname = $data[0];
$script_total_time = 'Total Time: ' . $data[1];
$loads = $data[2] . ': ' . $data[3];
$image = ImageCreate($width, $height);
$blk = ImageColorAllocate($image, 0, 0, 0);
$gray = ImageColorAllocate($image, 204, 204, 204);
ImageFill($image, 0, 0, $gray);
imagettftext($image, 14, 0, 6, 18, $blk, $font, $scriptname);
imagettftext($image, 14, 0, 6, 40, $blk, $font, $script_total_time);
imagettftext($image, 14, 0, 6, 62, $blk, $font, $loads);
header("Content-Type: image/jpeg");
ImageJpeg($image);
ImageDestroy($image);
}
?>
Looks like:
Notice the URL we get is "1" for the ID of the script.. this is your script ID, whatever it may be
keep in mind data isn't shown on most stuff until at least 1 commit is there... so let your script run a few before actually trying to get that to "work"
The data we get from that URL is:
Code:
Justin's GoldFarm_._21_._Loads (Done)_._47_._Gold (Profited)_._1052800_._Items (Looted)_._1316
We explode it, which makes it all an array of $data
$data[0] is the first part of the array.. there are 8 total parts, 0 - 7 for this specific script
so $data[0] would be our name, and 21 would be our "total commit time in minutes"
loads done and 47 is the amount of loads done $data[2] is "Loads (Done)" and $data[3] is "47" value
gold profited and 1052800 is our gold.. these would be $data[4] and $data[5]
etc
that should explain it.. that's quick and you're obviously welcome to handle the data however you want, I don't care
I do have blockers for popular chinese witchary ones so be careful if you use some funky user agent
best to just use the ie 6.0 one or some random one that actually exists.. firefox, opera, chrome doesn't matter really
This one is slightly different:
PHP Code:
<?php
img();
exit();
function img()
{
ini_set("user_agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)");
$data = file_get_contents('http://stats.grats.pw/misc/sig.php?s=1');
$font = 'monofonto.ttf';
$image = @imagecreatefrompng('img.png');
$data = explode("_._",$data);
$scriptname = $data[0];
$script_total_time = 'Total Time: ' . $data[1];
$loads = $data[2] . ': ' . $data[3];
$pink = imagecolorallocate($image, 250, 0, 251);
imagefilledrectangle($im, 0, 0, 0, 29, $pink);
imagettftext($image, 14, 0, 6, 18, $pink, $font, $scriptname);
imagettftext($image, 14, 0, 6, 40, $pink, $font, $script_total_time);
imagettftext($image, 14, 0, 6, 62, $pink, $font, $loads);
header("Content-Type: image/png");
Imagepng($image);
ImageDestroy($image);
}
?>
With this one we use an image "img.png" to create the background, we also create the image as "image/png" instead, this renders a bit better quality, though it takes longer.
The outcome of this image is having a nice background to work on, rather than ugly gray
I also used pink font as black didn't show up well