@Wesker why do you have to move an uncompleted stack?
Can't you just use the gold converter on a completed stack?
Oh and i still get the same error message
Thanks for you help i appreciate it :)
cant click on indx if i c
ill fix it again its the lua everything seems to be smashed in
IM FUCKING FALLING SLEEP OMG
JUST COPY THE CODE FROM THE FIRST PAGE ADD MAROUND
ADD THIS TO THE FIRST POST
auto(1000)
if maround() == 0 and paround() == 0 then
pausewalking(1000)
GoldConverter("Jewelled Backpack","Zaoan Chess Box")
end
ill update the first page
01-14-2017, 01:24 AM
Zombie
@Wesker I wish you could test these scripts before you actually publish them.
Still getting an error error in
Persistent script NewPersistentScript:
["if $cap < Cap and coins > 100 a..."]:NewPersistentScript:10 attempt to compare number with nil
stack traceback:
["GoldConverter("Golden Backpack","Zaoan Chess Box")"]:NewPersistentScript:28 in user script
01-14-2017, 01:50 AM
Wesker
Quote:
Originally Posted by Zombie
@Wesker I wish you could test these scripts before you actually publish them.
Still getting an error error in
Persistent script NewPersistentScript:
["if $cap < Cap and coins > 100 a..."]:NewPersistentScript:10 attempt to compare number with nil
stack traceback:
["GoldConverter("Golden Backpack","Zaoan Chess Box")"]:NewPersistentScript:28 in user script
i finally understand what error you got you didnt define Cap
Cap doesnt exist this must be a number to compare with since i got my variables
Cap = 30
the variable exists but in you're script its empty all you need to do is add
local function GoldConverter(BackpackFrom, BackpackTo, Cap)
-- BackpackFrom Where are your Gold Coins
-- BackpackTo Backpack to move uncomplete stack
-- Cap to use gold converter [this is how it should be used]
local cont = getcontainer(BackpackFrom)
local coins = itemcount(3031,BackpackFrom)
if $cap < Cap and coins > 100 and itemcount(23722) > 0 then
for j=1,cont.itemcount do
if cont.item[j].count < 100 and cont.item[j].id == 3031 then
moveitems(3031,BackpackTo,BackpackFrom,cont.item[j].count)
elseif cont.item[j].count == 100 and cont.item[j].id == 3031 then
useitemon(23722, 3031, BackpackFrom)
end
end
end
if itemcount(3031,BackpackTo) > 0 then
moveitems(3031, BackpackFrom, BackpackTo, 100)
end
end
auto(1000)
if maround() == 0 and paround() == 0 then
pausewalking(1000)
GoldConverter("Jewelled Backpack","Zaoan Chess Box",30) ---- you're missing the cap here "30" is the cap
end
you can also check my layout on the free scriptsthread it has already this function in it
01-20-2017, 04:09 AM
Azyzz Shavershian
dont work for me, bot just stop walking, start moving all gold coins to another backpack but dont use the gold converter...
01-20-2017, 08:16 AM
Robin
can you explain how could i use that?
what i need, what i need to change, i didnt understood what you did.
anyway, my gold backpack is golden backpack
i need where i add my backpack, on looting or at this scirpt..
im pretty lost here.
01-26-2017, 08:58 AM
batsy
Quote:
Originally Posted by Wesker
local Cap = 30 --- cap to start the script
local function GoldConverter(BackpackFrom, BackpackTo, Cap)
-- BackpackFrom Where are your Gold Coins
-- BackpackTo Backpack to move uncomplete stack
-- Cap to use gold converter [this is how it should be used]
local cont = getcontainer(BackpackFrom)
local coins = itemcount(3031,BackpackFrom)
if $cap < Cap and coins > 100 and itemcount(23722) > 0 then
for j=1,cont.itemcount do
if cont.item[j].count < 100 and cont.item[j].id == 3031 then
moveitems(3031,BackpackTo,BackpackFrom,cont.item[j].count)
elseif cont.item[j].count == 100 and cont.item[j].id == 3031 then
useitemon(23722, 3031, BackpackFrom)
end
end
end
if itemcount(3031,BackpackTo) > 0 then
moveitems(3031, BackpackFrom, BackpackTo, 100)
end
end
auto(1000)
if maround() == 0 and paround() == 0 then
pausewalking(1000)
GoldConverter("Jewelled Backpack","Zaoan Chess Box",100)
end