Need way to 'target' WOW units. menu

User Tag List

Results 1 to 13 of 13
  1. #1
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need way to 'target' WOW units.

    i have devised the method to parse the WOW objects/units based on help from the members and the forum posts. firstly, thanks for the help and infos here.

    regarding units:

    eventually i would like to automate the attacking of nearby (or specific) enemies. i can already pull out the xyz of units, their levels, health, etc. however, i have no way to determine which units are 'attackable'.


    also, let's say that a certain unit is deemed attackable and my program directs the player to that unit. how then would i specifically target just that unit (simulating the TAB key doesn't always target the correct unit)? is there a way to push the focus to a specific unit based on the WOW Object information?


    any help would be appreciated-

    Need way to 'target' WOW units.
  2. #2
    Zombie911's Avatar Member
    Reputation
    11
    Join Date
    Mar 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use keybind in "Key binding" -> "Targeting" -> "Nearby enemy".
    Just follow by waypoints and spam that key every 100 ms.
    Target maybe Agressive/Neutral/Critters in 20-30 yards range and all attackable.
    If sombody know another way. +rep him )

  3. #3
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for this! this is exactly what i was talking about. very much appreciated!

    regarding:

    Agressive/Neutral/Critters


    is there a way to use the object or unit templates of the mobs to determine these characteristics?

    for instance, i get the x,y,z of unit, it's health, that it is a mob. is there a way to determine if it is aggressive? if it is neutral? what type of creature/unit it is?

    thanks!

  4. #4
    korknob's Avatar Active Member
    Reputation
    29
    Join Date
    May 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for my bot i used to do FindClosestMob() and set desired_target_id to the Mob.guid and hit tab until Player.target = desired_target_id but i found it easier to just do a WriteProcessMemory and set Player.target to desired_target_id. it seems to work a lot easier that way. yes its more detectable that way but blizz has to specifically check for it.

    i use my own hack-ish mob struct

    struct mob_struct
    {
    __int64 id; // unique mob identifier
    int unknown1; // always 9?
    int type; // mob id, can look up on www.thottbot.com/c<this number>
    float selection_circle_size; //last patch prevents changing this to take effect
    char zero[0x2c];
    __int64 target; // mob current target
    char zero2[0x10];
    int current_health;
    int zero3[2]; // mana %?
    int health2;
    int zero4;
    int unknown3; // 40 42 0f 00
    int health3; // not health
    int unknown4; // 3c = 60, sometimes 79
    int zero5;
    int health4; // not health
    int zero6;
    int unknown5; // 40 42 0f 00
    int level;
    int con; // 07 = yellow, 14 = red, 1604 = green, 1610 = blue
    int unknown7; // 00 02 02 00
    int zero7[0x24];
    int combat; // 00 00 00 00 = OOC, 00 08 08 00 = IC (526336)
    };

    and Mob.con = faction, so:
    7 = Yellow/Neutral
    14 = Red/Hostile
    1604 = Green/NPC
    1610 = Blue/Pet (probably also party members)

    my FindTarget function calls FindClosestMob which runs through the unit list and then calls EvaluateMob() on each one to check level range, con, make sure that they're health != 0, and check their target to make sure its either 0 or targetting me so i dont attack other people's mobs. hope this helps

  5. #5
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by korknob View Post
    for my bot i used to do FindClosestMob() and set desired_target_id to the Mob.guid and hit tab until Player.target = desired_target_id but i found it easier to just do a WriteProcessMemory and set Player.target to desired_target_id. it seems to work a lot easier that way. yes its more detectable that way but blizz has to specifically check for it.

    i use my own hack-ish mob struct

    struct mob_struct
    {
    __int64 id; // unique mob identifier
    int unknown1; // always 9?
    int type; // mob id, can look up on www.thottbot.com/c<this number>
    float selection_circle_size; //last patch prevents changing this to take effect
    char zero[0x2c];
    __int64 target; // mob current target
    char zero2[0x10];
    int current_health;
    int zero3[2]; // mana %?
    int health2;
    int zero4;
    int unknown3; // 40 42 0f 00
    int health3; // not health
    int unknown4; // 3c = 60, sometimes 79
    int zero5;
    int health4; // not health
    int zero6;
    int unknown5; // 40 42 0f 00
    int level;
    int con; // 07 = yellow, 14 = red, 1604 = green, 1610 = blue
    int unknown7; // 00 02 02 00
    int zero7[0x24];
    int combat; // 00 00 00 00 = OOC, 00 08 08 00 = IC (526336)
    };

    and Mob.con = faction, so:
    7 = Yellow/Neutral
    14 = Red/Hostile
    1604 = Green/NPC
    1610 = Blue/Pet (probably also party members)

    my FindTarget function calls FindClosestMob which runs through the unit list and then calls EvaluateMob() on each one to check level range, con, make sure that they're health != 0, and check their target to make sure its either 0 or targetting me so i dont attack other people's mobs. hope this helps
    thanks for your reply. however i am wondering where you got this? for instance:

    int con; // 07 = yellow, 14 = red, 1604 = green, 1610 = blue


    how would i read that value from the WOW Objects list? I know how to parse the data at this point, but i am wondering how to get to the con you listed. where is that data located in something such as this:


    enum eUnitFields { offset: 2660?
    UNIT_FIELD_CHARM=0x0,
    UNIT_FIELD_SUMMON=0x8,
    UNIT_FIELD_CHARMEDBY=0x10,
    UNIT_FIELD_SUMMONEDBY=0x18,
    UNIT_FIELD_CREATEDBY=0x20,
    UNIT_FIELD_TARGET=0x28,
    UNIT_FIELD_PERSUADED=0x30,
    UNIT_FIELD_CHANNEL_OBJECT=0x38,
    UNIT_FIELD_HEALTH=0x40,
    UNIT_FIELD_POWER1=0x44,
    UNIT_FIELD_POWER2=0x48,
    UNIT_FIELD_POWER3=0x4C,
    UNIT_FIELD_POWER4=0x50,
    UNIT_FIELD_POWER5=0x54,
    UNIT_FIELD_MAXHEALTH=0x58,
    UNIT_FIELD_MAXPOWER1=0x5C,
    UNIT_FIELD_MAXPOWER2=0x60,
    UNIT_FIELD_MAXPOWER3=0x64,
    UNIT_FIELD_MAXPOWER4=0x68,
    UNIT_FIELD_MAXPOWER5=0x6C,
    UNIT_FIELD_LEVEL=0x70,
    UNIT_FIELD_FACTIONTEMPLATE=0x74,
    UNIT_FIELD_BYTES_0=0x78,
    UNIT_VIRTUAL_ITEM_SLOT_DISPLAY=0x7C,
    UNIT_VIRTUAL_ITEM_INFO=0x88,
    UNIT_FIELD_FLAGS=0xA0,
    UNIT_FIELD_FLAGS_2=0xA4,
    UNIT_FIELD_AURA=0xA8,
    UNIT_FIELD_AURAFLAGS=0x188,
    UNIT_FIELD_AURALEVELS=0x1C0,
    UNIT_FIELD_AURAAPPLICATIONS=0x1F8,
    UNIT_FIELD_AURASTATE=0x230,
    UNIT_FIELD_BASEATTACKTIME=0x234,
    UNIT_FIELD_RANGEDATTACKTIME=0x23C,
    UNIT_FIELD_BOUNDINGRADIUS=0x240,
    UNIT_FIELD_COMBATREACH=0x244,
    UNIT_FIELD_DISPLAYID=0x248,
    UNIT_FIELD_NATIVEDISPLAYID=0x24C,
    UNIT_FIELD_MOUNTDISPLAYID=0x250,
    UNIT_FIELD_MINDAMAGE=0x254,
    UNIT_FIELD_MAXDAMAGE=0x258,
    UNIT_FIELD_MINOFFHANDDAMAGE=0x25C,
    UNIT_FIELD_MAXOFFHANDDAMAGE=0x260,
    UNIT_FIELD_BYTES_1=0x264,
    UNIT_FIELD_PETNUMBER=0x268,
    UNIT_FIELD_PET_NAME_TIMESTAMP=0x26C,
    UNIT_FIELD_PETEXPERIENCE=0x270,
    UNIT_FIELD_PETNEXTLEVELEXP=0x274,
    UNIT_DYNAMIC_FLAGS=0x278,
    UNIT_CHANNEL_SPELL=0x27C,
    UNIT_MOD_CAST_SPEED=0x280,
    UNIT_CREATED_BY_SPELL=0x284,
    UNIT_NPC_FLAGS=0x288,
    UNIT_NPC_EMOTESTATE=0x28C,
    UNIT_TRAINING_POINTS=0x290,
    UNIT_FIELD_STAT0=0x294,
    UNIT_FIELD_STAT1=0x298,
    UNIT_FIELD_STAT2=0x29C,
    UNIT_FIELD_STAT3=0x2A0,
    UNIT_FIELD_STAT4=0x2A4,
    UNIT_FIELD_POSSTAT0=0x2A8,
    UNIT_FIELD_POSSTAT1=0x2AC,
    UNIT_FIELD_POSSTAT2=0x2B0,
    UNIT_FIELD_POSSTAT3=0x2B4,
    UNIT_FIELD_POSSTAT4=0x2B8,
    UNIT_FIELD_NEGSTAT0=0x2BC,
    UNIT_FIELD_NEGSTAT1=0x2C0,
    UNIT_FIELD_NEGSTAT2=0x2C4,
    UNIT_FIELD_NEGSTAT3=0x2C8,
    UNIT_FIELD_NEGSTAT4=0x2CC,
    UNIT_FIELD_RESISTANCES=0x2D0,
    UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE=0x2EC,
    UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE=0x308,
    UNIT_FIELD_BASE_MANA=0x324,
    UNIT_FIELD_BASE_HEALTH=0x328,
    UNIT_FIELD_BYTES_2=0x32C,
    UNIT_FIELD_ATTACK_POWER=0x330,
    UNIT_FIELD_ATTACK_POWER_MODS=0x334,
    UNIT_FIELD_ATTACK_POWER_MULTIPLIER=0x338,
    UNIT_FIELD_RANGED_ATTACK_POWER=0x33C,
    UNIT_FIELD_RANGED_ATTACK_POWER_MODS=0x340,
    UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER=0x344,
    UNIT_FIELD_MINRANGEDDAMAGE=0x348,
    UNIT_FIELD_MAXRANGEDDAMAGE=0x34C,
    UNIT_FIELD_POWER_COST_MODIFIER=0x350,
    UNIT_FIELD_POWER_COST_MULTIPLIER=0x36C,
    UNIT_FIELD_MAXHEALTHMODIFIER=0x388,
    UNIT_FIELD_PADDING=0x38C,
    TOTAL_UNIT_FIELDS=0x58
    };

    enum ePlayerFields {
    PLAYER_DUEL_ARBITER=0x0,
    PLAYER_FLAGS=0x8,
    PLAYER_GUILDID=0xC,
    PLAYER_GUILDRANK=0x10,
    PLAYER_BYTES=0x14,
    PLAYER_BYTES_2=0x18,
    PLAYER_BYTES_3=0x1C,
    PLAYER_DUEL_TEAM=0x20,
    PLAYER_GUILD_TIMESTAMP=0x24,
    PLAYER_QUEST_LOG_1_1=0x28,
    PLAYER_QUEST_LOG_1_2=0x2C,
    PLAYER_QUEST_LOG_1_3=0x30,
    PLAYER_QUEST_LOG_1_4=0x34,
    PLAYER_QUEST_LOG_2_1=0x38,
    PLAYER_QUEST_LOG_2_2=0x3C,
    PLAYER_QUEST_LOG_2_3=0x40,
    PLAYER_QUEST_LOG_2_4=0x44,
    PLAYER_QUEST_LOG_3_1=0x48,
    PLAYER_QUEST_LOG_3_2=0x4C,
    PLAYER_QUEST_LOG_3_3=0x50,
    PLAYER_QUEST_LOG_3_4=0x54,
    PLAYER_QUEST_LOG_4_1=0x58,
    PLAYER_QUEST_LOG_4_2=0x5C,
    PLAYER_QUEST_LOG_4_3=0x60,
    PLAYER_QUEST_LOG_4_4=0x64,
    PLAYER_QUEST_LOG_5_1=0x68,
    PLAYER_QUEST_LOG_5_2=0x6C,
    PLAYER_QUEST_LOG_5_3=0x70,
    PLAYER_QUEST_LOG_5_4=0x74,
    PLAYER_QUEST_LOG_6_1=0x78,
    PLAYER_QUEST_LOG_6_2=0x7C,
    PLAYER_QUEST_LOG_6_3=0x80,
    PLAYER_QUEST_LOG_6_4=0x84,
    PLAYER_QUEST_LOG_7_1=0x88,
    PLAYER_QUEST_LOG_7_2=0x8C,
    PLAYER_QUEST_LOG_7_3=0x90,
    PLAYER_QUEST_LOG_7_4=0x94,
    PLAYER_QUEST_LOG_8_1=0x98,
    PLAYER_QUEST_LOG_8_2=0x9C,
    PLAYER_QUEST_LOG_8_3=0xA0,
    PLAYER_QUEST_LOG_8_4=0xA4,
    PLAYER_QUEST_LOG_9_1=0xA8,
    PLAYER_QUEST_LOG_9_2=0xAC,
    PLAYER_QUEST_LOG_9_3=0xB0,
    PLAYER_QUEST_LOG_9_4=0xB4,
    PLAYER_QUEST_LOG_10_1=0xB8,
    PLAYER_QUEST_LOG_10_2=0xBC,
    PLAYER_QUEST_LOG_10_3=0xC0,
    PLAYER_QUEST_LOG_10_4=0xC4,
    PLAYER_QUEST_LOG_11_1=0xC8,
    PLAYER_QUEST_LOG_11_2=0xCC,
    PLAYER_QUEST_LOG_11_3=0xD0,
    PLAYER_QUEST_LOG_11_4=0xD4,
    PLAYER_QUEST_LOG_12_1=0xD8,
    PLAYER_QUEST_LOG_12_2=0xDC,
    PLAYER_QUEST_LOG_12_3=0xE0,
    PLAYER_QUEST_LOG_12_4=0xE4,
    PLAYER_QUEST_LOG_13_1=0xE8,
    PLAYER_QUEST_LOG_13_2=0xEC,
    PLAYER_QUEST_LOG_13_3=0xF0,
    PLAYER_QUEST_LOG_13_4=0xF4,
    PLAYER_QUEST_LOG_14_1=0xF8,
    PLAYER_QUEST_LOG_14_2=0xFC,
    PLAYER_QUEST_LOG_14_3=0x100,
    PLAYER_QUEST_LOG_14_4=0x104,
    PLAYER_QUEST_LOG_15_1=0x108,
    PLAYER_QUEST_LOG_15_2=0x10C,
    PLAYER_QUEST_LOG_15_3=0x110,
    PLAYER_QUEST_LOG_15_4=0x114,
    PLAYER_QUEST_LOG_16_1=0x118,
    PLAYER_QUEST_LOG_16_2=0x11C,
    PLAYER_QUEST_LOG_16_3=0x120,
    PLAYER_QUEST_LOG_16_4=0x124,
    PLAYER_QUEST_LOG_17_1=0x128,
    PLAYER_QUEST_LOG_17_2=0x12C,
    PLAYER_QUEST_LOG_17_3=0x130,
    PLAYER_QUEST_LOG_17_4=0x134,
    PLAYER_QUEST_LOG_18_1=0x138,
    PLAYER_QUEST_LOG_18_2=0x13C,
    PLAYER_QUEST_LOG_18_3=0x140,
    PLAYER_QUEST_LOG_18_4=0x144,
    PLAYER_QUEST_LOG_19_1=0x148,
    PLAYER_QUEST_LOG_19_2=0x14C,
    PLAYER_QUEST_LOG_19_3=0x150,
    PLAYER_QUEST_LOG_19_4=0x154,
    PLAYER_QUEST_LOG_20_1=0x158,
    PLAYER_QUEST_LOG_20_2=0x15C,
    PLAYER_QUEST_LOG_20_3=0x160,
    PLAYER_QUEST_LOG_20_4=0x164,
    PLAYER_QUEST_LOG_21_1=0x168,
    PLAYER_QUEST_LOG_21_2=0x16C,
    PLAYER_QUEST_LOG_21_3=0x170,
    PLAYER_QUEST_LOG_21_4=0x174,
    PLAYER_QUEST_LOG_22_1=0x178,
    PLAYER_QUEST_LOG_22_2=0x17C,
    PLAYER_QUEST_LOG_22_3=0x180,
    PLAYER_QUEST_LOG_22_4=0x184,
    PLAYER_QUEST_LOG_23_1=0x188,
    PLAYER_QUEST_LOG_23_2=0x18C,
    PLAYER_QUEST_LOG_23_3=0x190,
    PLAYER_QUEST_LOG_23_4=0x194,
    PLAYER_QUEST_LOG_24_1=0x198,
    PLAYER_QUEST_LOG_24_2=0x19C,
    PLAYER_QUEST_LOG_24_3=0x1A0,
    PLAYER_QUEST_LOG_24_4=0x1A4,
    PLAYER_QUEST_LOG_25_1=0x1A8,
    PLAYER_QUEST_LOG_25_2=0x1AC,
    PLAYER_QUEST_LOG_25_3=0x1B0,
    PLAYER_QUEST_LOG_25_4=0x1B4,
    PLAYER_VISIBLE_ITEM_1_CREATOR=0x1B8,
    PLAYER_VISIBLE_ITEM_1_0=0x1C0,
    PLAYER_VISIBLE_ITEM_1_PROPERTIES=0x1F0,
    PLAYER_VISIBLE_ITEM_1_PAD=0x1F4,
    PLAYER_VISIBLE_ITEM_2_CREATOR=0x1F8,
    PLAYER_VISIBLE_ITEM_2_0=0x200,
    PLAYER_VISIBLE_ITEM_2_PROPERTIES=0x230,
    PLAYER_VISIBLE_ITEM_2_PAD=0x234,
    PLAYER_VISIBLE_ITEM_3_CREATOR=0x238,
    PLAYER_VISIBLE_ITEM_3_0=0x240,
    PLAYER_VISIBLE_ITEM_3_PROPERTIES=0x270,
    PLAYER_VISIBLE_ITEM_3_PAD=0x274,
    PLAYER_VISIBLE_ITEM_4_CREATOR=0x278,
    PLAYER_VISIBLE_ITEM_4_0=0x280,
    PLAYER_VISIBLE_ITEM_4_PROPERTIES=0x2B0,
    PLAYER_VISIBLE_ITEM_4_PAD=0x2B4,
    PLAYER_VISIBLE_ITEM_5_CREATOR=0x2B8,
    PLAYER_VISIBLE_ITEM_5_0=0x2C0,
    PLAYER_VISIBLE_ITEM_5_PROPERTIES=0x2F0,
    PLAYER_VISIBLE_ITEM_5_PAD=0x2F4,
    PLAYER_VISIBLE_ITEM_6_CREATOR=0x2F8,
    PLAYER_VISIBLE_ITEM_6_0=0x300,
    PLAYER_VISIBLE_ITEM_6_PROPERTIES=0x330,
    PLAYER_VISIBLE_ITEM_6_PAD=0x334,
    PLAYER_VISIBLE_ITEM_7_CREATOR=0x338,
    PLAYER_VISIBLE_ITEM_7_0=0x340,
    PLAYER_VISIBLE_ITEM_7_PROPERTIES=0x370,
    PLAYER_VISIBLE_ITEM_7_PAD=0x374,
    PLAYER_VISIBLE_ITEM_8_CREATOR=0x378,
    PLAYER_VISIBLE_ITEM_8_0=0x380,
    PLAYER_VISIBLE_ITEM_8_PROPERTIES=0x3B0,
    PLAYER_VISIBLE_ITEM_8_PAD=0x3B4,
    PLAYER_VISIBLE_ITEM_9_CREATOR=0x3B8,
    PLAYER_VISIBLE_ITEM_9_0=0x3C0,
    PLAYER_VISIBLE_ITEM_9_PROPERTIES=0x3F0,
    PLAYER_VISIBLE_ITEM_9_PAD=0x3F4,
    PLAYER_VISIBLE_ITEM_10_CREATOR=0x3F8,
    PLAYER_VISIBLE_ITEM_10_0=0x400,
    PLAYER_VISIBLE_ITEM_10_PROPERTIES=0x430,
    PLAYER_VISIBLE_ITEM_10_PAD=0x434,
    PLAYER_VISIBLE_ITEM_11_CREATOR=0x438,
    PLAYER_VISIBLE_ITEM_11_0=0x440,
    PLAYER_VISIBLE_ITEM_11_PROPERTIES=0x470,
    PLAYER_VISIBLE_ITEM_11_PAD=0x474,
    PLAYER_VISIBLE_ITEM_12_CREATOR=0x478,
    PLAYER_VISIBLE_ITEM_12_0=0x480,
    PLAYER_VISIBLE_ITEM_12_PROPERTIES=0x4B0,
    PLAYER_VISIBLE_ITEM_12_PAD=0x4B4,
    PLAYER_VISIBLE_ITEM_13_CREATOR=0x4B8,
    PLAYER_VISIBLE_ITEM_13_0=0x4C0,
    PLAYER_VISIBLE_ITEM_13_PROPERTIES=0x4F0,
    PLAYER_VISIBLE_ITEM_13_PAD=0x4F4,
    PLAYER_VISIBLE_ITEM_14_CREATOR=0x4F8,
    PLAYER_VISIBLE_ITEM_14_0=0x500,
    PLAYER_VISIBLE_ITEM_14_PROPERTIES=0x530,
    PLAYER_VISIBLE_ITEM_14_PAD=0x534,
    PLAYER_VISIBLE_ITEM_15_CREATOR=0x538,
    PLAYER_VISIBLE_ITEM_15_0=0x540,
    PLAYER_VISIBLE_ITEM_15_PROPERTIES=0x570,
    PLAYER_VISIBLE_ITEM_15_PAD=0x574,
    PLAYER_VISIBLE_ITEM_16_CREATOR=0x578,
    PLAYER_VISIBLE_ITEM_16_0=0x580,
    PLAYER_VISIBLE_ITEM_16_PROPERTIES=0x5B0,
    PLAYER_VISIBLE_ITEM_16_PAD=0x5B4,
    PLAYER_VISIBLE_ITEM_17_CREATOR=0x5B8,
    PLAYER_VISIBLE_ITEM_17_0=0x5C0,
    PLAYER_VISIBLE_ITEM_17_PROPERTIES=0x5F0,
    PLAYER_VISIBLE_ITEM_17_PAD=0x5F4,
    PLAYER_VISIBLE_ITEM_18_CREATOR=0x5F8,
    PLAYER_VISIBLE_ITEM_18_0=0x600,
    PLAYER_VISIBLE_ITEM_18_PROPERTIES=0x630,
    PLAYER_VISIBLE_ITEM_18_PAD=0x634,
    PLAYER_VISIBLE_ITEM_19_CREATOR=0x638,
    PLAYER_VISIBLE_ITEM_19_0=0x640,
    PLAYER_VISIBLE_ITEM_19_PROPERTIES=0x670,
    PLAYER_VISIBLE_ITEM_19_PAD=0x674,
    PLAYER_CHOSEN_TITLE=0x678,
    PLAYER_FIELD_PAD_0=0x67C,
    PLAYER_FIELD_INV_SLOT_HEAD=0x680,
    PLAYER_FIELD_PACK_SLOT_1=0x738,
    PLAYER_FIELD_BANK_SLOT_1=0x7B8,
    PLAYER_FIELD_BANKBAG_SLOT_1=0x898,
    PLAYER_FIELD_VENDORBUYBACK_SLOT_1=0x8D0,
    PLAYER_FIELD_KEYRING_SLOT_1=0x930,
    PLAYER_FIELD_VANITYPET_SLOT_1=0xA30,
    PLAYER_FARSIGHT=0xAC0,
    PLAYER__FIELD_KNOWN_TITLES=0xAC8,
    PLAYER_XP=0xAD0,
    PLAYER_NEXT_LEVEL_XP=0xAD4,
    PLAYER_SKILL_INFO_1_1=0xAD8,
    PLAYER_CHARACTER_POINTS1=0x10D8,
    PLAYER_CHARACTER_POINTS2=0x10DC,
    PLAYER_TRACK_CREATURES=0x10E0,
    PLAYER_TRACK_RESOURCES=0x10E4,
    PLAYER_BLOCK_PERCENTAGE=0x10E8,
    PLAYER_DODGE_PERCENTAGE=0x10EC,
    PLAYER_PARRY_PERCENTAGE=0x10F0,
    PLAYER_EXPERTISE=0x10F4,
    PLAYER_OFFHAND_EXPERTISE=0x10F8,
    PLAYER_CRIT_PERCENTAGE=0x10FC,
    PLAYER_RANGED_CRIT_PERCENTAGE=0x1100,
    PLAYER_OFFHAND_CRIT_PERCENTAGE=0x1104,
    PLAYER_SPELL_CRIT_PERCENTAGE1=0x1108,
    PLAYER_SHIELD_BLOCK=0x1124,
    PLAYER_EXPLORED_ZONES_1=0x1128,
    PLAYER_REST_STATE_EXPERIENCE=0x1228,
    PLAYER_FIELD_COINAGE=0x122C,
    PLAYER_FIELD_MOD_DAMAGE_DONE_POS=0x1230,
    PLAYER_FIELD_MOD_DAMAGE_DONE_NEG=0x124C,
    PLAYER_FIELD_MOD_DAMAGE_DONE_PCT=0x1268,
    PLAYER_FIELD_MOD_HEALING_DONE_POS=0x1284,
    PLAYER_FIELD_MOD_TARGET_RESISTANCE=0x1288,
    PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE=0x128C,
    PLAYER_FIELD_BYTES=0x1290,
    PLAYER_AMMO_ID=0x1294,
    PLAYER_SELF_RES_SPELL=0x1298,
    PLAYER_FIELD_PVP_MEDALS=0x129C,
    PLAYER_FIELD_BUYBACK_PRICE_1=0x12A0,
    PLAYER_FIELD_BUYBACK_TIMESTAMP_1=0x12D0,
    PLAYER_FIELD_KILLS=0x1300,
    PLAYER_FIELD_TODAY_CONTRIBUTION=0x1304,
    PLAYER_FIELD_YESTERDAY_CONTRIBUTION=0x1308,
    PLAYER_FIELD_LIFETIME_HONORBALE_KILLS=0x130C,
    PLAYER_FIELD_BYTES2=0x1310,
    PLAYER_FIELD_WATCHED_FACTION_INDEX=0x1314,
    PLAYER_FIELD_COMBAT_RATING_1=0x1318,
    PLAYER_FIELD_ARENA_TEAM_INFO_1_1=0x1378,
    PLAYER_FIELD_HONOR_CURRENCY=0x13C0,
    PLAYER_FIELD_ARENA_CURRENCY=0x13C4,
    PLAYER_FIELD_MOD_MANA_REGEN=0x13C8,
    PLAYER_FIELD_MOD_MANA_REGEN_INTERRUPT=0x13CC,
    PLAYER_FIELD_MAX_LEVEL=0x13D0,
    PLAYER_FIELD_DAILY_QUESTS_1=0x13D4,
    TOTAL_PLAYER_FIELDS=0xF2
    };


    i understand that you made your own struct to hold the data, but how did you fill that struct? where did you get the data for the con you listed?

    thanks for your replies!

  6. #6
    korknob's Avatar Active Member
    Reputation
    29
    Join Date
    May 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    should match up with your UNIT_FIELD_FACTIONTEMPLATE=0x74, just read target diff mobs/npcs and compare values.

    Code:
    bool EvaluateMob(mob_struct Mob)
    {
    	if (Mob.current_health) // is alive
    	{
    		if ((Mob.level > Player.level - 5) && (Mob.level < Player.level + 3)) // is not too low or too high
    		{
    			if ((Mob.con != FRIENDLY) && (Mob.con != PARTY)) // is not NPC or Party/blue (pet)
    			{
    				if (Mob.type == 17213) //make sure it isnt that broom critter you cant target at the BE starting place
    					return false;
    				if ((!Mob.target) || (Mob.target = Player.ID))
    					return true;
    			}
    		}
    	}
    	return false;
    }
    thats the function i use to determine whether its a viable mob to target.

  7. #7
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you wrote:

    UNIT_FIELD_FACTIONTEMPLATE=0x74

    is where to get the data to fill the .con


    the values i get from that are:

    01 if pet, also if other players seems to be 01


    but i get a range from 38 to 54 and etc. for other creatures and NPC's. this doesn't seem to work correctly.

    are you sure you are filling your Mob.con with the value from UNIT_FIELD_FACTIONTEMPLATE=0x74 ???

    perhaps it was another address instead that held the data for yellow/red/blue/green, etc.?

  8. #8
    KOS0937's Avatar Member
    Reputation
    18
    Join Date
    May 2008
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @korknob: your interpretation of the factiontemplate field will only work in the BE starting area...
    Here is what i've got so far (although most of these are NPCs to specifically exclude them!):
    Code:
      // players
      factions[1]:=ALLY; // human
      factions[2]:=HORDE;// orc
      factions[3]:=ALLY; // dwarf
      factions[4]:=ALLY; // night elf
      factions[5]:=HORDE;// undead
      factions[6]:=HORDE;// tauren
      factions[115]:=ALLY;//gnome
      factions[116]:=HORDE;//troll
      factions[1610]:=HORDE; // blood elf
      factions[1629]:=ALLY; // draenai
      //critters
      factions[31]:=ALLY or HORDE or FACTION_DUMMY;
      // NPCs
      factions[11]:=ALLY;
      factions[12]:=ALLY;
      factions[29]:=HORDE;
      factions[35]:=ALLY or HORDE;
      factions[55]:=ALLY;
      factions[57]:=ALLY;
      factions[64]:=ALLY;
      factions[68]:=HORDE;
      factions[69]:=ALLY or HORDE; // ratchet
      factions[71]:=HORDE;
      factions[79]:=ALLY;
      factions[80]:=ALLY;
      factions[83]:=HORDE;
      factions[84]:=ALLY;
      factions[85]:=HORDE;
      factions[104]:=HORDE;
      factions[105]:=HORDE;
      factions[114]:=ALLY or HORDE or FACTION_DUMMY; // totem / dummy
      factions[118]:=HORDE;
      factions[120]:=ALLY or HORDE; // booty bay
      factions[121]:=ALLY or HORDE; // booty bay
      factions[122]:=ALLY;
      factions[123]:=ALLY;
      factions[124]:=ALLY;
      factions[125]:=HORDE;
      factions[126]:=HORDE;
      factions[188]:=ALLY or HORDE or FACTION_DUMMY; // or HORDE? pet
      factions[412]:=HORDE;
      factions[637]:=ALLY or HORDE; // ratchet
      factions[875]:=ALLY;
      factions[876]:=HORDE;
      factions[914]:=HORDE or ALLY or FACTION_DUMMY; // undercity practice dummy
      factions[994]:=ALLY or HORDE; // cenarion?
      factions[1034]:=ALLY or HORDE or FACTION_DUMMY; // practice dummy
      factions[1074]:=HORDE;
      factions[1076]:=ALLY; // elf? priest?
      factions[1078]:=ALLY;
      factions[1154]:=HORDE;
      factions[1214]:=HORDE;
      factions[1215]:=HORDE;
      factions[1216]:=ALLY;
      factions[1217]:=ALLY;
      factions[1514]:=ALLY;
      factions[1515]:=HORDE;
      factions[1574]:=ALLY or HORDE; //zandalarian tribe
      factions[1576]:=ALLY;
      factions[1577]:=ALLY;
      factions[1604]:=HORDE;
      factions[1618]:=ALLY;
      factions[1619]:=HORDE;
      factions[1636]:=HORDE;
      factions[1638]:=ALLY;
      factions[1640]:=ALLY;
      factions[1695]:=HORDE;
    EDIT: ok, i just found this correct list in the server-emu forum ^^
    Code:
    UNIT_FACTIONTEMPLATE
    (Thanks to Xcynic)
    
    1 PLAYER, Human 1
    2 PLAYER, Orc 2
    3 PLAYER, Dwarf 3
    4 PLAYER, Night Elf 4
    5 PLAYER, Undead 5
    6 PLAYER, Tauren 6
    7 Creature 7
    10 Escortee 40
    11 Stormwind 72
    12 Stormwind 72
    14 Monster 14
    15 Creature 7
    16 Monster 14
    17 Defias Brotherhood 15
    18 Murloc 19
    19 Gnoll - Redridge 17
    20 Gnoll - Riverpaw 16
    21 Undead, Scourge 20
    22 Beast - Spider 22
    23 Gnomeregan Exiles 54
    24 Worgen 24
    25 Kobold 25
    26 Kobold 25
    27 Defias Brotherhood 15
    28 Troll, Bloodscalp 26
    29 Orgrimmar 76
    30 Troll, Skullsplitter 27
    31 Prey 28
    32 Beast - Wolf 29
    33 Escortee 40
    34 Defias Brotherhood 15
    35 Friendly 31
    36 Trogg 32
    37 Troll, Frostmane 33
    38 Beast - Wolf 29
    39 Gnoll - Shadowhide 18
    40 Orc, Blackrock 34
    41 Villian 35
    42 Victim 36
    43 Villian 35
    44 Beast - Bear 37
    45 Ogre 38
    46 Kurzen's Mercenaries 39
    47 Venture Company 41
    48 Beast - Raptor 42
    49 Basilisk 43
    50 Dragonflight, Green 44
    51 Lost Ones 45
    52 Gizlock's Dummy 769
    53 Human, Night Watch 49
    54 Dark Iron Dwarves 48
    55 Ironforge 47
    56 Human, Night Watch 49
    57 Ironforge 47
    58 Creature 7
    59 Trogg 32
    60 Dragonflight, Red 50
    61 Gnoll - Mosshide 51
    62 Orc, Dragonmaw 52
    63 Gnome - Leper 53
    64 Gnomeregan Exiles 54
    65 Orgrimmar 76
    66 Leopard 55
    67 Scarlet Crusade 56
    68 Undercity 68
    69 Ratchet 470
    70 Gnoll - Rothide 57
    71 Undercity 68
    72 Beast - Gorilla 58
    73 Beast - Carrion Bird 669
    74 Naga 60
    76 Dalaran 61
    77 Forlorn Spirit 62
    78 Darkhowl 63
    79 Darnassus 69
    80 Darnassus 69
    81 Grell 64
    82 Furbolg 65
    83 Horde Generic 66
    84 Alliance Generic 189
    85 Orgrimmar 76
    86 Gizlock's Charm 770
    87 Syndicate 70
    88 Hillsbrad Militia 71
    89 Scarlet Crusade 56
    90 Demon 73
    91 Elemental 74
    92 Spirit 75
    93 Monster 14
    94 Treasure 77
    95 Gnoll - Mudsnout 78
    96 HIllsbrad, Southshore Mayor 79
    97 Syndicate 70
    98 Undercity 68
    99 Victim 36
    100 Treasure 77
    101 Treasure 77
    102 Treasure 77
    103 Dragonflight, Black 80
    104 Thunder Bluff 81
    105 Thunder Bluff 81
    106 Horde Generic 66
    107 Troll, Frostmane 33
    108 Syndicate 70
    109 Quilboar, Razormane 2 110
    110 Quilboar, Razormane 2 110
    111 Quilboar, Bristleback 85
    112 Quilboar, Bristleback 85
    113 Escortee 40
    114 Treasure 77
    115 PLAYER, Gnome 8
    116 PLAYER, Troll 9
    118 Undercity 68
    119 Bloodsail Buccaneers 87
    120 Booty Bay 21
    121 Booty Bay 21
    122 Ironforge 47
    123 Stormwind 72
    124 Darnassus 69
    125 Orgrimmar 76
    126 Darkspear Trolls 530
    127 Villian 35
    128 Blackfathom 88
    129 Makrura 89
    130 Centaur, Kolkar 90
    131 Centaur, Galak 91
    132 Gelkis Clan Centaur 92
    133 Magram Clan Centaur 93
    134 Maraudine 94
    148 Monster 14
    149 Theramore 108
    150 Theramore 108
    151 Theramore 108
    152 Quilboar, Razorfen 109
    153 Quilboar, Razorfen 109
    154 Quilboar, Deathshead 111
    168 Enemy 128
    188 Ambient 148
    189 Creature 7
    190 Ambient 148
    208 Nethergarde Caravan 168
    209 Nethergarde Caravan 168
    210 Alliance Generic 189
    230 Southsea Freebooters 573
    231 Escortee 40
    232 Escortee 40
    233 Undead, Scourge 20
    250 Escortee 40
    270 Wailing Caverns 229
    290 Escortee 40
    310 Silithid 249
    311 Silithid 249
    312 Beast - Spider 22
    330 Wailing Caverns 229
    350 Blackfathom 88
    370 Armies of C'Thun 915
    371 Silvermoon Remnant 269
    390 Booty Bay 21
    410 Basilisk 43
    411 Beast - Bat 310
    412 The Defilers 510
    413 Scorpid 309
    414 Timbermaw Hold 576
    415 Titan 311
    416 Titan 311
    430 Taskmaster Fizzule 329
    450 Wailing Caverns 229
    470 Titan 311
    471 Ravenholdt 349
    472 Syndicate 70
    473 Ravenholdt 349
    474 Gadgetzan 369
    475 Gadgetzan 369
    494 Gnomeregan Bug 389
    495 Escortee 40
    514 Harpy 409
    534 Alliance Generic 189
    554 Burning Blade 429
    574 Shadowsilk Poacher 449
    575 Searing Spider 450
    594 Trogg 32
    614 Victim 36
    634 Monster 14
    635 Cenarion Circle 609
    636 Timbermaw Hold 576
    637 Ratchet 470
    654 Troll, Witherbark 82
    655 Centaur, Kolkar 90
    674 Dark Iron Dwarves 48
    694 Wildhammer Clan 471
    695 Hydraxian Waterlords 749
    714 Horde Generic 66
    734 Dark Iron Dwarves 48
    735 Goblin, Dark Iron Bar Patron 489
    736 Goblin, Dark Iron Bar Patron 489
    754 Dark Iron Dwarves 48
    774 Escortee 40
    775 Escortee 40
    776 Brood of Nozdormu 910
    777 Might of Kalimdor 912
    778 Giant 511
    794 Argent Dawn 529
    795 Troll, Vilebranch 572
    814 Argent Dawn 529
    834 Elemental 74
    854 Everlook 577
    855 Everlook 577
    874 Wintersaber Trainers 589
    875 Gnomeregan Exiles 54
    876 Darkspear Trolls 530
    877 Darkspear Trolls 530
    894 Theramore 108
    914 Training Dummy 679
    934 Furbolg, Uncorrupted 575
    954 Demon 73
    974 Undead, Scourge 20
    994 Cenarion Circle 609
    995 Thunder Bluff 81
    996 Cenarion Circle 609
    1014 Shatterspear Trolls 629
    1015 Shatterspear Trolls 629
    1034 Horde Generic 66
    1054 Wildhammer Clan 471
    1055 Wildhammer Clan 471
    1074 Orgrimmar 76
    1075 Theramore 108
    1076 Darnassus 69
    1077 Theramore 108
    1078 Stormwind 72
    1080 Friendly 31
    1081 Elemental 74
    1094 Beast - Boar 23
    1095 Training Dummy 679
    1096 Theramore 108
    1097 Darnassus 69
    1114 Dragonflight, Black - Bait 689
    1134 Undercity 68
    1154 Undercity 68
    1174 Orgrimmar 76
    1194 Battleground Neutral 709
    1214 Frostwolf Clan 729
    1215 Frostwolf Clan 729
    1216 Stormpike Guard 730
    1217 Stormpike Guard 730
    1234 Sulfuron Firelords 750
    1235 Sulfuron Firelords 750
    1236 Sulfuron Firelords 750
    1254 Cenarion Circle 609
    1274 Creature 7
    1275 Creature 7
    1294 Gizlock 771
    1314 Horde Generic 66
    1315 Alliance Generic 189
    1334 Stormpike Guard 730
    1335 Frostwolf Clan 729
    1354 Shen'dralar 809
    1355 Shen'dralar 809
    1374 Ogre (Captain Kromcrush) 829
    1375 Treasure 77
    1394 Dragonflight, Black 80
    1395 Silithid Attackers 916
    1414 Spirit Guide - Alliance 790
    1415 Spirit Guide - Horde 849
    1434 Jaedenar 869
    1454 Victim 36
    1474 Thorium Brotherhood 59
    1475 Thorium Brotherhood 59
    1494 Revantusk Trolls 893
    1495 Revantusk Trolls 893
    1496 Revantusk Trolls 893
    1514 Silverwing Sentinels 890
    1515 Warsong Outriders 889
    1534 Stormpike Guard 730
    1554 Frostwolf Clan 729
    1555 Darkmoon Faire 909
    1574 Zandalar Tribe 270
    1575 Stormwind 72
    1576 Silvermoon Remnant 269
    1577 The League of Arathor 509
    1594 Darnassus 69
    1595 Orgrimmar 76
    1596 Stormpike Guard 730
    1597 Frostwolf Clan 729
    1598 The Defilers 510
    1599 The League of Arathor 509
    1600 Darnassus 69
    1601 Brood of Nozdormu 910
     1602 Silvermoon City 911
     
    1603 Silvermoon City 911
    1604 Silvermoon City 911
    1605 Dragonflight, Bronze 531
    1606 Creature 7
    1607 Creature 7
    1608 Cenarion Circle 609
    1610 PLAYER, Blood Elf 914
    1611 Ironforge 47
    1612 Orgrimmar 76
    1613 Might of Kalimdor 912
    1614 Monster 14
    1615 Steamwheedle Cartel 169
    1616 RC Objects 919
    1617 RC Enemies 918
    1618 Ironforge 47
    1619 Orgrimmar 76
    1620 Enemy 128
    1621 Blue 921
    1622 Red 920
    1623 Tranquillien 922
    1624 Argent Dawn 529
    1625 Argent Dawn 529
    1626 Undead, Scourge 20
    1627 Farstriders 923
    1628 Tranquillien 922
    1629 PLAYER, Draenei 927
    1630 Scourge Invaders 928
    1634 Scourge Invaders 928
    1635 Steamwheedle Cartel 169
    1636 Farstriders 923
    1637 Farstriders 923
    1638 Exodar 930
    1639 Exodar 930
    1640 Exodar 930
    1641 Warsong Outriders 889
    1642 Silverwing Sentinels 890
    1643 Troll, Forest 937
    1644 The Sons of Lothar 940
    1645 The Sons of Lothar 940
    1646 Exodar 930
    1647 Exodar 930
    1648 The Sons of Lothar 940
    1649 The Sons of Lothar 940
    1650 The Mag'har 941
    1651 The Mag'har 941
    1652 The Mag'har 941
    1653 The Mag'har 941
    1654 Exodar 930
    1655 Exodar 930
    1656 Silvermoon City 911
    1657 Silvermoon City 911
    1658 Silvermoon City 911
    1659 Cenarion Expedition 942
    1660 Cenarion Expedition 942
    1661 Cenarion Expedition 942
    1662 Fel Orc 943
    1663 Fel Orc Ghost 944
    1664 Sons of Lothar Ghosts 945
    1665 0
    1666 Honor Hold 946
    1667 Honor Hold 946
    1668 Thrallmar 947
    1669 Thrallmar 947
    1670 Thrallmar 947
    1671 Honor Hold 946
    1672 Test Faction 2 948
    1673 ToWoW - Flag 950
    1674 Test Faction 4 953
    1675 Test Faction 3 952
    1676 ToWoW - Flag Trigger Horde ( 954
    1677 ToWoW - Flag Trigger Allianc 951
    1678 Ethereum 956
    1679 Broken 955
    1680 Elemental 74
    1681 Earth Elemental 957
    1682 Fighting Robots 958
    1683 Actor Good 959
    1684 Actor Evil 960
    1685 Stillpine Furbolg 961
    1686 Stillpine Furbolg 961
    1687 Crazed Owlkin 962
    1688 Chess Alliance 963
    1689 Chess Horde 964
    1690 Chess Alliance 963
    1691 Chess Horde 964
    1692 Monster Spar 965
    1693 Monster Spar Buddy 966
    1694 Exodar 930
    1695 Silvermoon City 911
    1696 The Violet Eye 967
    1697 Fel Orc 943
    1698 Exodar 930
    1699 Exodar 930
    1700 Exodar 930
    1701 Sunhawks 968
    1702 Sunhawks 968
    1703 Training Dummy 679
    1704 Fel Orc 943
    1705 Fel Orc 943
    1706 Fungal Giant 971
    1707 Sporeggar 970
    1708 Sporeggar 970
    1709 Sporeggar 970
    1710 Cenarion Expedition 942
    1711 Monster, Predator 973
    1712 Monster, Prey 974
    1713 Monster, Prey 974
    1714 Sunhawks 968
    1715 Void Anomaly 975
    1716 Hyjal Defenders 976
    1717 Hyjal Defenders 976
    1718 Hyjal Defenders 976
    1719 Hyjal Defenders 976
    1720 Hyjal Invaders 977
    1721 Kurenai 978
    1722 Kurenai 978
    1723 Kurenai 978
    1724 Kurenai 978
    1725 Earthen Ring 979
    1726 Earthen Ring 979
    1727 Earthen Ring 979
    1728 Cenarion Expedition 942
    1729 Thrallmar 947
    1730 The Consortium 933
    1731 The Consortium 933
    1732 Alliance Generic 189
    1733 Alliance Generic 189
    1734 Horde Generic 66
    1735 Horde Generic 66
    1736 Monster Spar Buddy 966
    1737 Honor Hold 946
    1738 Arakkoa 981
    1739 Zangarmarsh Banner (Alliance 982
    1740 Zangarmarsh Banner (Horde) 983
    1741 The Sha'tar 935
    1742 Zangarmarsh Banner (Neutral) 984
    1743 The Aldor 932
    1744 The Scryers 934
    1745 Silvermoon City 911
    1746 The Scryers 934
    1747 Caverns of Time - Thrall 985
    1748 Caverns of Time - Durnholde 986
    1749 Caverns of Time - Southshore 987
    1750 Shadow Council Covert 988
    1751 Monster 14
    1752 Dark Portal Attacker, Legion 993
    1753 Dark Portal Attacker, Legion 993
    1754 Dark Portal Attacker, Legion 993
    1755 Dark Portal Defender, Allian 991
    1756 Dark Portal Defender, Allian 991
    1757 Dark Portal Defender, Allian 991
    1758 Dark Portal Defender, Horde 992
    1759 Dark Portal Defender, Horde 992
    1760 Dark Portal Defender, Horde 992
    1761 Inciter Trigger 994
    1762 Inciter Trigger 2 995
    1763 Inciter Trigger 3 996
    1764 Inciter Trigger 4 997
    1765 Inciter Trigger 5 998
    1766 Argent Dawn 529
    1767 Argent Dawn 529
    1768 Demon 73
    1769 Demon 73
    1770 Actor Good 959
    1771 Actor Evil 960
    1772 Mana Creature 999
    1773 Khadgar's Servant 1000
    1774 Friendly 31
    1775 The Sha'tar 935
    1776 The Aldor 932
    1777 The Aldor 932
    1778 The Scale of the Sands 990
    1779 Keepers of Time 989
    1780 Bladespire Clan 1001
    1781 Bloodmaul Clan 929
    1782 Bladespire Clan 1001
    1783 Bloodmaul Clan 929
    1784 Bladespire Clan 1001
    1785 Bloodmaul Clan 929
    1786 Demon 73
    1787 Monster 14
    1788 The Consortium 933
    1789 Sunhawks 968
    1790 Bladespire Clan 1001
    1791 Bloodmaul Clan 929
    1792 Fel Orc 943
    1793 Sunhawks 968
    1794 Protectorate 1003
    1795 Protectorate 1003
    1796 Ethereum 956
    1797 Protectorate 1003
    1798 Arcane Annihilator (DNR) 1004
    1799 Ethereum Sparbuddy 1002
    1800 Ethereum 956
    1801 Horde 67
    1802 Alliance 469
    1803 Ambient 148
    1804 Ambient 148
    1805 The Aldor 932
    1806 Friendly 31
    1807 Protectorate 1003
    1808 Kirin'Var - Belmara 1007
    1809 Kirin'Var - Cohlien 1009
    1810 Kirin'Var - Dathric 1006
    1811 Kirin'Var - Luminrath 1008
    1812 Friendly 31
    1813 Servant of Illidan 1010
    1814 Monster Spar Buddy 966
    1815 Beast - Wolf 29
    1816 Friendly 31
    1818 Lower City 1011
    1819 Alliance Generic 189
    1820 Ashtongue Deathsworn 1012
    1821 Spirits of Shadowmoon 1 1013
    1822 Spirits of Shadowmoon 2 1014
    1823 Ethereum 956
    1824 Netherwing 1015
    1825 Demon 73
    1826 Servant of Illidan 1010
    1827 Wyrmcult 1016
    1828 Treant 1017
    1829 Leotheras Demon I 1018
    1830 Leotheras Demon II 1019
    1831 Leotheras Demon III 1020
    1832 Leotheras Demon IV 1021
    1833 Leotheras Demon V 1022
    1834 Azaloth 1023
    1835 Horde Generic 66
    1836 The Consortium 933
    1837 Sporeggar 970
    1838 The Scryers 934
    1839 Rock Flayer 1024
    1840 Flayer Hunter 1025
    1841 Shadowmoon Shade 1026
    1842 Legion Communicator 1027
    1843 Servant of Illidan 1010
    1844 The Aldor 932
    1845 The Scryers 934
    1846 Ravenswood Ancients 1028
    1847 Monster Spar 965
    1848 Monster Spar Buddy 966
    1849 Servant of Illidan 1010
    1850 Netherwing 1015
    1851 Lower City 1011
    1852 Chess, Friendly to All Chess 1029
    Now i only need to translate all mob-factions to "Kill-on-sight" or "not Kill-on-sight" oO
    Last edited by KOS0937; 05-30-2008 at 07:31 AM.

  9. #9
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    KOS097, your second list appears to be correct! In fact I can use this to actually display the actual units in my bot program when I get to that point. However, the list is exhausing and there is no way I could tell you which is friendly, which is normal, which is NPC, which is enemy, etc.

    There has to be some other way to quickly identify the units! Or has someone already gone throught this list to create the ALLY/HORDE thing like you were trying to do.

    I am in Duskwood and many of the faction types here aren't on your first list unfortunately. They show up on the second list, however.

    This is frustrating! Someone has surely found a way to discriminate the units already!

    Thanks again for the info! This list will be great at least for having a unit identifyer specific to it's name. It just doesn't help to discriminate it's threat to the player (as is).

  10. #10
    korknob's Avatar Active Member
    Reputation
    29
    Join Date
    May 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well it was mentioned in another thread theres an aggro flag, compare bitmasks of those values and maybe you'll see something useful, IE a certain bit for ALLY, a certain bit for HORDE, one for PLAYER, etc

    edit: what is that second number? or is it also that faction
    Last edited by korknob; 05-30-2008 at 06:10 PM.

  11. #11
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by korknob View Post
    well it was mentioned in another thread theres an aggro flag, compare bitmasks of those values and maybe you'll see something useful, IE a certain bit for ALLY, a certain bit for HORDE, one for PLAYER, etc

    edit: what is that second number? or is it also that faction

    i don't really understand how to do a bitwise compare, also i have not bit table to use to make the compares with. how does one do bitwise compares to begin with?

    has anyone devised a way to separate out the units such that we can tell who is friendly and who can be attacked? also perhaps which units are neutral until attacked?

    thanks for all the info so far. i am getting pretty far along with other parts of my program and moving forward towards waypoint implementation.

    however, it will be pretty useless in many ways if there is no way to discriminate the units-

    best,
    Cal

  12. #12
    korknob's Avatar Active Member
    Reputation
    29
    Join Date
    May 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just glancing at the numbers it doesnt look like theres going to be a bit set.

    1 = human = 0001
    2 = orc = 0010
    3 = dwarf = 0011

    both horde and ally are using the same bits. KOS has the right idea about just making a list to set avoidance.

  13. #13
    ShoniShilent's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i figured out how to check the values of specific address that uses flags.

    however, i am bumping this back up for more views.

    perhaps more people will chime in and help me/us.

    still looking for a good way to discriminate the good NPC's from the bad. i need a way to tell if the unit is "attackable" and also, if possible, if the unit is "neutral" (not as important).


    KYNOX wrote:

    Total crap, they have aggro flags >_>


    any help would be appreciated. this is an important step in the process. i have looked at many flags and addresses in realtime during memory and nothing seems to stand out regarding how to discriminate the units.

    plz help!

Similar Threads

  1. Need a mic for wow? (Xbox360 mic only - Must Have 360 Controller)
    By r3anims in forum World of Warcraft General
    Replies: 16
    Last Post: 06-18-2008, 11:29 AM
  2. Help with targeting WoW.exe process
    By FoamyGod in forum WoW EMU Exploits & Bugs
    Replies: 6
    Last Post: 02-23-2008, 01:58 PM
  3. Easy Way to Install WoW/BC/FT
    By Nub in forum World of Warcraft Guides
    Replies: 8
    Last Post: 08-13-2007, 01:37 PM
  4. Is there a way to play WoW without connecting to any server or anything?
    By BumCowMan in forum World of Warcraft General
    Replies: 4
    Last Post: 03-27-2007, 10:40 PM
  5. need the version of wow to connect to a pvt server
    By trojannyte in forum World of Warcraft General
    Replies: 2
    Last Post: 03-24-2007, 06:38 PM
All times are GMT -5. The time now is 02:29 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search