avatar
Untitled

Guest 18 5th Oct, 2024

MARKUP 1.12 KB
                                           
                         local lootItemIds = {
["3281"] = "giant sword",
["3555"] = "golden boots",
["3364"] = "golden legs",
["3079"] = "boots of haste",
["3366"] = "magic plate armor",
["3386"] = "dragon scale mail",
["3320"] = "fire axe",
["3309"] = "thunder hammer",
["3422"] = "great shield",
["3387"] = "Demon Helmet",
["3414"] = "mastermind shield"
}
local ids={}
local currentIdIdx = 0
local count = 0

for k,_ in pairs(lootItemIds) do
  count=count+1
  ids[count]=k
end

macro(10*1000, "LOOT SELL", function()
    if not g_game.isOnline() then return end
    for idx, id in pairs(ids) do
        if idx <= currentIdIdx then goto skip_to_next end
        currentIdIdx = idx
        found = findItem(id)
        if found then
            say("!sell " .. lootItemIds[id])
            return
        end
        ::skip_to_next::
    end
    currentIdIdx = 0
end)
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM