< 魔兽世界百科 >
|
![]() |
TOC文档
## Interface: 1500
## Title: 术士辅助V0.1
## Notes: 术士辅助脚本
## OptionalDeps:
## Dependencies:
WarlockAssistant.xml
XML文档
WarlockAssistant.xml:
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<script file="WarlockAssistant.lua"/>
<Frame name="WarlockAssistantFrame">
<scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED");
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED") then
WarlockAssistant_init();
end
</OnEvent>
</Scripts>
</Frame>
</Ui>
LUA文档
function WarlockAssistant_init()
-- define slash command here
SlashCmdList["WL_WarlockMelee"] = WL_WarlockMelee;
SLASH_Wl_AttackMelee1 = "/empf";
SLASH_Wl_AttackMelee2 = "/empf";
end
function Wl_AttackMelee()
PetAssistUnit("Player")
if(not UnitExists("target")) then
TargetNearestEnemy();
end;
if(UnitExists("target")) then
PetAttack();
CastSpellByName("Attack");
x=1
found=false;
while (UnitBuff("player",x)) do
if(string.find(UnitBuff("player",x), "恶魔皮肤")) then
found=true;
end;
x=x+1;
end;
if(not found) then
CastSpellByName恶魔皮肤 (等级 x)");
end;
end;
引用本页地址(点击复制到粘贴板) 粘贴到你想引用的网页。
HTML形式的传播:
论坛形式的传播: