![]() |
| [ На главную ] -- [ Список участников ] -- [ Правила форума ] -- [ Зарегистрироваться ] |
| On-line: |
| priest WOW / Прочее полезное и не очень / Макросы |
| Страницы: 1 |
|
| Автор | Сообщение |
|
blindmen Сообщений: 102
|
Добавлено: 17-03-2006 23:45 |
|
Priest [edit] Cast by Level if you aren't lvl 60 yet, you might have to change the number after "r=" with the number of ranks you have for that spell. (if anyone knows how to program that to go automatically, that would be much appreciated :p) It also targets you if you cant cast the buff on the target [edit] Power Word: Shield /script r=10;l={6,12,18,24,30,36,42,48,54,60};if not UnitInParty("target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Power Word: Shield(Rank "..i..")");break;end;end; [edit] Power Word: Fortitude /script r=6;l={1,12,24,36,48,60};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Power Word: Fortitude(Rank "..i..")");break;end;end; [edit] Shadow Protection /script r=3;l={30,42,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Shadow Protection(Rank "..i..")");break;end;end; [edit] Renew /script r=9;l={8,14,20,26,32,38,44,50,56};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]-10) then CastSpellByName("Renew(Rank "..i..")");break;end;end; [edit] Divine Spirit /script r=4;l={20,28,38,48};if not UnitIsFriend("player","target")then TargetUnit("player");end;t=UnitLevel("target");for i=r,1,-1 do if (t>=l[i]) then CastSpellByName("Divine Spirit(Rank "..i..")");break;end;end; [edit] Paladin [edit] Autoselect Blessing /script power = UnitPowerType("target"); if ( power == 0 ) then CastSpellByName("Blessing of Wisdom") else CastSpellByName("Blessing of Might") end; if ( SpellIsTargeting() ) then CastSpellByName("Blessing of Might"); TargetUnit("player"); end; Use: Auto-buff mana users with Blessing of Wisdom and others (including self) with Blessing of Might. [edit] Rogue [edit] Riposte when up, otherwise Sinister Strike /script CastSpellByName("Riposte"); /script CastSpellByName("Sinister Strike"); end Useful for Rogues who spam Sinister Strike as their main attack, this macro will do a Riposte when the ability is available. Riposte should be used whenever it is up. For the energy cost it does the best damage of all the rogue abilities. [edit] Mashable Stealth /script ic, nme, atv = GetShapeshiftFormInfo(1); if (atv == nil) then CastShapeshiftForm(1);end Updated for 1.12. Great for pvp. Bind this macro to your stealth key and you can mash this button until you are stealthed. Mashing it after you are stealthed will not bring you out of stealth. [edit] Ambush as a Sword Rogue /script UseContainerItem(bag#, slot#); /script CastSpellByName("Ambush"); /script UseContainerItem(bag#, slot#); Pretty basic macro usefull for sword rogues who wouldn't mind starting off a fight with an ambush. Start with a dagger in your hand and your sword in whichever position you set. You'll open up with anambush and instantly switch your dagger for a sword. Unfortunatly I ca't figure out how to set it so you can hit ambush and it will switch to a dagger before casting ambush as then you would never need to worry about switching to a dagger before the fight. If I new this then I another macro could easily be made so sword rogues can backstab without clicking several buttons/icons. Maybe someone with better knowledge of making macros can edit mine. The first UseContainerItem() changes your weapon to a dagger placed on a specific slot in your bag. (NOTE: Although you can switch to a dagger to ambush from stealth, it's not as effective for non-dagger rogues as opening with Cheap Shot or Garrote since non-dagger rogues won't have an points in Opportunity, Imp Ambush or Imp Backstab. You might get a lucky crit with ambush, but it's much more time and energy-effective to start the attack with your sword/mace/fist in your mainhand. Switching to a dagger to backstab during a fight is even dumber, but hey it's your rogue, play as you like.) A few addendums to this macro. While in combat, swapping weapons causes a global cooldown. But the weapon itself isn't on the cooldown. So you can cast a spell/ability and switch weapons during the cooldown. The above macro will switch your weapon, ambush, and switch back, unless you're in combat when you cast it. If you're in combat when you cast that macro you'll only switch you sword to a dagger (remember that in long boss type fights, vanish clears your threat but does not necessarily remove you from combat). If you're a sword rogue I suggest making a stealth macro that swaps out your sword for your dagger whenever you stealth. So you can always ambush to come out of stealth. To do this make a macro like this. /cast Stealth /script UseContainerItem(bag#, slot#) Then for your ambush make another macro the same except substitute stealth for Ambush. /cast Ambush /script UseContainerItem(bag#, slot#) You can do the same for gouge and backstab by creating this macro with /cast Gouge, and then another macro with /cast Backstab, instead of stealth. This will not only give you the chance to gouge/backstab a target whenever you like, but it will also give you the option of ambushing for your first hit, or cheapshotting, and following up with a backtab, and either way you end up with a sword back in your hand for the rest of the fight. [edit] Shaman [edit] Swift Heal /script local a=IsAltKeyDown();local c,d=GetSpellCooldown(157,0);if(c==0)then CastSpell(157,0) else if(a)then TargetUnit("player") end;if(d==0.001)then CastSpell(146,0) else CastSpell(152,0) end;if(a)then TargetLastTarget() end;end 1. I created this macro to simplify casting Nature's Swiftness and a Healing Wave spell. It has the following behavour: 2. If Nature's Swiftness is not on cooldown cast it. 3. If Nature's Swiftness is active on you then cast Healing Wave (Rank 9) on your selected target. 4. Otherwise cast Lesser Healing Wave (Rank 6) on your target. If you hold the Alt key then the healing spell will be cast on yourself. Note: Since it uses spell numbers to track cooldowns and cast spells it needs to be tuned to a character's Spell Book. This macro will search your spell book for the Nature's Swiftness spell and tell you it's spell number: /script local i=1;local j;while 1 do local n,r=GetSpellName(i,0);if not n then do break end elseif n=="Nature's Swiftness" then j=i-157;_ERRORMESSAGE("Nature's Swiftness is spell number "..i.." modify spell numbers by "..j) end;i=i+1;end Running this macro will display a dialogue box that will tell you how much to modify the spell numbers in the first macro by to get it to work for you. With some tweaking of spell numbers this script can be made to insta-cast any spell and should also be of some use to Druids. It's not most-used yet, but hopefully it will be. --Brahgulshin 19:26, 13 March 2006 (EST) [edit] Warlock [edit] Pet [edit] Send to Attack Use: Sends your pet to attack. Best used with a hunter's shot skill. /script PetAttack(); [edit] Assist Pet Use: Targets what your pet is targeting. /script TargetUnit("pettarget"); [edit] With Fear Use: Warlock cast fear, and pet quits attacking. Good to prevent your pet from messing your fear up. /cast Fear(Rank #) /script PetFollow(); [edit] Warrior [edit] Battle Stance/Mocking Blow /script texture,name,isActive,isCastable = GetShapeshiftFormInfo(1); if isActive then CastSpellByName("Mocking Blow()"); else CastSpellByName("Battle Stance()"); end; Use: Activates battle stance with the first use and uses mocking blow on the second. [edit] Defensive Stance/Taunt /script texture,name,isActive,isCastable = GetShapeshiftFormInfo(2); if isActive then CastSpellByName("Taunt()"); else CastSpellByName("Defensive Stance()"); end; Use: Activates defensive stance on first use and taunts on second. [edit] Berserker Stance/Berserker Rage /script texture,name,isActive,isCastable = GetShapeshiftFormInfo(3); if isActive then CastSpellByName("Berserker Rage()"); else CastSpellByName("Berserker Stance()"); end; Use: Activates berserker stance and uses berserker rage on second click. [edit] Miscellaneous [edit] Local Server time /script hour,min=GetGameTime() /script DEFAULT_CHAT_FRAME:AddMessage(format("Server time is %s:%s",hour,min)); [edit] Location /script px,py=GetPlayerMapPosition("player") /script DEFAULT_CHAT_FRAME:AddMessage(format("[ %s ] %s , %s",GetZoneText(),px,py)); Value will be between 0,0 (Top Left corner of current map) and 1,1 (Bottom Right) A variant that gives a value between 0 and 100, and reduces it to 1 decimal place: /script px,py=GetPlayerMapPosition("player") /script DEFAULT_CHAT_FRAME:AddMessage(format("%s: %.1f, %.1f",GetZoneText(),px*100,py*100)); [edit] Change Action Bar Page /script CURRENT_ACTIONBAR_PAGE = X; /script ChangeActionBarPage(); Use: Replace "X" with the action bar page number, and by pressing this, it'll automatically change. Example: You have two of these, both set on the "=" on page 1 and 2, and have page 1's set to change to page 2, and vise virsa. When ever you press "=", it'll toggle between page 1 and 2. [edit] Say Quest Objectives /script i = GetNumQuestLeaderBoards(); for j = 1, i, 1 do a1, a2, a3 = GetQuestLogLeaderBoard(j); SendChatMessage(a1, "PARTY"); end; Use: Sends your current quest objectives to your party. This way, you don't have to constantly type to party members how many of each creature you need to complete a quest. [edit] Turn In Quest Items /script SelectGossipAvailableQuest(1); CompleteQuest(); GetQuestReward(); Use: This is useable at almost any quest giver with a blue question mark. It's especially useful for doing Dark Iron Residue turn ins for Thorium Brotherhood faction. Some of these quest givers offer multiple quests. To have the macro select a quest besides the first one, simply change the number in the parentheses. Go to Macros Go to Interface Customization Retrieved from "http://www.wowwiki.com/Most_used_macros" Category: Macros Views * Article * Discussion * Edit * History Personal tools * Log in / create account Navigation * Main Page * Community portal * Village pump * Recent changes * Random page * Help * Donations Google Ads development * Styling project * Proposed icon Popular Pages * Patch mirrors * Burning Crusade * Draenei * Blood elves * Armor sets * Instance guides Useful Links * Fansites Search Web wowwiki Toolbox * What links here * Related changes * Upload file * Special pages * Printable version * Permanent link * This page was last modified 06:57, 13 September 2006. * This page has been accessed 80,262 times. |
| Страницы: 1 |
|
| priest WOW / Прочее полезное и не очень / Макросы |