Skip to content

Instantly share code, notes, and snippets.

@gig3m
gig3m / hunter_mm.lua
Created August 11, 2011 18:51
Hunter MM rotation
function hunter_mm(self)
-- Marksmanship Hunter by Chiffon with additions by Scribe
-- Change this to your Aimed Shot binding --
local clickMF = "/click ActionButton3"
------------------------------------------
local up = UnitPower
local r = RunMacroText;
local spell = nil
local raf_ready,raf_timeleft,_ = GetSpellCooldown("Rapid Fire");
local chim_ready,chim_timeleft,_ = GetSpellCooldown("Chimera Shot");
@gig3m
gig3m / hunter_mm.lua
Created August 11, 2011 18:59
MM rotation
function hunter_mm(self)
-- Marksmanship Hunter by Chiffon with additions by Scribe
------------------------------------------
local up = UnitPower
local r = RunMacroText;
local spell = nil
local raf_ready,raf_timeleft,_ = GetSpellCooldown("Rapid Fire");
local chim_ready,chim_timeleft,_ = GetSpellCooldown("Chimera Shot");
-- Interupting, Borrowed directly from feral cat
@gig3m
gig3m / hunter_mm.lua
Created August 11, 2011 20:05
MM Hunter Rotation
function hunter_mm(self)
-- Marksmanship Hunter by Chiffon with additions by Scribe
------------------------------------------
local up = UnitPower
local r = RunMacroText;
local spell = nil
local raf_ready,raf_timeleft,_ = GetSpellCooldown("Rapid Fire");
local chim_ready,chim_timeleft,_ = GetSpellCooldown("Chimera Shot");
-- Interupting, Borrowed directly from feral cat
@gig3m
gig3m / gist:1145413
Created August 14, 2011 22:50
Item CD check
function jps.get_item_cooldown(slot)
local start,duration,_ = GetInventoryItemCooldown("player", slot)
local cd = start+duration-GetTime()-jps.Lag
if cd < 0 then return 0 end
return cd
end
<?php
$url = "http://ventrilostatus.net/xml/nitrogen.typefrag.com:11101/";
//$xml = file_get_contents($url);
$xml = file_get_contents("source.xml");
$base = simplexml_load_string($xml);
$bold_pre = "\033[1;1m";
$bold_post = "\033[0m";
//print_r($array);
<?php
$url = "http://ventrilostatus.net/xml/nitrogen.typefrag.com:11101/";
//$xml = file_get_contents($url);
$xml = file_get_contents("source.xml");
$base = simplexml_load_string($xml);
$bold_pre = "\033[1;1m";
$bold_post = "\033[0m";
//print_r($base);
<?php
//geektool-vent.php
//version 1.0
//created by kyletxag and benphelps
//download at pixelsoak.com
//uses geektool to monitor vent status using ventrilostatus.net
//edit these details
//$url = "http://ventrilostatus.net/xml/server:port/";
$url = "http://ventrilostatus.net/xml/nitrogen.typefrag.com:11101/";
function warlock_affliction(self)
local mana = UnitMana("player")/UnitManaMax("player")
local shards = UnitPower("player",7)
local spell = nil
local bod_duration = cdo.debuff_duration("target","bane of doom")
local cpn_duration = cdo.debuff_duration("target","corruption")
local ua_duration = cdo.debuff_duration("target","unstable affliction")
-- focus dotting
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
local cdProgression
local cdProgressionZeal
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
-- Interrupt, works equally well with "focus" instead of "target"