Code Monkey home page Code Monkey logo

nspelltracker's Introduction

nSpellTracker

-- Player spells will have a blue border
highlightPlayerSpells = true

-- How fast should the timer update itself
updatetime = 0.1

Example

To add a debuff, buff or cooldown to track just open the class specific config file under the classes folder and add one of the following: addon:Debuff(...) addon:Buff(...) addon:Cooldown(...), where ... is a table containing various settings. Here's an example for tracking Corruption:

addon:Debuff({
	spellID = 172,
	size = 36,
	position = {'CENTER', 'UIParent', 'CENTER', 150, 0},
	unit = 'target',
	validateUnit = true,
	hideOutOfCombat = true,
	isMine = true,
	desaturate = true,
	movable = false,
})

To track multiple spells you just add a table of spell ids like so:

addon:Buff({
	spellID = {172, 234, 2356},
})

The same goes with the spec option:

addon:Buff({
	spec = {1, 3},
})

There's also a helper buff/debuff table so that you can easily target buff/debuff groups like Mortal Wounds or Spell Power buffs. Just assign spellID any of the following values:

-- Buffs
addon.buffs.stats
addon.buffs.stamina
addon.buffs.attackPower
addon.buffs.spellPower
addon.buffs.haste
addon.buffs.spellHaste
addon.buffs.criticalStrike
addon.buffs.master

-- Debuffs
addon.debuffs.weakenedArmor
addon.debuffs.physicalVulnerability
addon.debuffs.magicVulnerability
addon.debuffs.weakenedBlows
addon.debuffs.slowCasting
addon.debuffs.mortalWounds

Settings

{
	-- The talent tree you want to track the spell (nil will make it work in
	-- any tree).
	spec = nil,

	-- Attribute that lets you show/hide the frame on a given state condition.
	-- example: '[stance:2] show; hide'
	visibilityState = '[petbattle] hide; show',

	-- The spellid to track this will represent the icon if none is found.
	spellID = 469,

	-- The size of the icon.
	size = 26,

	-- The position of the icon (http://www.wowwiki.com/API_Region_SetPoint).
	position = {'CENTER', 'UIParent', 'CENTER', 150, 0},

	--Unit ID (http://www.wowwiki.com/UnitId), the unit that should be tracked.
	unit = 'player',

	-- Only show the icon if unit is found.
	validateUnit = true,

	-- Hide icon out of combat.
	hideOutOfCombat = true,

	-- Hide if the buff/debuff isn't mine.
	isMine = false,

	-- Desaturate the icon if not found.
	desaturate = true,

	-- Match only spell IDs (instead of spell names extracted for a spell ID)
	matchSpellID = false,

	-- In case you want to move the frame in-game, the size will be the MINIMUM
	-- frame size you can resize to, so adjust the size in case you need lower
	-- minimum size ingame.
	movable = true,

	-- Set the alpha values of your icons (transparency).

	-- Debuffs and Buffs
	alpha = {
		found = {
			frame = 1,
			icon = 1,
		},
		notFound = {
			frame = 0.4,
			icon = 0.6,
		},
	},


	-- Cooldowns
	alpha = {
		cooldown = {
			frame = 1,
			icon = 0.6,
		},
		notCooldown = {
			frame = 1,
			icon = 1,
		},
	}
}

nspelltracker's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

xruptor

nspelltracker's Issues

Tracking Totems

Hello! I hope you don't mind me using this addon since I am running with NeavUI and this is a perfect match for style. Anyways, I was looking to track my totems' cooldown. Is it possible? If yes, I would be grateful if you could give me an example! Thanks.

Can't track Dancing Steel

Hi Neav,

first of all thanks for this great addon :) it's one of my favorites tracking mods. I observed one bug. It is not possible to track the weapon enchant Dancing Steel. It seems that the Buff is buggy and it is not applied to the player. Is it possible to fix this bug in a coming update ?
http://us.battle.net/wow/en/forum/topic/7415462417

best wishes,
chinchilla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.