I just tested, focusclient () did not work.
Anyone got any ideas?
I just tested, focusclient () did not work.
Anyone got any ideas?
@Raphael, any idea about what i can do?
thx
Heck, just do
while itemcount(sellitem.name) > 0 do
sellitemsmarket(sellItem.name, sellItem.price, math.min(itemcount(sellitem.name), 100), true)
wait(300, 500)
end
@Raphael, see the full action:
Action Without edit
-- market seller
closewindows()
wait(500,600)
local sellItems = {
{name = 'hailstorm rod', price = 2950},
{name = 'magma monocle', price = 2450},
{name = 'blue piece of cloth', price = 1299},
{name = 'small oil lamp', price = 140},
{name = 'strong mana potion', price = 79}
}
openmarket()
wait(200,400)
for _,sellItem in ipairs(sellItems) do
sellitemsmarket(sellItem.name, sellItem.price, 9999, true)
wait(500,600)
end
closemarket()
wait(500,600)
I have to use like this?
-- market seller
closewindows()
wait(500,600)
local sellItems = {
{name = 'hailstorm rod', price = 2950},
{name = 'magma monocle', price = 2450},
{name = 'blue piece of cloth', price = 1299},
{name = 'small oil lamp', price = 140},
{name = 'strong mana potion', price = 79}
}
openmarket()
wait(200,400)
while for _,sellItem in ipairs(sellItems) > 0 do
sellitemsmarket(sellItem.name, sellItem.price, 9999, true)
wait(500,600)
end
closemarket()
wait(500,600)
Last edited by KrusT; 09-26-2014 at 10:29 PM.
Just replace sellitems... with the code I pasted.
@Raphael, gonna test right now.
in 5 minutes i give you a feedback
i gonna test like this
-- market seller
closewindows()
wait(500,600)
local sellItems = {
{name = 'hailstorm rod', price = 2950},
{name = 'magma monocle', price = 2450},
{name = 'blue piece of cloth', price = 1299},
{name = 'small oil lamp', price = 140},
{name = 'strong mana potion', price = 79}
}
openmarket()
wait(200,400)
while itemcount(sellitem.name) > 0 do
sellitemsmarket(sellItem.name, sellItem.price, math.min(itemcount(sellitem.name), 100), true)
wait(300, 500)
end
closemarket()
wait(500,600)
EDIT: 20:42:57 error in Action script wptid:5:
["while itemcount(sellitem.name) > 0 do"]:Action: 5:14 attempt to index global 'sellitem' (a nil value)
Last edited by KrusT; 09-26-2014 at 11:50 PM.
It won't work.
Please read carefully what I said.
@Raphael i read, i replaced the line take a look on my last post, i edited with the error.
sorry, i do not understand much of bot
Replace only that line.
@Raphael, this? :
-- market seller
closewindows()
wait(500,600)
local sellItems = {
{name = 'hailstorm rod', price = 2950},
{name = 'magma monocle', price = 2450},
{name = 'blue piece of cloth', price = 1299},
{name = 'small oil lamp', price = 140},
{name = 'strong mana potion', price = 79}
}
openmarket()
wait(200,400)
for _,sellItem in ipairs(sellItems) do
while itemcount(sellitem.name) > 0 do
sellitemsmarket(sellItem.name, sellItem.price, math.min(itemcount(sellitem.name), 100), true)
wait(300, 500)
end
wait(500,600)
end
closemarket()
wait(500,600)