PDA

View Full Version : PEQ Editor Trying to Add extprofile


gredesh
04-14-2011, 02:03 AM
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?

<?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!

joligario
04-14-2011, 03:56 AM
Try changing to:
spet_id
spet_hp
spet_mana
l9pet_items

gredesh
04-14-2011, 11:51 AM
That worked! Much appreciated.