|
楼主 |
发表于 2020-4-30 13:14:10
|
显示全部楼层
加个背景图看不清了,重发一次,
目前铁掌内伤确实厉害,一不小心就挂了。在此加上百花丸的购买和服用。
shujian.lua
bhy_cur=0
count={}
count.bhy_max=5
drugBuy ={
["百花丸"] = "city/dangpu",
function hp_trigger()
create_trigger_t('hp20',"^(> )*你(服下一颗活血疗精丹,顿时感觉精血不再流失|服下一颗内息丸,顿时觉得内力充沛了不少|服下一颗川贝内息丸,顿时感觉内力充沛|服下一颗黄芪内息丹,顿时感觉空虚的丹田充盈了不少|吃下一颗百花丸|敷上一副蝉蜕金疮药,顿时感觉伤势好了不少|吃下一颗大还丹顿时伤势痊愈气血充盈)。",'','hpeatOver')
create_trigger_t('hp35',"^>*\\s*你只觉得胸腹犹如火焚,而四肢冰凉。",'','jiedu_bhy')
SetTriggerOption("hp35","group","hp")
function hpeatOver(n,l,w)
if string.find(l,"吃下一颗百花丸") then
messageShow('吃百花丸了!')
bhy_cur = bhy_cur - 1
end
function checkPrepare()
if score.tb and score.tb>100 and bhy_cur<1 and drugPrepare["百花丸"] then
return checkbhy()
end
function checkBY()
if string.find(l_name,"百花丸") then
bhy_cur = trans(Beinang[i])
end
function checkbhy()
tmp.cnt=0
if score.tb and score.tb>100 and bhy_cur<count.bhy_max then
return go(checkbhyBuy,randomElement(drugBuy["百花丸"]))
else
return checkNxwOver()
end
end
function checkbhyBuy()
tmp.cnt = tmp.cnt + 1
if tmp.cnt > 30 then
return checkNxwOver()
else
exe('duihuan baihua wan;score')
checkYaoBags()
return check_halt(checkbhyBag)
end
end
function checkbhyBag()
if dhd_cur<count.dhd_max and score.tb and score.tb>100 then
return checkWait(checkbhyBuy,1)
else
return checkNxwOver()
end
end
function jiedu_bhy()
exe('eat baihua wan')
end
添加完毕,运行iset,把百花丸勾选上。 |
|