Code:
uo.drop([quantity],[X,Y,Z],[object])
Code:
sub seno()
var x, y
x=uo.getX('laststatus')
y=uo.getY('laststatus')
var i,Exit
DIM seno[3]
seno[0]=0x0F36 ; #Bse 3 tipa sena
seno[1]=0x100C ;#-\\-\\-\\-\\-\\-
seno[2]=0x100D ;#-\\-\\-\\-\\-\\-
For i=0 to 2
Exit=0
uo.FindType(seno[i],'-1','backpack')
uo.Drop('1', x-1, y, 0, 'finditem')
wait(3)
next
uo.FindType(seno[i],'-1','backpack')
uo.Drop('1', x+1, y, 0, 'finditem')
endsub
Code:
uo.findtype(musor,'-1','2')
if uo.findcount() then
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)-1),0,"finditem")
endif
Code:
UO.FindType(T,C,'backpack')
If C < 0 Then
C = UO.GetColor('finditem')
endif
Var b = UO.GetSerial('finditem')
UO.FindType(T,C,'ground')
Var g = UO.GetSerial('finditem')
UO.MoveItem(b, '0', g,str(uo.getx(g)),str(uo.gety(g)),'0')
Wait(500)
Code:
uo.moveitem(object,[quantity,containerobject/ground,[x,y,z]])
it's like
Code:
uo.moveitem('WhatToMove','how much','Where',you can setX,Y,Z)
'WhatToMove' - for example "finditem"
'how much' - "15"
'where' - "backpack" ; "0x1234567"(serial) ; "ground"
you can set X,Y,Z - remember if your setting X,Y,Z you must write all 3 parametrs, Z cordinate always is 0 so you can write just 0 or if you need to move something up or down you can set STR or direct number, they are always numbers and without "" but you can get numbers with STR and its no different
so for example x=458 you can write STR(uo.getx()) if you are standing on x=458 its like now x = STR(uo.getX())
if you have uo.getX() without anything - default its your character cordinates but you can get X from almoust anything like
uo.getX('serial')
uo.getX('self')
uo.getX('object')
Objects: lastobject ; lasttarget ; backpack ; lastcontainer ; laststatus ; lastattack ; lastequip ; lasthorse ; lastcorpse ; finditem ; self ;
maybe you will also need Track World Items
so the very simple example
uo.findtype('0xtype') - it will search for any item with this type in your characters backpack
Code:
uo.findtype('0xtype')
if uo.findcount() then
uo.moveitem( "finditem" , "all" , "ground" , STR(uo.getX()) , STR(uo.getY()) , 0 )