网上商店系统:哪位 DZ 高手 教我做宏
谢谢!
个人觉得就绷带宏很有用,特别是对预备贼来说,很多宏不需要
不需要选择自己,当然如果你选择队友,会给队友上绷带。
/script UseContainerItem(0,3)
/script TargetUnit("player")
说明下这句/script UseContainerItem(0,3),其中0代表包包代号,3,代表格子代号,具体说明如下
5个背包按照排列位置编号如下:
[4][3][2][1][0]]
6格包的格子编号如下:
_____[1][2]
[3][4][5][6]
16格包的格子编号如下:
[ 1][ 2][ 3][ 4]
[ 5][ 6][ 7][ 8]
[ 9][10][11][12]
[13][14][15][16]
其他格数以此类推
呵呵
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