|
发表于 2018-11-4 01:43:30
|
显示全部楼层
本帖最后由 marmot@tj 于 2018-11-4 01:45 编辑
function checkPrepare()
EnableTriggerGroup("poison",false)
DeleteTriggerGroup("poison")
drugPrepare = drugPrepare or {}
if hp.exp<150000 then
return checkPrepareOver()
end
if Bag["镣铐"] then
return tiaoshui()
end
if Bag and Bag["白银"] and Bag["白银"].cnt and Bag["白银"].cnt>500 then
return check_gold()
end
if (Bag and Bag["黄金"] and Bag["黄金"].cnt and Bag["黄金"].cnt<count.gold_max and score.gold>count.gold_max) or (Bag and Bag["黄金"] and Bag["黄金"].cnt and Bag["黄金"].cnt>count.gold_max*4) then
return check_gold()
end
if score.gold and score.gold>100 and nxw_cur<5 and drugPrepare["川贝内息丸"] then
return checkNxw()
end
if score.gold and score.gold>100 and cty_cur<5 and drugPrepare["蝉蜕金疮药"] then
return checkHxd()
end
--[[if job.zuhe["wudang"] and job.zuhe["xueshan"] and job.last=="wudang" and (not Bag["邪气丸"] or Bag["邪气丸"].cnt<2) then
return checkXqw()
end
if job.zuhe["wudang"] and job.zuhe["xueshan"] and job.last=="wudang" and (not Bag["正气丹"] or Bag["正气丹"].cnt<2) then
return checkZqd()
end
if job.zuhe["huashan"] and job.zuhe["xueshan"] and job.last=="huashan" and (not Bag["邪气丸"] or Bag["邪气丸"].cnt<2) then
return checkXqw()
end
if job.zuhe["huashan"] and job.zuhe["xueshan"] and job.last=="huashan" and (not Bag["正气丹"] or Bag["正气丹"].cnt<2) then
return checkZqd()
end]]
if not flag.item then
if score.party and score.party=="峨嵋派" and not Bag["腰带"] then
return check_item()
end
if score.party=="少林派" and not Bag["护腰"] and not Bag["护腕"] then
return check_item()
end
end
if not Bag["火折"] and drugPrepare["火折"] then
return checkFire()
end
if score.gold and score.gold>100 and hxd_cur<3 and drugPrepare["活血疗精丹"] then
return checkLjd()
end
if score.tb and score.tb>100 and dhd_cur<1 and drugPrepare["大还丹"] then
return checkdhd()
end
for p in pairs(weaponPrepare) do
if weaponStore[p] and not Bag[p] and Bag["黄金"].cnt>3 then
return checkWeapon(p)
end
if weaponFunc[p] and not Bag[p] then
return _G[weaponFuncName[p]]()
end
if weaponPrepare["飞镖"] and Bag["枚飞镖"].cnt<100 then
return checkWeapon("飞镖")
end
end
--[[
local l_cut = false
for p in pairs(Bag) do
if weaponKind[Bag[p].kind] and weaponKind[Bag[p].kind]=="cut" then
l_cut = true
end
end
if not l_cut and not Bag["木剑"] then
weaponPrepare["木剑"] = true
return checkWeapon("木剑")
end
]]
if Bag["韦兰之锤"] then
return checkHammer()
end
for p in pairs(Bag) do
if Bag[p] and itemSave[p] then
return checkYu(p)
end
if Bag[p].id and Bag[p].id["yu"] and string.find(p,"玉") then
return checkYu(p)
end
if Bag[p].id and Bag[p].id["jintie chui"] and string.find(p,"金铁锤") then
return checkYu(p)
end
if Bag[p].id and Bag[p].id["shentie chui"] and string.find(p,"神铁锤") then
return checkYu(p)
end
end
exe('wear all')
return checkPrepareOver()
end |
|