Jump to content

Dynamic past-24-hr exp gain


Elnaeth

Recommended Posts

Hi there tip.it ^_^

 

I've recently relaunched my RS Stat Tracker website, www.elnaeth.com (formerly known as www.spidey-666.com :P until the name-change update :P can you guess why? :P).

 

For this I redid all of the HTML/CSS/PHP coding behind the website :)

 

A few features are tables with exp-gains, top 25 lists (a bit like runemonkey used to be), namechanging, dynamic signatures..

 

Elnaeth.png

 

check it out! :)

 

 

But what I actually wanted to know is this... What do you think of the "look and feel" of the dynamic sigs? I've already made the coding so people can have their own signatures, just need to make some sort of template

for them to use :)

 

 

Let me know :o

 

 

Slay on,

- Elnaeth

Visit www.trackscape.nl for RuneScape stat tracking! If you have any questions, feel free to ask me, I made the site.
 
90.png
 
elnaeth.png

Link to comment
Share on other sites

It is very bland... the backgrounds

I Support TET!| If you want bunny PM Me.|Click For My DevArt

musics.png

^ Cowboy is the Best ^

IT'S A TRAP SHINY JUST WANTS TO STALK YOU.

Hell yeah I do. Whats your msn?

That's how it all starts.

 

Next he's going to ask you what flavor of candy you enjoy and whats your favorite color van.

Link to comment
Share on other sites

You need to change the font colour in the top one - the numbers are way too hard to read. It's also pretty hard to read in the bottom one, but a bit better at least.

Posted Image

 

- 99 fletching | 99 thieving | 99 construction | 99 herblore | 99 smithing | 99 woodcutting -

- 99 runecrafting - 99 prayer - 125 combat - 95 farming -

- Blog - DeviantART - Book Reviews & Blog

Link to comment
Share on other sites

I don't know, all I know is that there were no sites that were showing it yet, so I thought to my self why not :P

 

You have to remember it's exp gained for last 24 hrs, not the exp you have in the skill..

Visit www.trackscape.nl for RuneScape stat tracking! If you have any questions, feel free to ask me, I made the site.
 
90.png
 
elnaeth.png

Link to comment
Share on other sites

Is there really a demand for dynamic signatures that display EXP instead of actual skill levels?

I think it's pretty cool :o If I was still playing RuneScape, I'd definitely have one on my blog.

Posted Image

 

- 99 fletching | 99 thieving | 99 construction | 99 herblore | 99 smithing | 99 woodcutting -

- 99 runecrafting - 99 prayer - 125 combat - 95 farming -

- Blog - DeviantART - Book Reviews & Blog

Link to comment
Share on other sites

I was wondering how did you code it.... could you place the code in hide tags or whatever, Im intrigued

I Support TET!| If you want bunny PM Me.|Click For My DevArt

musics.png

^ Cowboy is the Best ^

IT'S A TRAP SHINY JUST WANTS TO STALK YOU.

Hell yeah I do. Whats your msn?

That's how it all starts.

 

Next he's going to ask you what flavor of candy you enjoy and whats your favorite color van.

Link to comment
Share on other sites

Umm, have you ever worked with PHP?

 

I can paste some of it here, ofc I'll not be posting my MySQL password and stuff :P

 

I Have a little, and I would assume you wouldn't post the pass word.. lol

I Support TET!| If you want bunny PM Me.|Click For My DevArt

musics.png

^ Cowboy is the Best ^

IT'S A TRAP SHINY JUST WANTS TO STALK YOU.

Hell yeah I do. Whats your msn?

That's how it all starts.

 

Next he's going to ask you what flavor of candy you enjoy and whats your favorite color van.

Link to comment
Share on other sites

<?php
function numberFormatterTwo($number)
{
if ($number >= "1000")
{
	$new = floor($number / 1000);
	$new .= "k";
}
else
{
	$new = $number;
}
return $new;
}

foreach ($usernames as $username)
{

$result = mysql_query($query);
$obj = mysql_fetch_object($result);
$background = $obj->sig_background;

$template = $background . ".png";

$im = imagecreatefrompng("signatures/templates/$template");


$result = mysql_query($query);
$rijen = mysql_num_rows($result);

if ($rijen == "0")
{
// niks doen
}
else
{
while ($obj = mysql_fetch_object($result))
{
	$overall = numberFormatterTwo($obj->overall);
	$attack = numberFormatterTwo($obj->attack);
	$defence = numberFormatterTwo($obj->defence);
	$strength = numberFormatterTwo($obj->strength);
	$hitpoints = numberFormatterTwo($obj->hitpoints);
	$slayer = numberFormatterTwo($obj->slayer);
	$ranged = numberFormatterTwo($obj->ranged);

	$prayer = numberFormatterTwo($obj->prayer);
	$magic = numberFormatterTwo($obj->magic);
	$cooking = numberFormatterTwo($obj->cooking);
	$woodcutting = numberFormatterTwo($obj->woodcutting);
	$fletching = numberFormatterTwo($obj->fletching);
	$fishing = numberFormatterTwo($obj->fishing);

	$firemaking = numberFormatterTwo($obj->firemaking);
	$crafting = numberFormatterTwo($obj->crafting);
	$smithing = numberFormatterTwo($obj->smithing);
	$mining = numberFormatterTwo($obj->mining);
	$herblore = numberFormatterTwo($obj->herblore);
	$agility = numberFormatterTwo($obj->agility);

	$thieving = numberFormatterTwo($obj->thieving);
	$farming = numberFormatterTwo($obj->farming);
	$runecrafting = numberFormatterTwo($obj->runecrafting);
	$hunter = numberFormatterTwo($obj->hunter);
	$construction = numberFormatterTwo($obj->construction);
	$summoning = numberFormatterTwo($obj->summoning);	
}

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);

// templates:
// 1 = abby demon
// 2 = geyser titan
// 3 = k'ril tsu'taroth
// 4 = TSG themed

if ($background == "1" || $background == "5" || $background == "6" || $background == "3" || $background == "4")
{
$color = $white;
}

if ($background == "2" || $background == "7")
{
$color = $black;
}

// Replace path by your own font path
$font = '/ns/calibri.ttf';

//format: $im, size of font, angle of font, x coord, y coord, color, font, text
imagettftext($im, 18, 0, 2, 20, $color, $font, $username);
imagettftext($im, 11, 0, 19, 38, $color, $font, $overall);
imagettftext($im, 11, 0, 19, 53, $color, $font, $attack);
imagettftext($im, 11, 0, 19, 69, $color, $font, $defence);
imagettftext($im, 11, 0, 19, 86, $color, $font, $strength);
imagettftext($im, 11, 0, 19, 102, $color, $font, $hitpoints);
imagettftext($im, 11, 0, 19, 118, $color, $font, $ranged);

imagettftext($im, 11, 0, 94, 38, $color, $font, $prayer);
imagettftext($im, 11, 0, 94, 53, $color, $font, $magic);
imagettftext($im, 11, 0, 94, 69, $color, $font, $cooking);
imagettftext($im, 11, 0, 94, 86, $color, $font, $woodcutting);
imagettftext($im, 11, 0, 94, 102, $color, $font, $fletching);
imagettftext($im, 11, 0, 94, 118, $color, $font, $fishing);

imagettftext($im, 11, 0, 168, 38, $color, $font, $firemaking);
imagettftext($im, 11, 0, 168, 53, $color, $font, $crafting);
imagettftext($im, 11, 0, 168, 69, $color, $font, $smithing);
imagettftext($im, 11, 0, 168, 86, $color, $font, $mining);
imagettftext($im, 11, 0, 168, 102, $color, $font, $herblore);
imagettftext($im, 11, 0, 168, 118, $color, $font, $agility);

imagettftext($im, 11, 0, 241, 22, $color, $font, $thieving);
imagettftext($im, 11, 0, 241, 38, $color, $font, $slayer);
imagettftext($im, 11, 0, 241, 53, $color, $font, $farming);
imagettftext($im, 11, 0, 241, 69, $color, $font, $runecrafting);
imagettftext($im, 11, 0, 241, 86, $color, $font, $hunter);
imagettftext($im, 11, 0, 241, 102, $color, $font, $construction);
imagettftext($im, 11, 0, 241, 118, $color, $font, $summoning);


// Storage folder handle
$storFolder = "images/signatures/";
$filename = $username . ".png";

if (is_file($storFolder . $filename))
{
unlink ($storFolder . $filename);
}
imagepng($im, $storFolder . $filename, 3);

// Free up some memory :D
imagedestroy($im);
unset ($color);
}
}
?>

Visit www.trackscape.nl for RuneScape stat tracking! If you have any questions, feel free to ask me, I made the site.
 
90.png
 
elnaeth.png

Link to comment
Share on other sites

That's the nice part. Anyone willing to lend a hand in designing signatures will be given a template of correct dimensions with all the skill symbols at the right coordinates. You can use those to make your own design, if you want to you can even be the only person able to use it.

 

 

There are I think 13 designs to choose from, of which 6 haven't been implemented yet.

Visit www.trackscape.nl for RuneScape stat tracking! If you have any questions, feel free to ask me, I made the site.
 
90.png
 
elnaeth.png

Link to comment
Share on other sites

lol the main reason I had you post the code was because I knew it would draw nad in.... he smells code like a shark smells blood....

 

I might be willing to make some background if you post the template.... maybe some cool, non-RS related ones...

I Support TET!| If you want bunny PM Me.|Click For My DevArt

musics.png

^ Cowboy is the Best ^

IT'S A TRAP SHINY JUST WANTS TO STALK YOU.

Hell yeah I do. Whats your msn?

That's how it all starts.

 

Next he's going to ask you what flavor of candy you enjoy and whats your favorite color van.

Link to comment
Share on other sites

lol the main reason I had you post the code was because I knew it would draw nad in.... he smells code like a shark smells blood....

 

 

Just a little bit weird?

10postchm2105.png

8,180

WONGTONG IS THE BEST AND IS MORE SUPERIOR THAN ME

#1 Wongtong stalker.

Im looking for some No Limit soldiers!

Link to comment
Share on other sites

lol the main reason I had you post the code was because I knew it would draw nad in.... he smells code like a shark smells blood....

 

 

Just a little bit weird?

 

Lol yep, which would make it sig worthy.

I Support TET!| If you want bunny PM Me.|Click For My DevArt

musics.png

^ Cowboy is the Best ^

IT'S A TRAP SHINY JUST WANTS TO STALK YOU.

Hell yeah I do. Whats your msn?

That's how it all starts.

 

Next he's going to ask you what flavor of candy you enjoy and whats your favorite color van.

Link to comment
Share on other sites

http://img8.imageshack.us/img8/7171/transskillsheet.png

 

is the overlay :)

 

stick to the dimensions, but you can make it bigger to the right and the bottom :P

Visit www.trackscape.nl for RuneScape stat tracking! If you have any questions, feel free to ask me, I made the site.
 
90.png
 
elnaeth.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.