d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > LS Guild Chat > † Ls Chat
Prev1151617181921Next
Closed New Topic
Member
Posts: 13,374
Joined: May 5 2007
Gold: 9.55
Sep 25 2008 01:16am
helllllo landmark!

Brutal (Lvl: 70) Paladin
Exp: 69,003,602
165 Str, 100 Dex, 22 Int, 59 Vit
101,000 Kills, 351 Deaths
Last Played: 3 minutes, 7 seconds ago


biggrin.gif
Member
Posts: 13,697
Joined: Sep 5 2007
Gold: 3,700.89
Sep 25 2008 01:44am
tetsu (Lvl: 20) Magician
Exp: 19,019,184
20 Str, 50 Dex, 136 Int, 20 Vit
10,332 Kills, 55 Deaths
Last Played: 15 hours, 25 minutes ago

cool.gif
Member
Posts: 13,374
Joined: May 5 2007
Gold: 9.55
Sep 25 2008 02:06am
Quote (tetsu @ Thu, Sep 25 2008, 02:44am)
tetsu (Lvl: 20) Magician
Exp: 19,019,184
20 Str, 50 Dex, 136 Int, 20 Vit
10,332 Kills, 55 Deaths
Last Played: 15 hours, 25 minutes ago

cool.gif


+6

Passed, Monk!
Member
Posts: 13,697
Joined: Sep 5 2007
Gold: 3,700.89
Sep 25 2008 02:32am
Quote (ZdP @ Thu, 25 Sep 2008, 17:06)
+6

Passed, Monk!


wow!! gz dj tongue.gif
Member
Posts: 4,042
Joined: Apr 27 2008
Gold: 0.00
Sep 25 2008 05:36am
Quote (ZdP @ Thu, 25 Sep 2008, 10:06)
+6

Passed, Monk!


Gx m8.
Member
Posts: 4,042
Joined: Apr 27 2008
Gold: 0.00
Sep 25 2008 05:37am
Lol ^^^Can some1 lend me 2k fg to a nice wep?

J/k ^^
Member
Posts: 2,000
Joined: May 31 2008
Gold: 0.00
Sep 25 2008 07:16am
I bought this a few days ago ( price was 5-10 Fg biggrin.gif )

Magicial heartwood Robe
lvl 15
INT 20
<- perfect tongue.gif

Member
Posts: 15,909
Joined: Sep 16 2007
Gold: 12,030.00
Sep 25 2008 08:15am
anyone can make me a php file like this for 34x300(second part of my sig, the + should be not overwritten):

<?php
Header ('Content-type: image/jpeg');
Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
Header('Pragma: no-cache');

/******************************************************
* BASICS *
******************************************************/

// set some dimensions for future use
$expbar_width = 100;
$expbar_height = 25;

// create the image from a background jpg
$image = imagecreatefrompng('bg.png');

// set some colours for future use
$cool = imagecolorallocate($image, 81, 86, 96);
$red = imagecolorallocate($image, 255, 0, 0);
$yellow = imagecolorallocate($image, 255, 181, 53);

// set the background colour
// number or is top left pixel x, top left pixel y, bottom right pixel x, bottom right pixel y

// set the font and print text
$font = '/avqest.ttf';

/******************************************************
* LOAD DATA *
******************************************************/

// Create an array for determining the class you play.
// In the XML this is saved as an int number, the conversion is shown below.
$class_name = array( -1 => 'None',
0 => 'Fighter',
1 => 'Barbarian',
2 => 'Rogue',
3 => 'Magician',
4 => 'Guardian',
5 => 'Samurai',
6 => 'Paladin',
7 => 'Monk',
8 => 'Ninja',
9 => 'Warlock',
10 => 'Headhunter',
11=> 'Alchemist');

// load xml data in vars

// This is where you load your own info from the xml d2jsp gives. This is a PHP5 only command!
$data = simplexml_load_file('http://ladderslasher.d2jsp.org/xmlChar.php?i=146106');
$name = $data->name;
$kills = $data->kills;
$class = $class_name[(int)$data->classid];
$exp = $data->exp;
$level = $data->level;
$hpmax = $data->hpmax;
$mqpasses = $data->mqpasses;
$mqattempts = $data->mqattempts;
$exp = (int)$exp;
$percent = calcExpPercent($exp);
$brpixelX = calcBrPixelX($exp,$expbar_width);

// Create an expbar with bg 'cool' color and the cover of your level in red.
imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);


/******************************************************
* TEXT PART *
******************************************************/

//Example ; ImageTTFText ($image, textsize, angle, right indent, down indent, color, font, "text");

// EXP bar text
ImageTTFText ($image, 9, 0, 122, 69, $yellow, $font, "To Level: ");
ImageTTFText ($image, 9, 0, 220, 69, $yellow, $font, $percent."%");

//show name
ImageTTFText ($image, 9, 0, 122, 33, $yellow, $font, "HC Name: ");
ImageTTFText ($image, 9, 0, 180, 33, $red, $font, $name);

//show class
ImageTTFText ($image, 9, 0, 280, 33, $yellow, $font, "Class: ");
ImageTTFText ($image, 9, 0, 320, 33, $red, $font, $class);

// show lvl
ImageTTFText ($image, 9, 0, 122, 45, $yellow, $font, "Level: ");
ImageTTFText ($image, 9, 0, 162, 45, $red, $font, $level);

//show experience
ImageTTFText ($image, 9, 0, 180, 45, $yellow, $font, "Experience: ");
ImageTTFText ($image, 9, 0, 250, 45, $red, $font, $exp);

// show kills
ImageTTFText ($image, 9, 0, 312, 45, $yellow, $font, "Kills: ");
ImageTTFText ($image, 9, 0, 352, 45, $red, $font, $kills);

// Show HP max
ImageTTFText ($image, 9, 0, 122, 57, $yellow, $font, "HP: ");
ImageTTFText ($image, 9, 0, 145, 57, $red, $font, $hpmax);

// SHow MQ passen and attempts
ImageTTFText ($image, 9, 0, 242, 57, $yellow, $font, "MQ passes/attempts: ");
ImageTTFText ($image, 9, 0, 357, 57, $red, $font, $mqpasses."/".$mqattempts);

// Show useless shizzle
ImageTTFText ($image, 9, 0, 122, 82, $yellow, $font, "-------------------------------------");
ImageTTFText ($image, 9, 0, 122, 95, $red, $font, "GoT-Guild LadderSlasher Player | Bring ce GPs!");

// output and destroy
imagepng($image);
imagedestroy($image);


/******************************************************
* FUNCTIONS *
******************************************************/

/***
* calculate the exp bar width.
***/
function calcBrPixelX($input,$xpbar_width)
{
$temp1 = fmod($input,1000000);
$temp1 = ($temp1/1000000);
$temp1 = $temp1 * $xpbar_width;
$temp1 = $temp1 + 180;

return (int)$temp1;
}

/***
* Calculate the percentage of level done
***/
function calcExpPercent($input)
{
$temp1 = fmod($input,1000000);
$temp1 = ($temp1/1000000);
$temp1 = $temp1 * 100;

return (int)$temp1;
}

?>

This post was edited by IchigoKurosaki on Sep 25 2008 08:16am
Member
Posts: 15,909
Joined: Sep 16 2007
Gold: 12,030.00
Sep 25 2008 09:55am
if someone want a sig like that:



contact me^^
Member
Posts: 4,042
Joined: Apr 27 2008
Gold: 0.00
Sep 25 2008 09:57am
Quote (IchigoKurosaki @ Thu, 25 Sep 2008, 17:55)
if someone want a sig like that:

http://ichigokurosaki.freehostia.com/Sig.png
contact me^^


Me. Thats no sexy !

Can u make it with my sammi?
Go Back To LS Guild Chat Topic List
Prev1151617181921Next
Closed New Topic