[WoW] PetAttack to kill totems? menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    NitroGlycerine's Avatar Member
    Reputation
    3
    Join Date
    May 2009
    Posts
    45
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WoW] PetAttack to kill totems?

    I have been searching and browsing these forums for a while but couldn't find an answer.

    After Blizzard fixed the pet-totem-stomping macros I've been looking for a way to recreate the functionality using the PetAttack lua function. As far as I understand the PetAttack function only allows you to order your pet to attack your current target, or is it possible to give a unit/object-id along with it? And if so, how would that be done?

    Thanks in advance

    [WoW] PetAttack to kill totems?
  2. #2
    Maisteri's Avatar That spoiler guy
    Reputation
    441
    Join Date
    Aug 2007
    Posts
    893
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess it could be done like this

    /focus
    /target Totem
    /pet attack
    /target Focus

    This would only destroy one totem and has nothing to do with lua or memory editing but oh well

  3. #3
    NitroGlycerine's Avatar Member
    Reputation
    3
    Join Date
    May 2009
    Posts
    45
    Thanks G/R
    5/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The 'problem' is that I'm using a focus target most of the time, so i can't switch targets the way you described. So I'm afraid memory writing will be involved.
    Last edited by NitroGlycerine; 12-22-2009 at 05:51 PM.

  4. #4
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use /targetlasttarget then.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  5. #5
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use mouseover. You have to make the mouseover "sticky," though (just poking the GUID in usually isn't enough).
    Don't believe everything you think.

  6. #6
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    fyi targeting totems in macros doesnt work, unless you run luaninja or similar
    " Spy sappin mah sentry! "

  7. #7
    ostapus's Avatar Active Member
    Reputation
    60
    Join Date
    Nov 2008
    Posts
    180
    Thanks G/R
    3/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in simple
    1. enumerate objects - find totem guid
    2. in one call
    - save current focus or target guid
    - set focus/target guid w/ totem guid
    - call petattack focus/target
    - restore focus/target guid

  8. #8
    Diavol's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ostapus View Post
    in simple
    1. enumerate objects - find totem guid
    2. in one call
    - save current focus or target guid
    - set focus/target guid w/ totem guid
    - call petattack focus/target
    - restore focus/target guid

    Care to do the ground work and throw out a working stomp script/macro using luaninja?

  9. #9
    evil2's Avatar Active Member
    Reputation
    27
    Join Date
    Feb 2009
    Posts
    172
    Thanks G/R
    31/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Diavol View Post
    Care to do the ground work and throw out a working stomp script/macro using luaninja?
    things blizzard don't want you to do:
    - target a totem with /target name
    - target a mage with clones with /target name
    - etc

    so you cannot do it via lua script/macro without a specific hack
    (this not the same as "protected lua").

    most people do this:
    write the totem guid into the player_target address. (see "ostapus" post)
    Last edited by evil2; 12-28-2009 at 10:28 AM.

  10. #10
    ostapus's Avatar Active Member
    Reputation
    60
    Join Date
    Nov 2008
    Posts
    180
    Thanks G/R
    3/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Diavol View Post
    Care to do the ground work and throw out a working stomp script/macro using luaninja?
    well, i am not familiar w/ luaninja. here is subset from my code, dunno how helpfull it might be for you.

    ENUMS = {
    SORT_DISTANCE=0,
    SORT_HP=1,
    SEARCH_ENEMY=2,
    SEARCH_FRIENDS=3,
    SEARCH_ANY=4,

    T_OBJECT = 0x0001,
    T_ITEM = 0x0002,
    T_CONTAINER = 0x0006,
    T_UNIT = 0x0008,
    T_PLAYER = 0x0010,
    T_GAMEOBJECT = 0x0020,
    T_DYNAMICOBJECT = 0x0040,
    T_CORPSE = 0x0080,
    T_AIGROUP = 0x0100,
    T_AREATRIGGER = 0x0200,
    }

    do
    local T_ANYENEMY = ENUMS.T_UNIT+ENUMS.T_PLAYER
    local _lastFindClosestUnit = 0
    local _rc = {}

    function Utility:FindClosestUnit(callBack, unitType, searchType, sortType, maxDistance)
    local _calls = 0

    _rc.object, _rc.guidLo, _rc.guidHi = _FastEnumObjects(
    function(object, lo, hi, dist, hp)
    _calls = _calls + 1
    return callBack(object, lo, hi, dist, hp)
    end, unitType, searchType, sortType, maxDistance)

    _debug("FindClosesUnit calls: %d: ret: %X", _calls, _rc.object or -1) ;
    if ( _rc.object ~= nil and _rc.object ~= 0) then
    return _rc
    end
    end
    return nil ;
    end

    function Utility:CastIfCan(spell, target, useTrinket, forceCast)
    ..... rather long fuction
    end

    function Utility:GetObjectByName(objectName)

    local function _findByName(object, loGUID, hiGUID, distance, health)
    local name = ObjectName(object)
    if ( name and name == objectName ) then return true end
    end

    return self:FindClosestUnit(_findByName, ENUMS.T_OBJECT, ENUMS.SEARCH_ANY, ENUMS.SORT_DISTANCE, 100)
    end

    function Utility:guidCall(lowGUID, highGUID, func2Call, object, ...)
    local oldLGUID, oldHGUID
    oldLGUID, oldHGUID = Utility:getGUID("focus")
    Utility:setGUID("focus", lowGUID, highGUID)
    Utility.func2Call(object, ...)
    Utility:setGUID("focus", oldLGUID, oldHGUID)
    end

    end

    function Utility:KillTotem(spell, forceCast)
    for _,v in pairs({ "Earthbind", "Mana Spring", "Mana Tide" } ) do
    local h, l = Utility:GetObjectByName(v)
    if ( h and l ) then
    _debug("Kill totem %s GUID: %x:%x", v, h, l)
    if ( Utility:guidCall(l, h, Utility.CastIfCan, self, spell, "focus", nil, true)) then return true end
    end
    end
    return false
    end

  11. #11
    rootguy's Avatar Member
    Reputation
    3
    Join Date
    Aug 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NitroGlycerine View Post
    I have been searching and browsing these forums for a while but couldn't find an answer.

    After Blizzard fixed the pet-totem-stomping macros I've been looking for a way to recreate the functionality using the PetAttack lua function. As far as I understand the PetAttack function only allows you to order your pet to attack your current target, or is it possible to give a unit/object-id along with it? And if so, how would that be done?

    Thanks in advance
    Under the hood the lua function calls a function with a pointer to a guid so if you could figure out a way to call the real castpetaction function from your lua you'd be set

Similar Threads

  1. [Hunter]How to automate killing totems with pet
    By Staz in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 08-04-2008, 06:32 PM
  2. Replies: 25
    Last Post: 11-28-2006, 11:23 PM
All times are GMT -5. The time now is 07:15 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