当前位置:首页 > 问答百科

问答百科

求ZS的FB和PK宏!

分类:问答百科 2022-12-05
导读: 求ZS的FB和PK宏!--  /script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot")); if(GameTooltipTextRight3:GetText~="匕首") then CastSpellByName("邪恶攻击(等级 X)") else PickupContainerItem(0,1) PickupInventoryItem(16); end 上面这个是使用险恶的时候主手...
求ZS的FB和PK宏!

  /script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot")); if(GameTooltipTextRight3:GetText~="匕首") then CastSpellByName("邪恶攻击(等级 X)") else PickupContainerItem(0,1) PickupInventoryItem(16); end

上面这个是使用险恶的时候主手使用背包第1个第1格的剑

/script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot")); if(GameTooltipTextRight3:GetText~="剑") then CastSpellByName("背刺(等级 X)") else PickupContainerItem(0,1) PickupInventoryItem(16); end

这个是用背刺的时候主手使用背包第1个第1格的匕首

/script GameTooltip:SetInventoryItem("player", GetInventorySlotInfo("MainHandSlot")); if(GameTooltipTextRight3:GetText~="剑") then CastSpellByName("伏击(等级 X)") else PickupContainerItem(0,1) PickupInventoryItem(16); end

这个是用伏击的时候主手使用背包第1个第1格的匕首

注:当你使用背刺的时候你现在主手拿的是匕首那么第1个背包的第一格是放的剑

当你使用险恶的时候你主手就换上刚才你背包1第一格的剑了那你现在背包1第一格中就是你刚才使用背刺的时候拿的匕首,副手装备不受影响

相应技能处可以根据自己喜好随意修改,基本可以将所有技能都通过该宏实施。

  假如不想将武器放在第一个背包第一格,可以在PickupContainerItem(0,1)进行修改,(等级那里就不用说了吧。。。。。。。。。)

---------------------------------传说中的分割线---------------------------------------

给自己绷带不灭灯的宏

/script UseItemByName("绷带名")

/script if ( SpellIsTargeting ) then TargetUnit("玩家名");end

END

---------------------------------传说中的分割线---------------------------------------

盗贼的法宝----上毒

左手:

/script UseItemByName("速效毒药 III")

/script PickupInventoryItem (17)

END

右手:

/script UseItemByName("速效毒药 III")

/script PickupInventoryItem (16)

盗贼宏(实用型)①

17173里的宏经验太少了,小弟汇编了一些,仅供各位交流学习!

WOW玩了不少日子,坛子也泡了不少,找来找去也没有看到几个实用的宏教程,像我等新人而言,宏怎么编我不管,我只想知道怎么用就行了,为此,小弟在这里一点我所知道的DZ宏,与各位江洋大盗们共勉之!

发3个自己用着的盗贼宏!~

双手互换(基本上贼都知道)我把他放在Q键  和CS中换枪键一样!~

/script PickupInventoryItem(16); PickupInventoryItem(17);

潜行+换手(要求是主手 拿的是单手剑或棰 不是主手绑定那种)

/施放 潜行(等级 3)

/script PickupInventoryItem(16); PickupInventoryItem(17);

背刺+换手(我潜行后一般用伏击 所以伏击后仍旧是主手拿的匕首 副手是剑 =回能量 到90 凿击)

/施放 背刺(等级 4)

/script PickupInventoryItem(16); PickupInventoryItem(17);

其实这些是简朴的宏 编起来也很简朴

还可以在每个宏下面打/say 黑暗终于来临,你们的末日到了!

这样在你用这个宏的时候你的人就会说这么一句话了

哈哈

/script function ss if e("player")39 then o(39,1);end;end;function ev if e("player")34 then o(26,1);end;end;function ra if e("player")9 and IsUsableAction(1)==1 then o(38,1);end;end;

[color=Green]ss是当能量大于39时邪恶攻击;ev是能量大于34时剔骨;ra是还击激活使用还击;请注重:把还击技能放在快捷栏第1格

/script function getfear(a) local r=0;for i=1,16,1 do b=UnitDebuff("player",i);if b~=nil then if strfind(b,a) then r=1;end;end;end;return r;end;function ak if p4 then ev else ss;end;end;o=CastSpell;p=GetComboPoints;e=UnitMana;s=SpellStopCasting;

[color=Green]getfear(a)是判定某种debuff是否存在于自己身上。

  a表示的是该debuff的icon名要害字。返回1表示debuff存在,返回0表示debuff不存在。ak是邪恶攻击5星放剔骨;o,p,e,s是常用要害字的定义,用于减少宏的长度。

/script function will if (getfear("PsychicScream")==1 or getfear("GolemThunderClap")==1 or getfear("Possession")==1 or getfear("MindSteal")==1) then uw;end;end;function cd(a) local x=GetSpellCooldown(a,1);if x10 then ak;else if p1 then ev else ss;end;end;else o(8,1);end

[color=Green]这个宏就是前的方法的调用。

  前面看明白了,这里很简朴。紫色部分,可以根据需要修改删除。

紫色部分:heal; ra; will; us;见上面b1~b5介绍。cd(31)是佯攻,cd(34)是乱舞。

后面部分:假如距离大于28使用弓射,28以内邪恶攻击+剔骨。

  当怪物血少于10%的时候,只要连击点=2就使用剔骨。o(8,1)是弓射击。

(为什么是28呢?因为黑龙,老10,好像15码都能攻击。而目前暴雪只提供了5,10,28的判定。所以你想改成10的时候,请把CheckInteractDistance("target",3)的3改2。

  改5码就把3改1)

测试你的技能编号的宏(当然,你也可以自己在技能书上数,从1开始):

紫色部分请自己替换,34是技能编号,夜月是你自己的名字。[/color]

/script spellname=GetSpellName([color=Purple]34[/color],1);SendChatMessage(spellname,"WHISPER", nguage,"[color=Purple]夜月[/color]")

盗贼常用宏的说明

MACRO 9 ‘非冤布毒术1‘ Spell_Arcane_PortalUnderCity。

  blp

/script UseContainerItem(0,9); PickupInventoryItem(16);

END

MACRO 10 ‘非冤布毒术2‘ Spell_Arcane_PortalDarnassus。blp

/script UseContainerItem(0, 10);PickupInventoryItem(17);

END

MACRO 19 ‘潜行‘ Ability_Ambush。

  blp

/施放 潜行(等级 3)

/script GameTooltip:SetInventoryItem(‘player‘, GetInventorySlotInfo(‘MainHandSlot‘)); if(GameTooltipTextRight3:GetText~=‘匕首‘) then PickupInventoryItem(16) PickupInventoryItem(17); end

END

MACRO 24 ‘背刺‘ Ability_BackStab。

  blp

/script GameTooltip:SetInventoryItem(‘player‘, GetInventorySlotInfo(‘MainHandSlot‘)); if(GameTooltipTextRight3:GetText==‘匕首‘) then CastSpellByName(‘背刺(等级 5)‘) else PickupInventoryItem(16) PickupInventoryItem(17); end

END

MACRO 26 ‘邪恶攻击‘ Spell_Shadow_RitualOfSacrifice。

  blp

/script GameTooltip:SetInventoryItem(‘player‘, GetInventorySlotInfo(‘MainHandSlot‘)); if(GameTooltipTextRight3:GetText~=‘匕首‘) then CastSpellByName(‘邪恶攻击(等级 6)‘) else PickupInventoryItem(16) PickupInventoryItem(17); end

END

MACRO 29 ‘消失‘ Ability_Vanish。

  blp

/施放 消失(等级 1)

/script GameTooltip:SetInventoryItem(‘player‘, GetInventorySlotInfo(‘MainHandSlot‘)); if(GameTooltipTextRight3:GetText~=‘匕首‘) then PickupInventoryItem(16) PickupInventoryItem(17); end

END

MACRO 35 ‘绷带‘ Spell_Holy_HolyBolt。

  blp

/script UseContainerItem(0, 5)

/script TargetUnit(‘player‘)

END

MACRO 36 ‘目标信息‘ Ability_CheapShot。blp

/script if UnitClassification(‘target‘)==‘elite‘ then SendChatMessage(‘‘。

  。 UnitLevel(‘target‘) 。。 ‘+ ‘ 。。 UnitName(‘target‘), ‘party‘) else SendChatMessage(‘‘ 。。 UnitLevel(‘target‘) 。。 ‘ ‘ 。。 UnitName(‘target‘), ‘party‘); end

感谢欣赏问答百科,更多问答百科请持续关注我们。

本文地址:https://www.wenxue58.com/wenda/309501.html