Hello. The case looks like this, the bot crashes for me, it just turns it off every now and then and I don't know if it's not because of the money exchange script because I see in the logs that this script is spamming a bit. Please help
i use this scripts
auto(250)
if not g_game.isOnline() then return end
local coinIds = {3031, 3035}
local playerItems = g_game.getLocalPlayer():getItems()
for _, item in pairs(playerItems) do
for _, coinId in pairs(coinIds) do
if item and item:getId() == coinId and item:getCount() == 100 then
g_game.useItem(item)
return
end
end
end