|
楼主 |
发表于 2017-8-31 22:47:53
|
显示全部楼层
大神,1和2我都按照你说的该改好了,3和4我是这样改的(下面红色字体),但是到了扬州钱庄没有qu 100 coin,显示“什么”,能帮我看看问题出在哪吗?
if weaponPrepare["铜钱"] and Bag["铜钱"].cnt<100 then
return checkWeapon("铜钱")
end
.............
function checkWeapon(p_weapon)
tmp.cnt = 0
tmp.weapon = p_weapon
return go(checkWeaponBuy,"扬州城","天阁斋")
end
function checkWeaponBuy()
tmp.cnt = tmp.cnt + 1
if tmp.cnt > 10 then
checkBags()
return check_heal()
else
if tmp.weapon and weaponStoreId[tmp.weapon] then
exe('qu 100 coin')
checkBags()
return checkWait(checkWeaponI,3)
else
return check_heal()
end
end
end
function checkWeaponI()
if not Bag[tmp.weapon] then
return checkWeaponBuy()
else
return checkWeaponOver()
end
end
function checkWeaponOver()
return checkPrepare()
end |
|