Hi all,
I am using a different and simplest approach for my autorepair.
Lua Code:
local cost = GetRepairAllCost()
if cost > 0 and CanMerchantRepair() and GMDURABILITY_CFG["AUTOREPAIR"] then
if CanWithdrawGuildBankMoney() and CanGuildBankRepair() and GMDURABILITY_CFG["GUILDREPAIR"] == true then
RepairAllItems(1)
print(prgname .. ": " .. L["repair with guild funds"] .. " " .. GetCoinTextureString(cost))
else
if mymoney >= cost then
RepairAllItems()
print(prgname .. ": " .. L["repair"] .. " " .. GetCoinTextureString(cost))
else
print(prgname .. ": " .. L["no repair, need more money"])
end
end
end
but now you have make me dubious if it is correct or no
At the end it prints the repair cost :
and it seems to me correct.