Quote (Clement @ Fri, Apr 24 2009, 10:17pm)
Need little help, i'm making sign for fun, but i need to add 2 char info on the same sign, How i can do that, maybe can give me an exemple of script with 2 differents char
just add this a 2nd time
ofc you need to rename $data, $name, $kills etc to $data2, $name2 ....
and then just continue like always
and if you need to add 2nd exp bar or w/e you ofc need to make 2nd calc part aswell
Code
// This is where you load your own info from the xml d2jsp gives. This is a PHP5 only command!
$data2 = simplexml_load_file('http://ladderslasher.d2jsp.org/xmlChar.php?i=146106');
$name = $data2->name;
$kills2 = $data2->kills;
$class2 = $class_name[(int)$data2->classid];
$exp2 = $data2->exp;
$level2 = $data2->level;
$hpmax2 = $data2->hpmax;
$mqpasses2 = $data2->mqpasses;
$mqattempts2 = $data2->mqattempts;
$exp2 = (int)$exp2;
$percent2 = calcExpPercent($exp2);
$brpixelX2 = calcBrPixelX($exp2,$expbar_width);
This post was edited by erasko on Apr 24 2009 03:41pm