PDA

View Full Version : how to transform the loot



Ryukend
03-02-2014, 06:56 PM
good, I have the xenobot and I would like to know if you can do that when 100 platinum coins are Lotee becomes automatically a 1 crystal coin, if I can say like thanks: D.

nachoo123
03-02-2014, 07:25 PM
You can't do that on Real Tibia Servers, that's only possible on OT's as long as I know.

Infernal Bolt
03-02-2014, 07:26 PM
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

Made by Jo3Bingham

Ryukend
03-03-2014, 05:17 AM
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

Made by Jo3Bingham

thank you very much worked out perfect