add to stack?

Requests of new features and reports on bugs needs to be fixed

Moderators: Murderator+, Murderator

Post Reply
WeedDevil
Posts: 32
Joined: 2004-04-06 12:13:49

add to stack?

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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")))
WeedDevil
Posts: 32
Joined: 2004-04-06 12:13:49

Post by WeedDevil »

ahh i see.. great
thanks yoko that was exactly what i needed...
tsubasa
Posts: 2
Joined: 2004-04-26 20:36:11

Post 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...
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post 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()
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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
tsubasa
Posts: 2
Joined: 2004-04-26 20:36:11

Post by tsubasa »

perfect thanks :D
Post Reply