Yoko

All sides of Injection
It is currently 2024-03-29 11:25:48

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: add to stack?
PostPosted: 2004-04-06 16:11:55 
Offline

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


Top
   
 Post subject:
PostPosted: 2004-04-06 16:51:30 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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")))


Top
   
 Post subject:
PostPosted: 2004-04-06 16:58:18 
Offline

Joined: 2004-04-06 12:13:49
Posts: 32
ahh i see.. great
thanks yoko that was exactly what i needed...


Top
   
 Post subject:
PostPosted: 2004-04-26 20:37:21 
Offline

Joined: 2004-04-26 20:36:11
Posts: 2
i don't get where to put the coordinates tho, or how to tell that "receiver_pile" is at coord x,y,z...


Top
   
 Post subject:
PostPosted: 2004-04-26 22:50:40 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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()

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-04-27 15:52:32 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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


Top
   
 Post subject:
PostPosted: 2004-04-30 18:28:09 
Offline

Joined: 2004-04-26 20:36:11
Posts: 2
perfect thanks :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited