[PQR] Soul Swap menu

User Tag List

Results 1 to 3 of 3
  1. #1
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] Soul Swap

    Code:
    if not cTar
    then
    for i=1,40 do
    cTar = {
    "target",
    "focus",
    "mouseover",
    "party1target",	"party2target",	"party3target",	"party4target",	"party5target",
    "raid"..i .."target",
    "arena1","arena2","arena3","arena4","arena5",
    "arenapet1","arenapet2","arenapet3","arenapet4","arenapet5",
    "boss1","boss2","boss3","boss4",
    "raidpet"..i.."target",
    "partypet1target",	"partypet2target",	"partypet3target",	"partypet4target",	"partypet5target",	
    "pettarget"
    }
    end
    end


    Code:
    function SoulSwapGainedFrom(t)
    local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster = UnitBuffID("player",86211) -- Soul Swap buff on player after casting Soul Swap on target
    if unitCaster==t
    then
    return true
    end
    end
    that means unitCaster == Soul Swapped target that cannot be soul swapped again



    Code:
    function SSEXHALEIT(t)
    	if UnitExists(t)	
    	and not SoulSwapGainedFrom(t)
    	and HaveBuff("player",86211,0)
    	then
    		CastSpellByName(GetSpellInfo(86213),t)
    	end
    end
    
    for i=1 , #cTar do
    if SSEXHALEIT(cTar[i])
    then
    end
    end

    So everything works great when im targeting my soulswapped target, the problem begins when more than one Unit from cTar are targeting my soulswapped Unit, the rotation go crazy and [starts to execute Soul Swap Exhale. How would i change it?
    Last edited by G0tha; 10-26-2013 at 07:40 PM.

    [PQR] Soul Swap
  2. #2
    crystal_tech's Avatar Elite User
    Reputation
    468
    Join Date
    Feb 2008
    Posts
    1,033
    Thanks G/R
    1/6
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well i don't think your cTar table is being updated after the run through. but i'll dig deeper for ya.

    Please if someone helped you donate rep to them.

  3. #3
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function SoulSwapGainedFrom(t)
    local _, _, _, _, _, _, _, unitCaster = UnitBuffID("player",86211)
    if unitCaster==t
    then
    return true
    end
    end
    Code:
    function SSEXHALEIT(t)
    	
    	if UnitExists(t)	
    	and not SoulSwapGainedFrom(t)
    	then
    	CastSpellByName(GetSpellInfo(86213),t)
            end
    end


    Code:
    SSEXHALEIT("target")
    SSEXHALEIT("focus")
    I tried to make it abit more clear, that gives same results, when i put my focus on my target it will try to execute Soul Swap Exhale but when focus and target are diffrent units then it works perfectly.

    EDIT: table.insert is kinda black magic for me, right now, but im not sure if this is the real issue, I'd need to clear the table whenever
    Code:
    not UnitBuffID("player",86211)
    EDIT2: I just noticed unitCaster = UnitBuffID("player",86211) that on mfew private servers i play, only one returns unitCaster as SoulSwapped target, so it may not work this way on live
    Last edited by G0tha; 10-28-2013 at 04:36 AM.

Similar Threads

  1. Idiot-Proofing Soul Swap
    By Retrofire in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 09-10-2012, 03:17 PM
  2. [Class] Soul Swap (Affliction Warlock) Bug
    By Aegan in forum World of Warcraft Guides
    Replies: 3
    Last Post: 11-01-2010, 08:46 PM
  3. [weapon swap]Soul Cleaver to Black High Warlord's Decapitator
    By marcalis in forum World of Warcraft Model Editing
    Replies: 1
    Last Post: 08-14-2008, 02:37 AM
  4. [Item Swap] Stormherald > Apollyon, the soul render
    By johalt in forum World of Warcraft Model Editing
    Replies: 16
    Last Post: 06-07-2008, 02:09 PM
All times are GMT -5. The time now is 05:07 PM. 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