WoWInterface SVN AutoReparar

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 4 to Rev 3
    Reverse comparison

Rev 4 → Rev 3

trunk/AutoReparar.xml New file
0,0 → 1,9
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="AutoReparar.lua"/>
<Frame name="AutoReparar_Marco">
<Scripts>
<OnLoad>AutoReparar_AlCargar(self);</OnLoad>
<OnEvent>AutoReparar_AlEvento();</OnEvent>
</Scripts>
</Frame>
</Ui>
\ No newline at end of file
trunk/AutoReparar.lua New file
0,0 → 1,20
function AutoReparar_AlCargar(marco)
marco:RegisterEvent("MERCHANT_SHOW")
end
function AutoReparar_AlEvento()
if (CanMerchantRepair()) then
local costeReparar = GetRepairAllCost()
local repararHermandad = 0
if (costeReparar) then
if (CanGuildBankRepair() and costeReparar <= GetGuildBankMoney()) then
repararHermandad = 1
else
if (costeReparar > GetMoney()) then
return
end
end
PlaySound("ITEM_REPAIR")
RepairAllItems(repararHermandad)
end
end
end
\ No newline at end of file
trunk/AutoReparar.toc New file
0,0 → 1,7
## Interface: 30000
## Title: Auto Reparar
## Notes: Automáticamente repara cuando hablas con un mercante que lo permite
## Version: 0.1 Beta
## Written By: Luskaner
 
AutoReparar.xml
\ No newline at end of file