Page 1 of 1

add to stack?

Posted: 2004-04-06 16:11:55
by WeedDevil
Hi, would be a good thing if we would be able to add objects (e.g. Ironingots from backpack) to a stack of the same type on ground...
i tried several things like setting the receivingcontainer as the stack on ground but it doesnt work :(

I cant use a chest because of weightlimit of those... drop is no alternativ because the house is public...

would be great if you could do something... thanks sincerely Weed

Posted: 2004-04-06 16:51:30
by Yoko
the thing is to set pile as receivingcontainer and move new units to it.
but on some shards it is not enough.
for this situation you must not only say to put items to pile but also say it's coordinates.

example (one line divided only to simplify look)

uo.moveitem("new_units_serial","0","receiver_pile",
str(uo.getx("receiver_pile")),
str(uo.gety("receiver_pile")),
str(uo.getz("receiver_pile")))

Posted: 2004-04-06 16:58:18
by WeedDevil
ahh i see.. great
thanks yoko that was exactly what i needed...

Posted: 2004-04-26 20:37:21
by tsubasa
i don't get where to put the coordinates tho, or how to tell that "receiver_pile" is at coord x,y,z...

Posted: 2004-04-26 22:50:40
by Lord Ruslan Nightmare
uo.moveitem("pile","-1","receiver pile","receiver pile x","receiver pile y","receiver pile z").
Receiver pile coords. must be obtained by uo.getx(), uo.gety(),uo.getz() and converted to strings with str()

Posted: 2004-04-27 15:52:32
by Yoko
tsubasa wrote:i don't get where to put the coordinates tho, or how to tell that "receiver_pile" is at coord x,y,z...

receiver_pile is a object. you may use serial or whatever. forexample if you found it by findtype then you may use finditem

Posted: 2004-04-30 18:28:09
by tsubasa
perfect thanks :D