自动吃秘籍宏
云端ID 11072 作  者 最近更新20140114 代码类型ver1.1.5版本以上 本周热度loading... 作者专栏

/script do
bOnfqyAutoRecipe=bOnfqyAutoRecipe or false
if not bOnfqyAutoRecipe then
OutputMessage(“MSG_SYS”, “[自动吃秘籍]-开启n”)
bOnfqyAutoRecipe = true
else
OutputMessage(“MSG_SYS”, “[自动吃秘籍]-关闭n”)
bOnfqyAutoRecipe = false
end
FqyMySkill={}
function FqyGetMySkill()
local tSchoolList={["天策"]=1,["万花"]=2,["纯阳"]=3,["七秀"]=4,["少林"]=5,["藏剑"]=6,["明教"]=8,["五毒"]=9,["唐门"]=10,}
local player=GetClientPlayer()
local szForceTitle=GetForceTitle(player.dwForceID)
local aKungfu=player.GetKungfuList(tSchoolList[szForceTitle])
FqyMySkill={}
for i, v in pairs (aKungfu) do
for j, k in pairs (player.GetSkillList(i)) do
if k==0 then
k=1
end
if not (GetSkill(j, k).bIsPassiveSkill or Table_IsSkillFormation(j,k)) then
table.insert(FqyMySkill,Table_GetSkillName(j,k))
end
end
end
end
function fqyAutoRec()
local P=GetClientPlayer()
for i=1,5 do
for j=0,P.GetBoxSize(i)-1 do
local itm=P.GetItem(i,j)
if itm and itm.nSub==ITEM_SUBTYPE_RECIPE then
if not IsMystiqueRecipeRead(itm) then
local x1,y1=string.find(itm.szName,”·”)
local x2,y2=string.find(itm.szName,”》”)
local SRName=string.sub(itm.szName,y1+1,x2-1)
FqyGetMySkill()
for _,b in pairs(FqyMySkill) do
if SRName==b then
OnUseItem(i, j, GetUIItemBox(i, j, true))
break
end
end
end
end
end
end
end
RegisterEvent(“RENDER_FRAME_UPDATE”,function()
if bOnfqyAutoRecipe then
if GetClientPlayer().GetOTActionState()==0 and GetClientPlayer().nMoveState==MOVE_STATE.ON_STAND then
fqyAutoRec()
end
end
end)
end

奇穴点法- 收起

秘籍搭配- 收起

急速阈值- 收起

<一定要点这复制宏代码>
  1. 载入中 loading ...
分类:通用宏
标签:
标识:/cloud/11072