| Yoko http://forum.yoko.com.ua/ |
|
| how can i? http://forum.yoko.com.ua/viewtopic.php?f=1&t=600 |
Page 1 of 1 |
| Author: | Spirito [ 2004-06-18 20:14:59 ] |
| Post subject: | how can i? |
get coords x and y of an item on screen for move after with drag my problem is: i will steal an item and after i will move the item in backpack of victim in a specified position for resteal with uo.lclik thx very much! |
|
| Author: | Yoko [ 2004-06-18 21:42:23 ] |
| Post subject: | |
the method you using is not appreciated by injection logics. the power of injection in direct item manipulation without mouse clicks. transfer of item from place to place provided by ,moveitem command targeting items provided by waittarget* set of commands e.t.c for screen positioning use EasyUO (www.easyuo.com) programm, not injection |
|
| Author: | Spirito [ 2004-06-18 21:48:33 ] |
| Post subject: | |
thx good Yoko.. i post my macro.. Code: sub main() how can i use moveitem to move iron in my backpack to another backpack? |
|
| Author: | Yoko [ 2004-06-18 22:07:14 ] |
| Post subject: | |
moveitem <object> <quantity> <target_container> you already have examples in your script, the only thing use other's backpack serial, not word "backpack" (this is predefined object of SELF backpack) |
|
| Author: | Spirito [ 2004-06-18 22:24:57 ] |
| Post subject: | |
moveitem <object> <quantity> <target_container> object is objecttype of item? target_container is ID (serial) of backpack? |
|
| Author: | Necr0Potenc3 [ 2004-06-19 00:03:54 ] |
| Post subject: | |
Spirito: yeap |
|
| Author: | Spirito [ 2004-06-19 03:04:44 ] |
| Post subject: | |
yeap = yes? sorry but i'm italien.. |
|
| Author: | Spirito [ 2004-06-19 03:23:46 ] |
| Post subject: | |
uo.exec("moveitem 0x1BF2 4 0x45EC3FEF") 0x1BF2 = objecttype IRON 0x45EC3FEF = serial backpack victim message is: You can not pick up that ??? |
|
| Author: | Lord Ruslan Nightmare [ 2004-06-19 08:33:14 ] |
| Post subject: | |
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. |
|
| Author: | Yoko [ 2004-06-19 09:18:35 ] |
| Post subject: | |
Spirito wrote: moveitem <object> <quantity> <target_container>
object is objecttype of item? object is a object. (serial of it for example). to convert type to serial use ,findtype command |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|