Well, I'll try better describe my main problem only to report you potentional bug.
I don't want to create new topic in the request section, because my post has better context here. If you want move it yourself.
As Dmitrij wrote - what is bad on this code?
Dmitrij wrote:
Code:
var tcl = UO.TradeContainer("left") # true
UO.MoveItem("finditem","-1",tcl) # badI'm sure that trade window was opened (also uo.TradeCount returned 1) and I'm sure that command uo.TradeContainer() correctly returned serial of my (left side) trade box in the trade window. But "finditem" was not moved to the trade box, but to my backpack.
I also tried this...
Code:
var cnt= uo.TradeContainer()
uo.SetReceivingContainer(cnt) # Prints serial of my trade box on the screen
uo.grab()
...but with the same result. Everything ends in my backpack.
Then I tried to change the container and created this script, which grabs items to my bank box.
Code:
sub test()
var banktype ="0x0e40"
uo.serverprint("bank")
wait(1000)
uo.ignorereset()
uo.findtype (banktype, "-1", "self")
if uo.findcount() > 0 then
uo.SetReceivingContainer (uo.getserial("finditem"))
uo.print("Bank was found")
else
uo.print("Bank is too far")
end if
uo.grab()
end sub()
It works perfectly. Targeted item was moved to my bank box.
So, this is result of my experiments:
There is some problem with trade box container, which is never reachable and so I cannot move anything to it.
I use uo client v. 2.0.0b, Injection v. 0.3.30.4 alpha and I play on POL shard.
Uf, it's all I hope. Is this report you wished?