Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant archive_postsperpage - assumed 'archive_postsperpage' (this will throw an Error in a future version of PHP) in ..../archive/index.php on line 456
Creature structrure 10.20 [Archive] - Forums

PDA

View Full Version : Creature structrure 10.20



pater
10-26-2013, 05:43 PM
Hello,

Today i tried to figure out creature structure from battle list. Below you will find what i've already discovered. Due to fact that i play on nonpvp world i am not able to check war icon offset or some other stuff which is available on pvp worlds. I would be grateful if someone from world where there is any war could check GuildMember (0xA0) value which is propably for AnotherGuildMember always 5 (silver banner), so it is needed to check OwnGuildMember (gold banner), OwnGuildMemberAtWar ( green banner), OpositeGuildMemberAtWar ( redbanner), ParticipateGuildMember (blue banner)



CreatureOffsetID = 0x0;
CreatureUnknow7 = 0x3; // For players always 0, for creatures and npcs 64
CreatureOffsetName = 0x4;
CreatureOffsetZ = 0x24;
CreatureOffsetY = 0x28;
CreatureOffsetX = 0x2C;
CreatureOffsetTileVerticalOffset = 0x30;
CreatureOffsetTileVerticalOffsetDir = 0x31;
CreatureOffsetTileHorizontalOffset = 0x34;
CreatureOffsetTileHorizontalOffsetDir = 0x35;
CreatureOffsetFaceDirection = 0x38;
CreatureOffsetLastMove = 0x3C;
CreatureOffsetLastMove2 = 0x40;
CreatureOffsetVerticalMove = 0x44; // 32 if true or 0 if false
CreatureOffsetHorizontalMove = 0x48; // 32 if true or 0 if false
CreatureUnknow1 = 0x4C; // Sometimes 350 sometimes 400 for players, for monsters 750
CreatureOffsetIsWalking = 0x50;
CreatureOffsetWalkDirection = 0x54;
CreatureOffsetPrevious = 0x58;
CreatureOffsetNext = 0x5C;
CreatureOffsetOutfit = 0x60;
CreatureOffsetHeadColor = 0x64;
CreatureOffsetPrimaryColor = 0x68;
CreatureOffsetSecondaryColor = 0x6C;
CreatureOffsetDetailColor = 0x70;
CreatureOffsetAddon = 0x74;
CreatureOffsetMountID = 0x78;
CreatureOffsetLight = 0x7C;
CreatureOffsetLightColor = 0x80;
CreatureUnknow2 = 0x84;
CreatureOffsetBlackSquare = 0x88;
CreatureOffsetHealth = 0x8C;
CreatureOffsetSpeed = 0x90;
CreatureOffsetIsBlocking = 0x94;
CreatureOffsetSkull = 0x98;
CreatureOffsetParty = 0x9C;
CreatureOffsetGuildMember = 0xA0; // probably when member ow other guild then 5
CreatureOffsetVisible = 0xA4;
CreatureUnknow3 = 0xA8; // before waricon, now always 357
CreatureUnknow4 = 0xAC; // always 0 - maybe waricon. To check on pvp world
CreatureUnknow5 = 0xB0; // for me always 153
CreatureUnknow6 = 0xB4; // always 0
CreatureOffsetGuildMembersOnline = 0xB8;
CreatureOffsetType = 0xBC; // 0 for player 1 for creature 2 for npc


If any offset is wrong please let me know.

Thanks !
pater

Blequi
10-26-2013, 06:19 PM
public enum WarIcon : int
{
None = 0,
Green = 1,
Red = 2,
Blue = 3,
Yellow = 4,
White = 5
}


your creature class is almost the same I'm currently using.

you probably haven't guessed A8-B4 because I think it's pvp-related



CreatureOffsetR = 0xA8;
CreatureOffsetG = 0xAC;
CreatureOffsetB = 0xB0;

CreatureOffsetIsColorSquareVisible = 0xB4;


where R, G, B comes from RGB color system to mark a colored square around the player and IsColorSquareVisible tells if this square is being displayed on the screen

pater
10-26-2013, 06:32 PM
Thank you Blequi for update. I do not know still offset 0x4C which is sometimes 350 or 400 for player and 750 for creature and offset 0x84. I would be grateful if you could point me what it is :)

Blequi
10-26-2013, 06:49 PM
I didn't look into creature class since a few months, but in my sources 0x4C is written "Moved". I remember it tells if the creature moved from its initial location (it is really old in my sources, you bear the risk using it :P). Offset 0x84 is still unknown to me.