Discussion in   Help!   started     10 years ago   June 10, 2014, 10:12:08 PM   by   Crawford

Macro

Crawford
Offline
43 Posts
Topic :   Macro
10 years ago  June 10, 2014, 10:12:08 PM

ARRGGGHHHHH


Ok working on a macro in AssistUO. This macro is supposed to open a bag, take 10 crossbow bolts from a stack, place those in my backpack, mark then as a quest item. This is what I have but not seeming to get it working. Any help would be awesome.


useobject 0x40cc4362
moveitem 0x1bfb
'backpack' 88 112 0
pause 600
waitforcontext 'self' 9 15000
waitfortarget 15000
target! 0x1bfb
waitfortarget 15000



DarkWarrior
Offline
133 Posts
#1 Re :   Macro
10 years ago  June 11, 2014, 02:50:22 AM

Use the object identifier button to give you the item number so you can make the first line more generic. Your telling it to move that specific object, not type.


I can help more tonight when I am home, but play with that. Also you can add 'any' to tell it to use any object of that type.

Meta
Offline
238 Posts
#2 Re :   Macro
10 years ago  June 11, 2014, 12:29:46 PM

useobject -> usetype

moveitem -> movetype

target! -> targettype!

Then for each of these command lines use the object inspector button in the macros tab to retrieve the graphic serial number. Use this number to replace the existing serials you have currently. Also may want to reduce the waitfortarget time outs. I would use 500 instead of 1500.

Crawford
Offline
43 Posts
#3 Re :   Macro
10 years ago  June 16, 2014, 02:37:42 PM

Still not working

spainkevin79
Offline
143 Posts
#4 Re :   Macro
10 years ago  June 16, 2014, 11:30:37 PM

I have had problems moving multiple items from a pack inside my backpack to another bag inside my backpack. If you could keep them in your bank and use a bank crystal you could move them to your pack with 0 problem. You could also set up a recall to a location with a secure and do it that way. Try it and let me know how it goes.

Dable
Offline
34 Posts
#5 Re :   Macro
10 years ago  June 16, 2014, 11:35:12 PM

i dont think its even written properly ? assuming that the code at the top is pretty much what is still being used... but even the moveitem command doesnt even specify how many bolts to move ?
 
anyways, perhaps this might work ? its untested but worth a try... anything in () brackets you must fill in with the appropriate graphic code or serial.
 
useobject (your pouch)
if @findtype '0x1bfb' 'any' '(your pouch)'
  moveitem! 'found' 'backpack' 88 112 0 10
  pause 600
  if @findtype '0x1bfb' 'any' 'backpack' '10'
    waitforcontext 'self' 6 15000
    waitfortarget 15000
    target! 'found'
  endif
else
  sysmsg 'You have no Bolts !' 11
endif
 
 
got home and decided to test it out, it didnt work at first because i forgot the 'any' in the first findtype and the contextmenu is 6 not 9 .. anyway i got it to work and have updated the code for you.

Soaryn
Offline
35 Posts
#6 Re :   Macro
10 years ago  June 17, 2014, 02:41:03 AM

oyou dont need to carry bolts or arrows dude.


Lady Soaryn, Sparkliest of all

TOP4EVO

Meta
Offline
238 Posts
#7 Re :   Macro
10 years ago  June 17, 2014, 09:39:18 AM

Think he's doing a quest.

Tommyboy69
Offline
49 Posts
#8 Re :   Macro
10 years ago  July 04, 2014, 09:39:30 AM

ahhh someone doing the fatal dart?  mmmm }~