EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Tools (https://www.eqemulator.org/forums/forumdisplay.php?f=593)
-   -   PEQ Editor Trying to Add extprofile (https://www.eqemulator.org/forums/showthread.php?t=33328)

gredesh 04-14-2011 02:03 AM

PEQ Editor Trying to Add extprofile
 
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!

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.


All times are GMT -4. The time now is 02:47 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.