|
|
Source code |
1 |
if IsEnemy and not TargetIsDead then |
|
|
Source code |
1 2 3 4 5 |
local fd = FuzzyDIYCE local api = fd.API local fdvars = fd.FDVars -- local Skills = fd.Skills -- Version = 0.1x local Skills = fdvars.Skills -- Version >= 0.2x, rebased with Peryl's latest code |
|
|
Source code |
1 2 3 4 |
local fd = FuzzyDIYCE local api = fd.API local Skills = fd.Skills local fdvars = FuzzyDIYCE.FDVars |
|
|
Source code |
1 |
{ name = "Savage Whirlwind", use = (pctEB2 >= .05) and (boss), timer = "Wild Howl", ignoretimer = (thealth <= .30)},
|
This post has been edited 13 times, last edit by "Notor" (May 11th 2014, 12:08pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
local fd = FuzzyDIYCE
local api = fd.API
local Skills = fd.Skills
local fdvars = FuzzyDIYCE.FDVars
-- Set the environment for the scripts to run in
api.SetDefaultScriptApartment()
function WardenWarrior(mode, hero, uni)
local hero = hero or 59
local uni = uni or 60
-- Need to do some buffs (I prefer to put on Briar manually due to aoe but let script maintain it until I remove again)
try("skill", Skills["Briar Shield"].entry, PlayerHasBuff("Briar Shield") and PlayerHasBuff("Briar Shield").time <= 5)
-- Maintain Hero, Speed pots, HP pots and stuff
try("action", hero, PlayerHasBuff("Hero Magic Medicine") and PlayerHasBuff("Hero Magic Medicine").time <= 5)
try("action", uni, PlayerHasBuff("Touch of the Unicorn") and PlayerHasBuff("Touch of the Unicorn").time <= 5)
-- We have a target?
if IsEnemy and not TargetIsDead then
try("skill", Skills["Charged Chop"].entry, PlayerMana >= 260)
try("skill", Skills["Slash"].entry, PlayerSecMana >= 25)
try("skill", Skills["Frantic Briar"].entry, PlayerMana >= 770)
try("skill", Skills["Cross Chop"].entry, PlayerMana >= 600)
end
if (TargetIsDead or not GotTarget) and (IsSiege or ShiftHeld) then
target("select", "next", "enemy")
end
end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
--[[
RegisterPlugin
Registers the FuzzyScript class specific attack scripts with FuzzyDIYCE core.
Version: 1.0
Author: Frafall
Date: 3/4/14
License: Public Domain
--]]
local fd = FuzzyDIYCE
local fdp = FuzzyDIYCE_Plugins
local api = fd.API
local DIYCE_PATH = "Interface/Addons/FuzzyDIYCE/"
local PLUGIN_PATH = DIYCE_PATH
local PLUGIN_FOLDER = "scripts/"
local PLUGIN_NAME = "User written attack scripts"
local PLUGIN_PRIORITY = 500
-- Check presence of the FuzzyDIYCE plug-in module
if not fdp then
DEFAULT_CHAT_FRAME:AddMessage("["..PLUGIN_NAME.." Plug-in] Can't find the FuzzyDIYCE plug-in module. Is it loaded?", 1, 0.3, 0.3)
return
end
--
-- Function to initialize the plug-in
-- Add new user defined scripts to this list
--
local function InitPlugin()
api.FDLoad(PLUGIN_PATH..PLUGIN_FOLDER.."DummySkill.lua")
api.FDLoad(PLUGIN_PATH..PLUGIN_FOLDER.."WarriorMage.lua")
api.FDLoad(PLUGIN_PATH..PLUGIN_FOLDER.."WarriorWarden.lua")
api.FDLoad(PLUGIN_PATH..PLUGIN_FOLDER.."WardenWarrior.lua")
end
-- Register the plug-in with FuzzyDIYCE.
fdp.RegisterPlugin(PLUGIN_NAME, InitPlugin, PLUGIN_PRIORITY)
|
|
|
Source code |
1 |
trySkill("Autoshot", not ActionActive("Autoshot"))
|
|
|
Source code |
1 |
trySkill("Surprise Attack", ActionUsable("Surprise Attack"))
|
This post has been edited 1 times, last edit by "frafall" (May 19th 2014, 9:17pm)
|
|
Source code |
1 2 3 4 5 6 7 8 |
--[[ $Id: ScoutWarden.lua 28 2014-05-10 17:58:23Z frafall $ Scout/Warden combat script--]]local fd = FuzzyDIYCElocal api = fd.APIlocal fdvars = fd.FDVars-- local Skills = fd.Skills -- Version = 0.1xlocal Skills = fdvars.Skills -- Version >= 0.2x, rebased with Peryl's latest code
-- Set the environment for the scripts to run inapi.SetDefaultScriptApartment()
function ScoutWarden(mode, hero, uni) local hero = hero or 59 local uni = uni or 60
-- Silence target skills try("skill", Skills["Throat Attack"].entry, SilenceThis)
-- Need to do some buffs (I prefer to put on Briar manually due to aoe but let script maintain it until I remove again) try("skill", Skills["Briar Shield"].entry, (not PlayerHasBuff("Briar Shield")) and PlayerHasBuff("Briar Shield").time <= 5)-- try("skill", Skills["Entling Offering"].entry, (not PlayerHasBuff("Entling Offering")) and PlayerHasBuff("Entling Offering").time <= 5) try("skill", Skills["Frost Arrow"].entry, (not PlayerHasBuff("Frost Arrow")) or PlayerHasBuff("Frost Arrow").time <= 5)
-- Maintain Hero, Speed pots, HP pots and stuff-- try("action", hero, PlayerHasBuff("Hero Magic Medicine") and PlayerHasBuff("Hero Magic Medicine").time <= 5)-- try("action", uni, PlayerHasBuff("Touch of the Unicorn") and PlayerHasBuff("Touch of the Unicorn").time <= 5) -- We have a target? if GotTarget and IsEnemy and not TargetIsDead then try("skill", Skills["Charged Chop"].entry, PlayerHasBuff("Forest Guidance") or PlayerHasBuff("Wind Attack")) try("skill", Skills["Snipe"].entry, PlayerHasBuff("Hidden Peril")) try("skill", Skills["Hidden Peril"].entry, PlayerHasBuff("Hidden Peril")) try("skill", Skills["Autoshot"].entry, not AutoshotOn) -- try try("skill", Skills["Vampire Arrows"].entry, true) try("skill", Skills["Mana Drain Shot"].entry, true) try("skill", Skills["Shot"].entry, true) try("skill", Skills["Combo Shot"].entry, true) try("skill", Skills["Piercing Arrow"].entry, true) try("skill", Skills["Thorn Arrow"].entry, true) try("skill", Skills["Wind Arrows"].entry, true) try("skill", Skills["Gryphon Bash"].entry, true) try("skill", Skills["Reflected Shot"].entry, true) end
if (TargetIsDead or not GotTarget) and (IsSiege or ShiftHeld) then target("select", "next", "enemy") endend
|