|
1、shujian.lua 中需要注释掉以下代码:
--[[function weapon_lost()
return go(weapon_lost_get,'扬州城','当铺')
end
function weapon_lost_get()
exe('duihuan husky;get all')
scrLog()
messageShow('武器丢失,兑换哈士奇找回!','red')
return check_halt(check_food)
end]]
2、weapon.lua中增加以下代码:
armorStoreId={
["灵器·晶晶剑"] = "yesuaini jian", -----------------此处改为你的武器
}
加最前面就可以
3、shujian.lua中在 function checkPrepare() 中增加以下代码:
--添加武器找回bxp开始
for p in pairs(armorStoreId) do
if armorStoreId[p] and not Bag[p] then
return weapon_lost()
end
end
weapon_lost=function()
DeleteTriggerGroup("weapon_lost")
create_trigger_t('weapon_lost1',"^>*\\s*神匠之锤化为一道流火,把你所有的装备都重新塑造了一遍。",'','xhammer_over')
create_trigger_t('weapon_lost2',"^>*\\s*哈士奇一转眼就跑没影儿了,一会给你叼来了一柄(\\D*),然后不知道跑哪去了。",'','weapon_over')
create_trigger_t('weapon_lost3',"^>*\\s*哈士奇呆呆地瞪着你,好象很不高兴的样子。",'','weapon_over')
SetTriggerOption('weapon_lost1','group','weapon_lost')
SetTriggerOption('weapon_lost2','group','weapon_lost')
SetTriggerOption('weapon_lost3','group','weapon_lost')
EnableTriggerGroup("weapon_lost",true)
go(weapon_find,'扬州城','当铺')
end
function weapon_find()
exe('duihuan xhammer')
end
function xhammer_over()
checkBags()
return checkWait(check_husky,2)
end
function check_husky()
exe('duihuan husky')
end
function weapon_over()
wait.make(function()
wait.time(1.5)
exe('get yesuaini jian') ----------此处改为你武器的id
return check_halt(checkPrepareOver)
end)
end
--添加武器找回bxp结束
以上代码原创链接在这里,我只是搬运:
http://www.sjever.net/bbs/forum. ... &extra=page%3D1
经本人亲测,此方法可行。 |
|