Yoko
http://forum.yoko.com.ua/

add to stack?
http://forum.yoko.com.ua/viewtopic.php?f=4&t=23
Page 1 of 1

Author:  WeedDevil [ 2004-04-06 16:11:55 ]
Post subject:  add to stack?

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

Author:  Yoko [ 2004-04-06 16:51:30 ]
Post subject: 

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")))

Author:  WeedDevil [ 2004-04-06 16:58:18 ]
Post subject: 

ahh i see.. great
thanks yoko that was exactly what i needed...

Author:  tsubasa [ 2004-04-26 20:37:21 ]
Post subject: 

i don't get where to put the coordinates tho, or how to tell that "receiver_pile" is at coord x,y,z...

Author:  Lord Ruslan Nightmare [ 2004-04-26 22:50:40 ]
Post subject: 

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()

Author:  Yoko [ 2004-04-27 15:52:32 ]
Post subject: 

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

Author:  tsubasa [ 2004-04-30 18:28:09 ]
Post subject: 

perfect thanks :D

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/