I'm trying to make it so I can see the extprofile in addition to the profile. I'm pretty sure the problem is with my unpack file, anyone see anything wrong?
Code:
<?php
function getEPPFormat() {
$fmt = "lpet_id/"; // int16
$fmt .= "lpet_hp/"; // int16
$fmt .= "lpet_mana/"; // int16
$maxbuff = 25;
for($x = 0;$x < $maxbuff;$x++) {
$fmt .= "cpet_effect".($x+1)."slotid/";
$fmt .= "cpet_effect".($x+1)."level/";
$fmt .= "cpet_effect".($x+1)."bard_mod/";
$fmt .= "cpet_effect".($x+1)."effect/";
$fmt .= "lpet_effect".($x+1)."spellid/";
$fmt .= "lpet_effect".($x+1)."duration/";
$fmt .= "spet_effect".($x+1)."ds_remaining/";
$fmt .= "cpet_effect".($x+1)."persistent_buff/";
$fmt .= "cpet_effect".($x+1)."reserved/";
$fmt .= "lpet_effect".($x+1)."playerid/";
}
$fmt .= "lpet_items/"; // int32, this should be l9pet_items I think
//but it just shows a blank page if I add the 9, which is worse.
$fmt .= "a64pet_name/"; //char[64]
$fmt .= "Laa_effects/"; //uint32
$fmt .= "LperAA/"; //uint32
$fmt .= "Lexpended_aa"; //uint32
return $fmt;
}
?>
Right now the extprofile array is just full of zeros. I've got everything else right. Thanks!