Rev 3 → Rev 4
trunk/AutoReparar.xml
File deleted
\ No newline at end of file
trunk/AutoReparar.lua
File deleted
\ No newline at end of file
trunk/AutoReparar.toc
File deleted
\ No newline at end of file
trunk/Auto Reparar/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
trunk/Auto Reparar/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/Auto Reparar/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