In a previous bot i was making, you have to read as
byte[] x Memory.ReadBytes(PartyMem1GUID,4
;
ulong GUID = BitConverter.Int64(x, 0);
Something along those lines.
EDIT: will post the code soon, will boot laptop - at work atm
---------- Post added at 08:35 PM ---------- Previous post was at 07:48 PM ----------
This is what i was using. I dont know if this is still the correct way of doing it, its from an old healbot i was using.
Code:
public static bool LoadParty()
{
//ok let me use this as exmaple. So atm
#region Load Party info. Get All GUIDs. Set Member Count
int i = 0;
int membercount = 0;
byte[] p1 = HealBot.MeMBM.WooW.ReadBytes((uint)(Party.s_LeaderGUID), 48);//0x00B92570 //this is now open for reading???
byte[] p2 = HealBot.MeMBM.WooW.ReadBytes((uint)(Party.s_Member1GUID), 48);// player1
byte[] p3 = HealBot.MeMBM.WooW.ReadBytes((uint)(Party.s_Member2GUID), 48);// player2
byte[] p4 = HealBot.MeMBM.WooW.ReadBytes((uint)(Party.s_Member3GUID), 48);// player3
byte[] p5 = HealBot.MeMBM.WooW.ReadBytes((uint)(Party.s_Member4GUID), 48);// player4
HealBot.Form1.PartyListGUID[0] = ObjectManager.Me.GUID;//(ulong)BitConverter.ToInt64(p1, 0);// this is also in form.cs i can make it static.
HealBot.Form1.PartyListGUID[1] = (ulong)BitConverter.ToInt64(p2, 0);
HealBot.Form1.PartyListGUID[2] = (ulong)BitConverter.ToInt64(p3, 0);
HealBot.Form1.PartyListGUID[3] = (ulong)BitConverter.ToInt64(p4, 0);
HealBot.Form1.PartyListGUID[4] = (ulong)BitConverter.ToInt64(p5, 0);
//HealBot.Form1.PartyListGUID[0] = ObjectManager.Me.GUID;
for (i = 0; i < 5; i++)
{
if (HealBot.Form1.PartyListGUID[i] != 0)
{
funcs.log(Form1.PartyListGUID[i].ToString() + "::" + ObjectManager.Me.GUID);
funcs.log(funcs.GetPlayerName(Form1.PartyListGUID[i]).ToString());
membercount++;
}
}
funcs.log("");
if (membercount > 0)// can be 1 as it will always have me inside.
{
System.Threading.Thread.Sleep(200);
Functions.funcs.log("Found " + membercount + " party members");
return true;
}
else
{
return false;
}
#endregion
}
p.s. Yes is fugly, i was still learning when i wrote this and never go around to recoding it - but it worked.
Just starting to make a new partybot now.