d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > Guide: How-to Make A Dynamic Ladder-slasher Sig > In A Few Easy Steps With Pics
Prev1161718192060Next
Add Reply New Topic New Poll
Member
Posts: 8,928
Joined: Jul 24 2008
Gold: 15.05
Dec 11 2008 05:06pm
how to change the exp bar position??

is this the part of code to change??

Code
imagefilledrectangle($image, 180, 59, 280, 71, $cool);
imagefilledrectangle($image, 180, 59, $brpixelX, 71, $red);


i try to change some values but the position never move!
i'd like to move bar in the left of an image!

anyone can help me? smile.gif TY!!

Member
Posts: 2,696
Joined: Mar 26 2006
Gold: 3,633.50
Dec 11 2008 05:10pm
imagefilledrectangle($image, X-Coordinate of Bar Background, Y-Coordinate of Bar Background, End X-Coordinate of Bar Background, End Y-Coordinate of Bar Background, $cool);
imagefilledrectangle($image, X-Coordinate of Bar, Y-Coordinate of Bar, $brpixelX (icon_pointl.gif The calculated End X-Coordinate of Bar), End Y-Coordinate of Bar, $red);
Member
Posts: 8,928
Joined: Jul 24 2008
Gold: 15.05
Dec 11 2008 06:03pm
oh ty a lot! ^^
Member
Posts: 2,277
Joined: Nov 9 2008
Gold: 146.12
Dec 11 2008 06:20pm
i vote sticky too
Member
Posts: 8,928
Joined: Jul 24 2008
Gold: 15.05
Dec 11 2008 06:40pm
vouch ofc! I love this topic! heart2.gif laugh.gif

This post was edited by UberTristram on Dec 11 2008 06:41pm
Member
Posts: 41,017
Joined: Jul 4 2005
Gold: 871.28
Dec 12 2008 12:12am
I'd like to know how to add profiencies, any1 knows how to make them dynamic?

This post was edited by markov on Dec 12 2008 12:13am
Member
Posts: 4,620
Joined: Aug 3 2008
Gold: 525.25
Dec 12 2008 06:59am
Quote (flapmo @ Mon, Nov 3 2008, 05:03pm)
weapon prof and cprof are in :

<wprof>0,9</wprof>
<cprof>3,0;4,0</cprof>

this means you can read it with:

#wprof = data->wprof;

etc.



this is a simple way to do it.
Member
Posts: 41,017
Joined: Jul 4 2005
Gold: 871.28
Dec 12 2008 07:37am
what 0,9 means ? I don't get it.

Quote (erasko @ Fri, 12 Dec 2008, 14:41)
0 means the weapon
0= sword
1= club
2= axe
...

9 means the current prof


thanks, I'll try it out.

This post was edited by markov on Dec 12 2008 07:42am
Member
Posts: 20,664
Joined: Aug 20 2006
Gold: 620.00
Dec 12 2008 07:41am
Quote (markov @ Fri, Dec 12 2008, 03:37pm)
what 0,9 means ? I don't get it.


0 means the weapon
0= sword
1= club
2= axe
...

9 means the current prof
Member
Posts: 41,017
Joined: Jul 4 2005
Gold: 871.28
Dec 12 2008 08:51am
Added ImageTTFText ($image, 9, 0, 195, 50, $red, $font, $wprof and $wprof = $data->wprof;
guess it's somehow bad, cause it's not working. I don't know where should I paste <wprof>0,9</wprof>.

Any1 could help me?
Go Back To Ladder Slasher Topic List
Prev1161718192060Next
Add Reply New Topic New Poll