drop on ground what I'm holding or from backpack

Alucard

Grandmaster
help with macro ... how move item by alias ?
unsetalias 'Garbage_drop'
pause 200
headmsg 'Select Garbage'
promptalias 'Garbage_drop'

----movetype! 'Garbage_drop' 'backpack' 'ground' 0 1 0
 

Young Star

Grandmaster
Also make sure the tile you want to drop it on is able to have items dropped onto it, ie no walls, trees, etc.
 

Alucard

Grandmaster
dont use "type" when referencing an item that has been given an alias. use moveobject 'alias'
moveobject 'alias'
moveobject command not exist in UOSteam =(
moveitem not work....

movetypeoffset 0xeed 'backpack' 'ground' 0 1 0 0
its work with type

but in UOSteam is not provided, the movement of the object by alias ? =(
 
Last edited:

Young Star

Grandmaster
Sorry. This will work:

Code:
unsetalias 'Garbage_drop'

pause 200

headmsg 'Select Garbage'

promptalias 'Garbage_drop'


moveitemoffset Garbage_drop 'ground' 0 1 0

Don't put the alias in quotes when referencing it in the moveitemoffset
 

Young Star

Grandmaster
how do you make it where it does it by itself... after the first selection
Depends if it is specific items or if it can be all items of the same type. If you take one item from a stack and get the graphic ID it will still pull one item from a stack if you want. Or you can drop the whole stack depends what you set it to do. For example I have this one made to drop bandaids behind me no matter which direction i am facing. you just need to swap in the graphic ID in the first line. If you want it to drop the whole stack you can delete the last 1 in each of the moveitemoffset lines. If you want it to find any item no matter if it is nested in another bag, take off the 0 at the end of the first line. Currently it is set to only look for the item in your main backpack and drop just 1.

Code:
if findtype 0xe21 any backpack any 0
  setalias 'drop' found
  if direction == 4
    moveitemoffset drop 'ground' 0 -1 0 1
  elseif direction == 5
    moveitemoffset drop 'ground' 1 -1 0 1
  elseif direction == 6
    moveitemoffset drop 'ground' 1 0 0 1
  elseif direction == 7
    moveitemoffset drop  'ground' 1 1 0 1
  elseif direction == 0
    moveitemoffset drop 'ground' 0 1 0 1
  elseif direction == 1
    moveitemoffset drop 'ground' -1 1 0 1
  elseif direction == 2
    moveitemoffset drop 'ground' -1 0 0 1
  elseif direction == 3
    moveitemoffset drop 'ground' -1 -1 0 1
  endif
endif
 
Top