|
Syntax: ,moveitem object [quantity containerobject/ground [x y z]]
none uo.moveitem(object,[quantity,containerobject/ground,[x,y,z]])
Theme: Work with objects. Keywords: command, uoscript, utility, objhandling
Move object "object". Can work both as grab and drop. Don't require targeting, which rise reliability of script.
Quantity "quantity" - if given as 0 or not given, then all stack will be moved.
Third parameter can be "ground" (to drop on ground), or container-object (to move item to this container). If continer - is another item stack, then moved item will unite with this stack. If container - is another NPC, then item will be given to this NPC (if player - trade gump will appear, if, for example, animal - he(she) will try to eat item, or place it in own packpack)
Coordinates mean absolute or relative world coordinates, if "container" is "ground". If "container" - is container-object, then coordinates - it's exact spot in this container (counting from upper left corner). If not given, coordinates considered as 0
Default conatainer is player's backpack.
You can't provide container, without providing quantity.
Examples:
uo.moveitem("finditem") - will move item you just found with uo.findtype() to your backpack. Just as uo.grab().
uo.moveitem("0x0f18a35b","-1","ground") - will move item (all items, if it's stack) with serial number 0x0f18a35b to ground right under you
uo.moveitem(obj,"10","finditem","10","10","1") - will move some object (obj - it's variable (var obj) and it's value - is serial (string like "0x12345678")) in quantity of 10 (if it's stack) to container you just found to upper left corner of this container.
_________________ Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
|