Get a player's base attack power menu

User Tag List

Results 1 to 4 of 4
  1. #1
    brotalnia's Avatar Elite User
    Reputation
    498
    Join Date
    Apr 2009
    Posts
    473
    Thanks G/R
    26/301
    Trade Feedback
    0 (0%)
    Mentioned
    14 Post(s)
    Tagged
    2 Thread(s)

    Get a player's base attack power

    How can i get a player's base attack power in Trinitycore? With Unit::GetTotalAttackPowerValue i can get the total amount, but i want to find the base AP without factoring in the gear and buffs. Is that possible?

    Get a player's base attack power
  2. #2
    Glusk's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2015
    Posts
    33
    Thanks G/R
    7/32
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try calling GetModifierValue like so:
    Code:
    float baseAttackPower = GetModifierValue(UNIT_MOD_ATTACK_POWER, BASE_VALUE);
    Disclaimer: This is just me looking at the TrinityCore source code - I haven't tested it myself. ^^

  3. Thanks stoneharry (1 members gave Thanks to Glusk for this useful post)
  4. #3
    brotalnia's Avatar Elite User
    Reputation
    498
    Join Date
    Apr 2009
    Posts
    473
    Thanks G/R
    26/301
    Trade Feedback
    0 (0%)
    Mentioned
    14 Post(s)
    Tagged
    2 Thread(s)
    I tried this, but it returns the same value as GetTotalAttackPowerValue.

  5. #4
    Glusk's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2015
    Posts
    33
    Thanks G/R
    7/32
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks more promising as it is used exactly the same way as you want to use it.
    Last edited by Glusk; 12-03-2016 at 05:04 PM.

  6. Thanks stoneharry (1 members gave Thanks to Glusk for this useful post)

Similar Threads

  1. How to get the Player Base?
    By =sinister= in forum WoW Memory Editing
    Replies: 5
    Last Post: 03-31-2008, 02:21 AM
  2. Huge Amount of Attack Power
    By Scarmaker in forum World of Warcraft Guides
    Replies: 9
    Last Post: 11-20-2006, 03:41 PM
  3. Ranged Attack Power Increased
    By Snor11 in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 10-28-2006, 08:39 PM
  4. Get to other teams base in wsg before game starts
    By thickwick in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 10-15-2006, 12:19 PM
  5. Warriors get a huge attack power boost
    By Matt in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 04-02-2006, 10:02 PM
All times are GMT -5. The time now is 01:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search