[WoW] [3.0.9] [Info] Descriptors menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16
  1. #16
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drevil2 View Post
    example of the problem:
    the slaves start casting on a target and the main switches to a new target. now all slaves have the new target ([target=party1target] the standart multiboxer macro), but still casting on the old target. i want my slaves to face the old target (can move around) until the cast is done. at this point i need a "current casting focus" GUID for my auto-facing bot. target/focus GUID won't work, because it's the new target.

    i played around with the "UNIT_SPELLCAST_START" event to get a useful GUID but it doesn't work so well.
    The WoW API is your friend, would UnitCastingInfo() help?

    Loop through your party slaves (2-5) with the following command:

    Code:
    spell, rank, displayName, icon, startTime, endTime = UnitCastingInfo("party2");
    local finish = endTime/1000 - GetTime();
    G1(spell); 
    G2(finish);
    'spell' will be NIL if that unit is not casting a spell, otherwise it will contain the name of the spell that unit is casting, the local finish variable contains when the spell will end.

    Now, G1(arg) and G2(arg) are 2 self-registered lua functions I use to extract the string value of the argument to a codecave so I can read it from out of process.

    That's the hard and stupid way. Best is to reverse engineer that lua function and find out where it grabs the spell name
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

    [WoW] [3.0.9] [Info] Descriptors
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [WoW] [3.0.9] [Info] LUA Callbacks
    By Cypher in forum WoW Memory Editing
    Replies: 46
    Last Post: 04-24-2009, 02:45 AM
  2. WoW May 2008 Banwave Info
    By iamyour41 in forum World of Warcraft General
    Replies: 15
    Last Post: 05-22-2008, 12:50 AM
  3. [Release]WoW Fansite Tools and Info
    By xsyx in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-10-2008, 07:19 PM
All times are GMT -5. The time now is 08:27 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