d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > Guide: How-to Make A Dynamic Ladder-slasher Sig > In A Few Easy Steps With Pics
Prev1373839404160Next
Add Reply New Topic New Poll
Member
Posts: 34,410
Joined: Feb 2 2006
Gold: 0.00
May 22 2009 06:15am
Quote (Clement @ Thu, 21 May 2009, 13:25)
Can someone pm me the full xml data code:

only got this one
Code
// 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=177624');
$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)


i need the one with all the Proficiencies

Thx


http://forums.d2jsp.org/index.php?showtopic=22792192&p=164172576
Member
Posts: 4,921
Joined: Mar 25 2008
Gold: 1.02
May 22 2009 09:39am
thx, i needed that also.

will check how to use it in a min :)
Member
Posts: 4,921
Joined: Mar 25 2008
Gold: 1.02
May 22 2009 10:08am
How do i use this data properly?

<wprof>1,1;2,1;3,2;9,0</wprof>
<cprof>2,0;5,1;6,0;7,1</cprof>
<sprof>0,0;1,0;2,0</sprof>
Member
Posts: 14,313
Joined: Jun 3 2007
Gold: 5,850.00
May 22 2009 12:34pm
Quote (coldguy @ Fri, 22 May 2009, 18:08)
How do i use this data properly?

<wprof>1,1;2,1;3,2;9,0</wprof>
  <cprof>2,0;5,1;6,0;7,1</cprof>
  <sprof>0,0;1,0;2,0</sprof>


if the wprofs are stored in $data["wprofs"] then:

$temp = explode(";",$data["wprofs"]);
foreach ((array) $temp as $value) {
$temp2 = explode(",",$value);
$wprofs[(int)$temp2[0]] = (int)$temp2[1];
}

to use it for sword:$wprofs[0]

club: $wprofs[1]
Member
Posts: 4,921
Joined: Mar 25 2008
Gold: 1.02
May 22 2009 03:11pm
allright, thanks alot man :D

i'll try this soon :)

This post was edited by coldguy on May 22 2009 03:11pm
Member
Posts: 7,952
Joined: Oct 22 2007
Gold: 4,011.80
May 23 2009 01:22pm
nice ;)

Try this D :D
Member
Posts: 39,849
Joined: Apr 9 2009
Gold: 3,656.09
May 24 2009 03:51pm
Thank you
Member
Posts: 10,382
Joined: Nov 6 2007
Gold: 4,455.00
May 24 2009 05:39pm
nice this looks somethin like c++ lol
Member
Posts: 4,797
Joined: Jan 5 2009
Gold: 89.00
May 25 2009 12:36am
Quote (Dtwizzard @ Sun, May 24 2009, 05:39pm)
nice this looks somethin like c++ lol


Ya but php still confounds me! Not that i know too much C++ anyway. :cry: I need curly brackets!
Member
Posts: 27,007
Joined: Feb 15 2007
Gold: 0.77
May 28 2009 03:06pm
Quote (OoOpeterOoO @ Fri, 22 May 2009, 12:51)
I cannot get mine to show the picture correctly <_<

http://www.ukz.ukgamers.com/Sigs/Test/don.png

I copied your's completely apart from the picture used but it was still bg.png

http://www.ukz.ukgamers.com/Sigs/Test/don.png

All it does is shows the name

Thanks for any help :)


Still can't seem to fix this, my servers have PHP 5.2.5 installed on them
Go Back To Ladder Slasher Topic List
Prev1373839404160Next
Add Reply New Topic New Poll