Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUI:Separator()
- if ( not context.lockedtargetid ) then
- local target = Player:GetTarget()
- if ( target and target.attackable ) then
- if(GUI:Button("Lock : "..target.name)) then
- context.lockedtargetid = target.id
- context.lockedtargetname = target.name
- end
- else
- GUI:Button("Lock Target: Select a valid Target")
- end
- else
- local validtarget = CharacterList:Get(context.lockedtargetid)
- if (validtarget) then
- Player:SetTarget(context.lockedtargetid)
- context.attack_target = validtarget
- context.attack_targetid = context.lockedtargetid
- end
- if( GUI:Button("UnLock: "..context.lockedtargetname)) then
- context.lockedtargetid = nil
- end
- end
- GUI:Separator()
- local t = context.attacktarget
- if context.player.buffs[10269] then context.cast = false else context.cast = true end
- if (t ~= nil and t.buffs ~= nil) then
- local evades = { 40408, 10335 }
- local ignoreAttacks = { 9255, 5863, 787, 883, 5667, 10243, 27737, 21816, 43949 }
- local blockAttacks = { 9123, 756, 743 }
- local cast2 = true
- for _, v in pairs(table.merge(evades,table.merge(ignoreAttacks,blockAttacks))) do
- if (t.buffs[v] ~= nil) then
- cast2 = false
- end
- end
- if(context.cast and not cast2) then context.cast = false end
- end
- if not context.ticks_threshold_updated then
- BehaviorManager:SetTicksThreshold(150)
- context.ticks_threshold_updated = true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement