Postado Agosto 18, 2022 2 anos Hello good afternoon everyone, I would like to know how do I drop items in a moment in my cavebot. Or activate "Drop Items" macro by cavebot function. Want to enter my house, drop the loot and go back to the hunt, I've recorded to my house and back, but I can't drop the items inside it. (OT CLIENT V8) Thanks. ---------------------------------------------- Olá boa tarde a todos, gostaria de saber como faço para dropar itens na minha house pelo cavebot. Ou ativar o macro "Drop Items" pelo function cavebot. Quero entrar na minha casa, largar o loot e voltar para a hunt, já gravei o caminho ate minha casa e a volta, mas não consigo dropar os itens dentro dela. (OT CLIENT V8) Obrigado.
Postado Fevereiro 13, 2023 2 anos Administrador Tenta criar um waypoint que vai executar o seguinte script na casa local playerPos = g_game.getLocalPlayer():getPosition() local houseX = 9999 local houseY = 9999 if playerPos.x >= houseX and playerPos.y => houseY then gotolabel("HouseDrop", "Walking: false") else gotolabel("Start", "Walking: true") end Na label HouseDrop ative o seguinte script if not g_game.isOnline() then return end local itemsToDrop = {3364, 3365} -- IDS TO DROP local containers = g_game.getContainers() for v, container in pairs(containers) do if container:getItemsCount() > 0 then local containerItems = container:getItems() for j, item in pairs(containerItems) do for k, itemId in pairs(itemsToDrop) do if item:getId() == itemId then g_game.moveItem(item, g_game.getLocalPlayer():getPosition(), item:getCount()) return end end end end end auto(1000) Contato : https://www.linkedin.com/in/rafhael-oliveira/ Servidores : https://www.pokemmorpg.com Projetos : https://github.com/thetibiaking
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.