Deadly Functions Author:DeadlyKris | Deadly Functions version 1.1
History: Nightmaiden's Smart Warrior (NSW) started out as a function inside SuperMacro's 7000-character extended space. I decided, since I wrote it that it shouldn't be dependent on another addon to work, so I posted (as my Rogue, Nightmaiden) on the WoW UI and Macros forum asking how to make it into an addon. Kyesarri told me how and even included the exact text to put in each file. If it wasn't for that little Gnome, this addon wouldn't exist.
As time passed, I came up with more functions in SuperMacro, and on July 21, 2006 I decided to compile them all in one addon, using NSW as a basis, but renaming it Deadly Functions since I now post as DeadlyKris on all WoW forums and since it's more than just Warrior stuff.
Currently, there are 6 functions; modified versions of the original SmartCharge and SmartStance functions as well as a generic TargetInfo function which returns a string with information about the target, a Teleport function, a Portal function, and a random Polymorph function.
Installation: Extract the ZIP file to the Interface/Addons folder in the World of Warcraft folder. Be sure to keep the path info intact.
Usage:
Smart Stance: /script SmartStance() This will put the warrior in the correct stance for the correct Charge-type ability (Charge or Intercept) based on whether or not he is in combat. This doesn't need to be called directly if using Smart Charge because Smart Charge calls it anyway.
Smart Charge: /script SmartCharge() Checks stance by calling Smart Stance, and if Smart Stance doesn't change your stance then it attempts to use Charge if in Battle Stance or Intercept if in Berserker Stance. Range and rage are the responsibility of the warrior, not the mod; I want this function to be smart, but not think for you too much.
Target Info: This doesn't do anything if called by itself in the manner that the others are; rather, it compiles a short string describing the target. If the target is classified as a Boss, it simply lists the name, and if the Boss is dead it notes that. An example from testing (note that the return value does not include the"Target is"part or the punctuation at the end): Target is Archbishop Benedictus. If the target is a non-boss NPC, it lists level, gender, mob type, and name: Target is a level 1 critter named Chicken If the player is more than 9 levels below the target, it will say the minimum possible level and note that the mob might be higher. An example from testing with my 22 Rogue in Deadwind Pass: Target is a level 32 or higher beast named Sky Shadow If the target is a player, it returns the player's Level, Gender, Race, Class, Name, and Guild: Target is a level 60 Female Gnome Mage named Deadlykris of
Random Poly This is designed for players with all 3 different Poly animals. /script RandomPoly() It announces the poly target using the TargetInfo() function above.
If you need a macro for 2 of the three, I can provide it. Post a message on the UI and Macros forum stating which 2 you want to randomly use. Future versions of the function may have support for limiting which ones you pick from, but I currently haven't implemented that.
Teleport /script Teleport("destination") This function works for Mages and Druids. If used by a mage, it will announce the teleport location and ask others in the raid/party or around you to stop you if you were supposed to open a portal. Replace"destination"with the name of the city you're teleporting to, keeping the quotes intact. For Druids, this would be: /script Teleport("Moonglade") If the destination is spelled improperly, then a mage will announce that he's teleporting to the misspelled location but nothing will happen.
Portal /script Portal("destination") Opens a portal and announces the portal and its destination. Replace"destination"with the name of the city you're opening a portal to, keeping the quotes intact. An example for ewach faction: /script Portal("Stormwind") /script Portal("Thunder Bluff") If the destination is spelled improperly, then a mage will announce that he's opening a portal to the misspelled location but nothing will happen.
Version history: 1.0: Initial release.
Localizations: none Development Status: stable Added: 2006-08-08 15:06:10 Version: 1.1
Rate this Package: 1 2 3 4 5 6 7 8 9 10
No Screenshots available.
| |
|