d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > LS Guild Chat > Society Guild Chat > For Members And Friends!
Prev14124134144154164416Next
Closed New Topic
Member
Posts: 26,028
Joined: Jun 13 2007
Gold: 505.75
Oct 27 2009 02:06pm
Quote (viet_boi_1994 @ Oct 27 2009 04:01pm)
i dont even no Lols.

WOOT i figured out how to move everything now.

all i need to do is move the actual starting point of 0% over to the right


Change the number that is bold and you should get the hang

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

you could also change the X and Y axis of character by playing with

//show name
ImageTTFText ($image, 9, 0, 122(Y-Axis or right indent), 33(X-Axis or down indent), $yellow, $font, "HC Name: ");
ImageTTFText ($image, 9, 0, 180(Y-Axis or right indent), 33(X-Axis or down indent), $red, $font, $name);

reference:

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

This post was edited by pu3ska on Oct 27 2009 02:06pm
Member
Posts: 37,094
Joined: May 28 2007
Gold: 0.00
Oct 27 2009 02:10pm
Quote (pu3ska @ Oct 27 2009 01:06pm)
Change the number that is bold and you should get the hang

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

you could also change the X and Y axis of character by playing with

//show name
ImageTTFText ($image, 9, 0, 122(Y-Axis or right indent), 33(X-Axis or down indent), $yellow, $font, "HC Name: ");
ImageTTFText ($image, 9, 0, 180(Y-Axis or right indent), 33(X-Axis or down indent), $red, $font, $name);

reference:

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


i no al taht already ahha

i no how to move the text's up/ down/ left/ right

atm i just need to no how to move the starting point of the 0% for the xp

if u notice red point is all by itself lol
Member
Posts: 26,028
Joined: Jun 13 2007
Gold: 505.75
Oct 27 2009 02:13pm
Quote (viet_boi_1994 @ Oct 27 2009 04:10pm)
i no al taht already ahha

i no how to move the text's up/ down/ left/ right

atm i just need to no how to move the starting point of the 0% for the xp

if u notice red point is all by itself lol


ask james (gimmecoffee from labyrinth) about it
Member
Posts: 37,094
Joined: May 28 2007
Gold: 0.00
Oct 27 2009 02:15pm
Quote (pu3ska @ Oct 27 2009 01:13pm)
ask james (gimmecoffee from labyrinth) about it


already did afk for 15 min already ahah!

how did u include ur str?

i wanna include :
str
dex
vita
intel

:D
Member
Posts: 26,028
Joined: Jun 13 2007
Gold: 505.75
Oct 27 2009 02:16pm
Quote (viet_boi_1994 @ Oct 27 2009 04:15pm)
already did afk for 15 min already ahah!

how did u include ur str?

i wanna include :
str
dex
vita
intel

:D


you have to define it.
Member
Posts: 37,094
Joined: May 28 2007
Gold: 0.00
Oct 27 2009 02:17pm
Quote (pu3ska @ Oct 27 2009 01:16pm)
you have to define it.


watcha mean
Quote
define it?
Member
Posts: 26,028
Joined: Jun 13 2007
Gold: 505.75
Oct 27 2009 02:18pm
Quote (viet_boi_1994 @ Oct 27 2009 04:17pm)
watcha mean


like this

/******************************************************
* 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);


so if you want to use str and all the stat you have to define it there

This post was edited by pu3ska on Oct 27 2009 02:19pm
Member
Posts: 37,094
Joined: May 28 2007
Gold: 0.00
Oct 27 2009 02:21pm
can u give me the code to enter Str?

after that i can just figure out vita / dex / intel
Member
Posts: 32,342
Joined: Feb 19 2006
Gold: 13,434.18
Trader: Trusted
Oct 27 2009 02:27pm
what the heck are you doin?^^
Member
Posts: 22,136
Joined: Jul 4 2003
Gold: 511.15
Oct 27 2009 02:28pm
Quote (JanMcCrank @ Oct 27 2009 04:27pm)
what the heck are you doin?^^


trying to take ovar thy world...DuH :stonetoss:
Go Back To LS Guild Chat Topic List
Prev14124134144154164416Next
Closed New Topic