Hello.
I may ask you to take care when posting on Forums, to make sure you are posting on right section. Because you posted on Realesta OTBot's section instead of Kasteria OTBot, they look familiar but works bit differently internally and may have differences on its functions according to the server particularities.
I disagree with about effort, since it takes a single movement. But I agree that it could be easier.
I've applied a few changes on LUA function -> useitemonitem(), so it will accept item slot as well, so you can use item id, item name or item index/slot. So you can actually make gold converter to be used on right gold coin stack without moving gold coins to belt and so.
Redownload and reinstall Kasteria OTBot (1.0.25-6), otherwise this will not work.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
local GOLD_CONVERTER_ID = 0 -- Gold converter id.
local containers = getcontainers()
for _, cont in ipairs(containers) do
for __, item in ipairs(cont.items) do
if item.id == 3031 and item.count == 100 then
useitemonitem(GOLD_CONVERTER_ID, item.index, cont.index)
wait(500, 800)
return
end
end
end
If you have different gold changers then add it to the list. The script will check for each one
local GOLD_CONVERTERS_IDS = { 1234, 4321, 99999 } -- Gold converters ids. If you have different gold changers then add it to the list.
local GOLD_CONVERTER_ID = 0
for _, gcId in ipairs(GOLD_CONVERTERS_IDS) do
if itemcount(gcId) > 0 then
GOLD_CONVERTER_ID = gcId
break
end
end
if GOLD_CONVERTER_ID > 0 then
local containers = getcontainers()
for _, cont in ipairs(containers) do
for __, item in ipairs(cont.items) do
if item.id == 3031 and item.count == 100 then
useitemonitem(GOLD_CONVERTER_ID, item.index, cont.index)
wait(500, 800)
return
end
end
end
end