The Warlocks Den - WoW Warlock DiscussionsThe Warlocks Den - WoW Warlock Discussions



Please Register to Remove these Ads

The Warlocks Den - WoW Warlock Discussions » Discussion Forums » User Interface, Add-ons and Macros » Let me tell ya bout a Script I wrote

User Interface, Add-ons and Macros For any User Interface (UI), Add-on or Macro Customization and assistance.

Reply
Old March 09, 2006, 10:10 PM   #1 (permalink)

Character Info
Korwiin
80 Human Warlock
Eldre'Thalas US PvE
Guild: TiMe
Profile: Blizzard Armory
Talent Spec: 56/0/15
Let me tell ya bout a Script I wrote

Hello team Warlock.

Here are 2 functions I wrote.  They depend on 2 addons being installed= LockTools and MobHealth2

What it does:

Checks if you have nightfall up - if yes, stopcasting and insta nuke with Shadown Bolt (ends script).
Checks if the mob's HP is less than 500 (using a MobHealth2 function), if so then Shadowburn it(ends script).
If curse of shadows is not up then cast it (ends script)
If corruption is not up, cast it (ends script)
If all above conditions allow, then last but not least, cast shadow bolt.

This is bound to a hotkey... I mash that key, EQ "taunt button" style, and it takes care of the brain work for me.
Code:
function Nuke()
if (isNightFall()) then LTStopCasting(); castShadowBolt(); LTStopCasting() end; 
 if (not safeSB())
  then if (not castCoS())
   then if (not castCorruption())
    then castShadowBolt() 
   end 
  end
 end
end


function safeSB()
local sbid = LTGetSpellID("Shadowburn")
 if (MobHealth_GetTargetCurHP() < 500) 
 then if (LTcheckCoolThenCast(sbid))
  then return true
  else
   return false
 end
 end
end
I use Supermacro, but thats not required for this to work if you know how to create your own add-on or append these functions into an existing add-on, like Locktools perhaps.

With Supermacro, Create a new macro, paste the above 2 functions into extended lua code pane (right side). In the macro pane (left side) enter:Â

Code:
/script Nuke()
With Supermacro, you can can assign a hotkey to the new macro and never need it on any hotbar.

__________________
_________
Korwiin
Korwin is offline   Reply With Quote
Sponsored Links

Old March 21, 2006, 06:15 PM   #2 (permalink)

Re: Let me tell ya bout a Script I wrote

I really need to start learning about macros.you constantly spam this button while casting shadow bolt?
__________________
Time to make the hunters the hunted
dews253 is offline   Reply With Quote
Old March 26, 2006, 11:53 AM   #3 (permalink)

Character Info
Gwarlock
55 Human Warlock
Alterac Mountains US PvP
Guild: Summoning Winds

Re: Let me tell ya bout a Script I wrote

let me take a guess.... shadow bolt is your favorite spell?


very nice macro ol
Angryface is offline   Reply With Quote
Old March 27, 2006, 07:27 PM   #4 (permalink)

Character Info
Korwiin
80 Human Warlock
Eldre'Thalas US PvE
Guild: TiMe
Profile: Blizzard Armory
Talent Spec: 56/0/15
Re: Let me tell ya bout a Script I wrote

Quote:
Originally Posted by dews253
I really need to start learning about macros.you constantly spam this button while casting shadow bolt?
Basicaly I watch the cast timer, and when its done casting, I hit the button again.... So I spam it about once every 2-3 seconds, unless Nightfall procs, then I can decide wether to let my current cast finish, or I can hit the button immediately for an instacast.... For example, if I am not being beat on, I will let the existing cast finish then follow up with an instant cast.... but if I am getting beat down, and having trouble channeling through the damage to cast that Shadowbolt, I can mash the button again to cancel the cast and burn the pending nightfall with an instant BAM!.

Something I learned while using this macro. Casting SB after Nightfall procs does not "visually" cause a global 1 second cool down. All your icons appear castable.... however, you will get a "Spell is not ready yet" if you try to cast one again... so the 1 min cooldown is still there, just not visually indicated by the UI after you insta cast a SB from nightfall.

A couple changes I am contemplating are using corruption (level 1) instead for mana conservation, and if your soulshards are less that 5 total, use drian soul instead of shadowburn.

Something else I think would be hot, will be a smart Drain Soul script that casts Drain Soul level 1 if in a group/raid... OR cast Level 4 instead if you are ungrouped AND the mob doesnt have Corruption or Curse of Agony up.

As it stands now, I physicaly swap the spell on the hotbar when I am in a raid. No need to burn the bookoo mana for a Shard when I dont need to right? =)
__________________
_________
Korwiin
Korwin is offline   Reply With Quote
Reply

Bookmarks

Tags
bout, script, wrote, ya

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 11:31 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0