View Full Version : OT gold into platinium into crystal change
spaweq
09-27-2016, 12:15 PM
Hello, I have a question.
How to set bot, so it changes gold into platinium and platiunium into crystals, by right clicking when there is 100 gold, and then when there is 100 platinium coins?
Atari
10-09-2016, 11:44 AM
Save it in my documents / xenobot / scripts as changegold.lua and turn it on in bot (scripts > changegold.lua > execute. :)
function useCoins(id)
local cont = Container.GetFirst()
while (cont:isOpen()) do
for spot = 0, cont:ItemCount() do
local item = cont:GetItemData(spot)
if (item.id == id) then
if (item.count == 100) then
cont:UseItem(spot, True)
sleep(100)
return true
end
end
end
cont = cont:GetNext()
end
return false
end
while (true) do
useCoins(3031)--gold
sleep(500)
useCoins(3035)--platinum
sleep(500)
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.