65536
01-31-2008, 02:02 AM
I was looking at the spawn structure and I found a few offsets that might make for some cool new features in the future.
Pet Owner
Current Offset: 0x458
Size: dword
Contains the spawn ID of the owner of this spawn, or 0 if it is not a pet. Works with pets and familiars. Not sure if it works with swarm pets. Does not work with mounts.
Guild Name Strings
Current Offset: 0x92953c
Size: 64 bytes per guild name
Contains an array of guild names. I think that there is always a null 64 byte string after the last guild name. I think that all the guilds on the server are added when you log into a server, or maybe just all the guilds with at least one member online. The list must be dynamic though if someone creates or destroys a guild while the server is running.
Guild Name
Current Offset: 0x194
Size: dword
Contains the index of the guild name in the guild name strings array that corresponds to the spawn's guild, or 0xffffffff if not in a guild.
Guild Rank
Current Offset: 0x1e8
Size: byte
0=Member or not a member of a guild.
1=Officer
2=Leader
Anonymous/Role Playing
Current Offset: 0x284
Size: byte
If bit 1 is set: Anonymous
If bit 2 is set: Role Playing
Primary Slot
Current Offset: 0xf1c
Size: dword
Contains the number that corresponds to the primary slot item graphic, or 0 if nothing is equipped.
Secondary Slot
Current Offset: 0xf28
Size: dword
Contains the number that corresponds to the secondary slot item graphic, or 0 if nothing is equipped.
Things that I couldn't find in memory:
See Invis Flag
Raid Mob Flag
Faction
Guild Alt
Things that would be cool to find and I'll probably search for in the future:
Guild Banker
Invis Version 2
Dead but still in corpse hover.
GM Flag
Mobs that probably aren't where it says they are.
Pet Owner
Current Offset: 0x458
Size: dword
Contains the spawn ID of the owner of this spawn, or 0 if it is not a pet. Works with pets and familiars. Not sure if it works with swarm pets. Does not work with mounts.
Guild Name Strings
Current Offset: 0x92953c
Size: 64 bytes per guild name
Contains an array of guild names. I think that there is always a null 64 byte string after the last guild name. I think that all the guilds on the server are added when you log into a server, or maybe just all the guilds with at least one member online. The list must be dynamic though if someone creates or destroys a guild while the server is running.
Guild Name
Current Offset: 0x194
Size: dword
Contains the index of the guild name in the guild name strings array that corresponds to the spawn's guild, or 0xffffffff if not in a guild.
Guild Rank
Current Offset: 0x1e8
Size: byte
0=Member or not a member of a guild.
1=Officer
2=Leader
Anonymous/Role Playing
Current Offset: 0x284
Size: byte
If bit 1 is set: Anonymous
If bit 2 is set: Role Playing
Primary Slot
Current Offset: 0xf1c
Size: dword
Contains the number that corresponds to the primary slot item graphic, or 0 if nothing is equipped.
Secondary Slot
Current Offset: 0xf28
Size: dword
Contains the number that corresponds to the secondary slot item graphic, or 0 if nothing is equipped.
Things that I couldn't find in memory:
See Invis Flag
Raid Mob Flag
Faction
Guild Alt
Things that would be cool to find and I'll probably search for in the future:
Guild Banker
Invis Version 2
Dead but still in corpse hover.
GM Flag
Mobs that probably aren't where it says they are.