Log in

View Full Version : How to right-click when a gold/platinum coin pile reaches 100? (useful for OT)



BobDog
09-06-2017, 03:12 AM
Hello guys,

I play on an OT server that has the great feature of when a coin pile reaches 100 you can right click it and it turns into 1 platinum or 1 crystal coin.

Since I want my bots to get the money, I'd love to turn them into the next high value coin so it won't use up all the space and weight my character can carry.

If anyone knows how to implement this into my script, I'd much appreciate it!

Thank you.

EDIT: apparently my bot is getting crazy because when it completely fills the backpack with gp, instead of opening the next bp already inside the first one, it just stops looting gp. If I'm making some noob mistake, would you kindly let me know? Thank you.

anoyn
09-14-2017, 05:22 PM
Pretty much every problem you will face someone has found a solution to.

Find fixes by searching like this
https://www.google.ca/search?q=change+gold+site:xenobot.net

Heres one script people are using to change gold.
http://forums.xenobot.net/showthread.php?14642-Xenobot-Gold-changes-to-Platinum&p=183735&viewfull=1#post183735

Samoxx
12-25-2017, 12:23 AM
--It's change gold to platinum and platinum to crystal when count is 100 --

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