法师天赋加法的总结- -| 回首页 | 2005年索引 | - -法师初阶指南

法师秘术分析(宏键课题研究)- -

Tag法师宏                                          

加入一些说明 以下宏还是比较简单实用的,键盘上使用宏操作毕竟会快捷方便许多。

1 Spells
1.1 Self Cast any spell
CODE
/target "player"
/cast SpellName(Rank x)
/script TargetLastEnemy();

Change SpellName(Rank x) by the Spell name and his rank.
在上面那个代码里把SpellName(Rank x)改为你需要的魔法 以下同
不知道什么名字也不怕 在宏命令编写的时候打开魔法书 shift+鼠标左键点那个魔法图标
你需要的魔法就出现在你正在编写的宏里面了

Example

CODE
/target "player"
/cast Purify(Rank 1)
/script TargetLastEnemy();

这个宏使用完之后 目标会自动切换为最后一个敌人(目标)

1.2 Selfcasting non-enemy spells
Some spells can not be cast on enemies. Thus, if you have an enemy targeted, you can cast them on yourself.
Example
This macro will only cast the spell if it can be cast on you:

CODE
/script if ( not UnitIsFriend("player", "target") ) then CastSpellByName("Spell(Rank 1)"); end
/script if ( SpellIsTargeting() ) then SpellTargetUnit("player"); end

Replace Spell(Rank 1) with the name and rank of the ability you wish to use.
这段代码是把一些不能对敌人(敌对目标)施放的魔法对自己施放
使用后的目标仍然是你原来的目标

1.3 Cast a spell based on target's class
You'll need to target the person you want to buff first. Here's an example for a paladin to use; note that it should all be on one line:

CODE
/script class = UnitClass("target"); if ( ( class == "Rogue" ) or ( class == "Warrior" ) ) then
CastSpellByName("Blessing of Might(Rank 1)"); else CastSpellByName("Blessing of Wisdom(Rank 1)"); end

这一段看起来很有趣 里面有个判别 根据对方的不同给予不同的buff
是以pally做例子的 当然其他选手也可以参考
如果对方是盗贼或者战士则对他施放Blessing of Might(Rank 1)
如果对方不是上面俩职业则对他释放Blessing of Wisdom(Rank 1)

2 Inventory/Items
2.1 Equip an item

CODE
/script PickupContainerItem(bag, slot);

bag goes from 0 to 4, and slot from 1 to 20 (depending on bag size).
For more information, go to Item equipping to see how to use items from backpacks etc
装备某个物品的宏 其中(bag, slot)
分别是0~4对应5个包 和1~20对应包里的位置
这样 快速切换武器/装备就变的容易了

2.2 Use a Bandage

CODE
/script UseAction(ActionID, 0, 1);
/script if( SpellIsTargeting() ) then SpellTargetUnit("player"); end

Bandage must be placed in the action bar at the slot given by ActionID. ActionID is a number from 1 to 120. Slot1-ActionBar1 is ActionID1, Slot12 is ActionID12, Slot1-ActionBar2 is ActionID13 and so on up to Slot12 of ActionBar10. This will bandage your target, or yourself if your current target is not a friendly target.
对自己使用绷带的宏 但是绷带必须放到快捷栏的一个空格中
(ActionID, 0, 1) 中 ActionID 对应着快捷栏 数值从1~120
第一行第一个是1最后一个是12 第二行第一个是13......依次类推
这个宏对目标使用绷带 如果目标不能被急救则对自己使用

Here's a different version courtesy of post by Sarf on the forums. This one will always self-bandage, even if you have a friendly player targeted. It will also re-target your original target. Note that this must all be on one line, its just split up for readability:


CODE
/script p="player";t="target";if(not UnitCanAttack(t, p))then ot=UnitName(t);TargetUnit(p);else ot=nil;end;
UseAction(ActionID);if(SpellIsTargeting()) then SpellTargetUnit(p); end if(ot) then TargetByName(ot);end

上面这一段的目的和前一段略有不同 不管当前目标是否可以被急救
绷带都对自己使用 并且使用后当前目标不变

3. Interface
3.1 Switching Hotbars

CODE
/script CURRENT_ACTIONBAR_PAGE = X;
/script ChangeActionBarPage();

Where X is the Hotbar number

Example

CODE
/script CURRENT_ACTIONBAR_PAGE = 1;
/script ChangeActionBarPage();

这一句是直接切换到第几页快捷键表 其中的X对应每一条快捷条

4. Miscellaneous
4.1 Adjusting Quest Fade
To change it to a more reasonable speed, try:

CODE
/script QUEST_DESCRIPTION_GRADIENT_CPS = 100;

To disable it altogether, use

CODE
/script QUEST_FADING_ENABLE = nil;

接任务的时候总是看着打半天字吧
前一个是加快任务说明的显示速度
后一个干脆让说明直接出现(不用等待)

Both of these need to be pasted or typed into the chat box. To simplify use, they could also be made into a macro button. To save them permanently, type

CODE
/script RegisterForSave(QUEST_DESCRIPTION_GRADIENT_CPS)

and similarly for QUEST_FADING_ENABLE if you use that instead.

- 作者: 都上 访问统计: 2005年08月6日, 星期六 10:11 加入博采

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=2500580

博客手拉手

[2005-08-06]    如果世界末日

[2005-08-06]    如果世界末日

[2005-08-06]    上海凌晨发布台风黑色警报

[2005-08-06]    成长中须知道的20个故事

[2005-08-06]    诗词选登-霸气歌

回复

评论内容: