[Macro] Target totem and pet attack menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1092
    Join Date
    Aug 2007
    Posts
    1,648
    Thanks G/R
    367/316
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [Macro] Target totem and pet attack

    Hi there!
    As you might know, blizzard locked the /target totem functionality to prevent macro like this. (you can use /petattack [@mouseover, harm][] but it needs you to mouseover the totems)

    But i'm pretty sure there's an ugly way to bypass this.
    My idea is to make a loop that will target every enemy and will compare the target name with "totem" or something like that.

    So it will be something like :
    Code:
    /script (or /run i really don't see what's the difference here) for i=1,40 do targetenemy;
    if strcmp (@target,"grounding totem") then /petattack target; else i =1; end
    Yep, the syntax isn't right but that's for the example.

    So everything i need is something to do a Strcmp.
    Is there a strcmp function ? Could someone make a simple strcmp using the macro functions ?

    Thanks for helping, and if you have any other idea on how to do this, i'm ready to hear you all



    Edit :
    Maybe with LUA functions ?
    This : strfind(string, pattern[, initpos[, plain]]) - Look for match of pattern in string, optionally from specific location or using plain substring.
    Let's say we target something, strfind(targetname,"totem") and then compare the result of strfind (don't know what it returns), if it's a bool (0 = got something 1 nothing) then 0 => petattack 1 => search again.
    I really don't know if i can use LUA functions in a macro but worst case, i can make an addon that will do the trick.
    Can you tell me a little bit more about strfind and lua functions ?

    Edit 2 :
    > = string.find("Hello Lua user", "Lua")
    7 9
    > = string.find("Hello Lua user", "banana")
    nil
    From WoWWiki. This is awesome, i can compare targetname with "totem", if nil then it's not a totem, if != nil then it's a totem. So this should work. Someone want to help me make an addon (or a macro if i can use strfind in a macro) for this ? I don't know how to make addons Will edit if i suceed.

    Edit 3 :
    Bah i can use string.find in a macro but i can't get my macro to target anything within /script :/
    Last edited by Nyarly; 05-04-2011 at 04:33 PM.

    [Macro] Target totem and pet attack
  2. #2
    sebaba12's Avatar Sergeant
    Reputation
    25
    Join Date
    Sep 2012
    Posts
    38
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump, can someone make script or plugin for honorbuddy ?

Similar Threads

  1. [How-To] (Hunter Forggoten or Unused Macros-Must use- and pet advices)
    By jmng93 in forum World of Warcraft Guides
    Replies: 4
    Last Post: 06-12-2011, 07:19 AM
  2. [Hunter] Have you pet attack targets only you can see
    By metriodf in forum World of Warcraft Exploits
    Replies: 36
    Last Post: 06-21-2008, 03:40 PM
  3. [Ascent] Hunter pet attack power exploit
    By Supx in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 10-08-2007, 07:25 AM
  4. Best spec and pet for a karazhan hunter!
    By hallerz in forum WoW Instances & Raiding
    Replies: 14
    Last Post: 08-17-2007, 03:44 AM
  5. Totem and Ghost wolf changes
    By MrJingo in forum World of Warcraft Model Editing
    Replies: 7
    Last Post: 07-31-2007, 09:49 PM
All times are GMT -5. The time now is 10:02 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