DUSTOTS
ONLINE: 0

Zamiana CC na DC (OTC)

Prosta instrukcja konfiguracji makra w Twoim kliencie

1 Na samym początku otwieramy bota w OTC i klikamy przycisk Edit, jak pokazano na obrazku:

[Obrazek przycisku Edit]

2 Następnie przechodzimy do sekcji skryptów:

[Obrazek sekcji skryptów]

3 Wchodzimy w plik Start i tworzymy nowy plik. Możesz go nazwać np. "Cc.lua".

[Obrazek tworzenia pliku lua]

4 Wklej do nowo utworzonego pliku poniższy kod:

local exchangeIds = { 3043 } -- money to exchange (3043 - crystal coin) local moneyIds = { 3043 } macro(500, "Cc", function() for i, container in pairs(getContainers()) do for j, item in ipairs(container:getItems()) do if item:isStackable() and table.find(moneyIds, item:getId()) and item:getCount() == 100 then return use(item) end end end end) macro(100, "Stack Items", function() local containers = g_game.getContainers() local toStack = {} for index, container in pairs(containers) do if not container.lootContainer then for i, item in ipairs(container:getItems()) do if item:isStackable() and item:getCount() < 100 then local stackWith = toStack[item:getId()] if stackWith then g_game.move(item, stackWith[1], math.min(stackWith[2], item:getCount())) return end toStack[item:getId()] = {container:getSlotPosition(i - 1), 100 - item:getCount()} end end end end end)