Log in

View Full Version : Gold Converter script :)



jey9494
12-02-2016, 04:23 PM
Hello Xenobotters :cool:,
i need script which use gold converter if 100+ gold, ty for your time

Schneeider
12-03-2016, 11:58 AM
Hello Xenobotters :cool:,
i need script which use gold converter if 100+ gold, ty for your time

i need that tho

grimes93
12-04-2016, 08:46 PM
i need that tho

i do aswell

Schneeider
12-05-2016, 04:26 PM
please guys we need that script :D

Guivalaadao
12-08-2016, 01:32 AM
i need too :S

Fetbojj
12-08-2016, 10:20 AM
I don't know how to make luas but I found this on the forum when searching for a rust remover user script:



CONFIG = {

PRIMARY = 9016,

SECONDARY = {8894, 8895, 8896, 8897, 8898, 8899}

}



Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)

local PRIMARY, SECONDARY, SPOTS = nil, nil, {}

for i = 0, 15 do

local cont = Container.New(i)

if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then

for SPOT = cont:ItemCount() - 1, 0, -1 do

local tmp = cont:GetItemData(SPOT)

if (tmp.id == CONFIG.PRIMARY) then

PRIMARY = cont

SPOTS[1] = SPOT

elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then

SECONDARY = cont

SPOTS[2] = SPOT

end

end

end

end

if (PRIMARY ~= nil and SECONDARY ~= nil) then

PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])

end

moduleObject:Delay(1000)

end)

Now all we need to do is replace the primary with the item id of the gold converter and the secondary with the gold id. Plus we need to add a counter so that it only tries to use the primary on the secondary while count => 100. So lets seee.... :



CONFIG = {

PRIMARY = goldconverterid,

SECONDARY = {3031}

}



Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)

local PRIMARY, SECONDARY, SPOTS = nil, nil, {}

for i = 0, 15 do

local cont = Container.New(i)

if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then

for SPOT = cont:ItemCount() - 1, 0, -1 do

local tmp = cont:GetItemData(SPOT)

if (tmp.id == CONFIG.PRIMARY) then

PRIMARY = cont

SPOTS[1] = SPOT

elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then

SECONDARY = cont

SPOTS[2] = SPOT

end

end

end

end

if (PRIMARY ~= nil and SECONDARY > 100) then

PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])

end

moduleObject:Delay(1000)

end)

I don't have a gold converter so I don't know the item id, so please if you try this make sure to replace goldconverterid with the numbers of the id. And please report back if it works or if you get an error (and paste the error here please).

edit: it might not work because if for example you have 95 gold coins and you loot 12 you will have a first stack of 7 and then 100 with exactly the same item id. So the script will probably try to use the converter on the 7 instead of the 100. Again, I don't know a lot about luas just copy pasta.

Huffe
12-09-2016, 09:26 PM
nvm i cant read

Schneeider
12-10-2016, 07:07 PM
I don't know how to make luas but I found this on the forum when searching for a rust remover user script:



CONFIG = {

PRIMARY = 9016,

SECONDARY = {8894, 8895, 8896, 8897, 8898, 8899}

}



Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)

local PRIMARY, SECONDARY, SPOTS = nil, nil, {}

for i = 0, 15 do

local cont = Container.New(i)

if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then

for SPOT = cont:ItemCount() - 1, 0, -1 do

local tmp = cont:GetItemData(SPOT)

if (tmp.id == CONFIG.PRIMARY) then

PRIMARY = cont

SPOTS[1] = SPOT

elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then

SECONDARY = cont

SPOTS[2] = SPOT

end

end

end

end

if (PRIMARY ~= nil and SECONDARY ~= nil) then

PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])

end

moduleObject:Delay(1000)

end)

Now all we need to do is replace the primary with the item id of the gold converter and the secondary with the gold id. Plus we need to add a counter so that it only tries to use the primary on the secondary while count => 100. So lets seee.... :



CONFIG = {

PRIMARY = goldconverterid,

SECONDARY = {3031}

}



Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)

local PRIMARY, SECONDARY, SPOTS = nil, nil, {}

for i = 0, 15 do

local cont = Container.New(i)

if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then

for SPOT = cont:ItemCount() - 1, 0, -1 do

local tmp = cont:GetItemData(SPOT)

if (tmp.id == CONFIG.PRIMARY) then

PRIMARY = cont

SPOTS[1] = SPOT

elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then

SECONDARY = cont

SPOTS[2] = SPOT

end

end

end

end

if (PRIMARY ~= nil and SECONDARY > 100) then

PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])

end

moduleObject:Delay(1000)

end)

I don't have a gold converter so I don't know the item id, so please if you try this make sure to replace goldconverterid with the numbers of the id. And please report back if it works or if you get an error (and paste the error here please).

edit: it might not work because if for example you have 95 gold coins and you loot 12 you will have a first stack of 7 and then 100 with exactly the same item id. So the script will probably try to use the converter on the 7 instead of the 100. Again, I don't know a lot about luas just copy pasta.

not working bro....
the id of gold converter is 23722 if u wanna help us :) +rep

Flexderec
06-15-2020, 12:31 PM
I don't know which is better but I'll use this onlineconvertfree.com (https://onlineconvertfree.com/) online file converter for it because it simple and useful tool. What do you think about it?

nick4share
08-07-2020, 04:14 PM
I use this one and it works perfectly.
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(500)
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