So basically what the script does is automatically cast vanish when the frame detects that blind is being casted at me. This is on my own private server (most decent ones have hack detection for LUA unlockers anyhow) and i want to finish it so i can send it to my friend and we can play around rogue versus rogue. It's nearly complete but I honestly don't know what else could be wrong with it that it's still not working : /
Lua Code:
if not OP_Vanish then
OP_Vanish = true
print("Console: Vanish Blind Loaded.")
local VanishID = {
[2094] = true
}
local Vanish_PlayerGUID = UnitGUID("player")
local Vanish_FRAME = Vanish_FRAME or CreateFrame("FRAME", nil, UIParent)
Vanish_FRAME:SetScript("OnEvent", function(self, event, _, type, _, sourceGUID, sourceName, _, _, destGUID, destName, _, _, spellID)
if type == "SPELL_CAST_SUCCESS"
and destGUID == Vanish_PlayerGUID
and sourceGUID == Vanish_PlayerGUID
and VanishID[spellID] then
CastSpellByName(GetSpellInfo(1856),"player")
print("Console: Attempted to Vanish the Rogue's Blind.")
end
end
)
Vanish_FRAME:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
end