Page 1 of 1

Target Item Types/Hotkeys

Posted: 2006-03-24 10:23:38
by Gaargod
Hello! im new here, Iv just recently installed injection and got it to work. I have a couple of questions regarding what commands target item types, etc. These are the things i want to work:

- Cast Magic Arrow on any Explosion pot in my backpack

- Cast Gate Travel on any Recall rune in my backpack

and finally

- To pick up a weapon of that itemtype in my backpack

Please help.
Thanks

Posted: 2006-03-24 10:31:51
by Scripts Writer

Code: Select all

var bomb=' Type of Exp '

uo.Cast('Magic Arrow',bomb)


Arrow to bomb in backpack

Code: Select all

UO.WaitTargetObject(ID of Rune) 
UO.Cast('Recal') ; Gate Travell


Cast to rune

Code: Select all

Var Svord=' ' ;Type of weapon 
Var Shield='' ;Type of shield
UO.Equipt('Lhand',Shield)
wait(1000)
UO.Equipt('Rhand',Svord)


Equiping

Posted: 2006-03-24 10:36:25
by Gaargod
thanks for reply, Can i type these commands in Hotkeys though?

Posted: 2006-03-24 11:08:28
by Scripts Writer
i think, that'll be easier to make 3 scripts with this commands, and join to hottkey their names:

Code: Select all

sub bomb()
VAR bomb=' '
uo.FindType(bomb,' colour ','backpack')
 if uo.Count('finditem') > 0 then
 uo.Cast('Magic Arrow',bomb)
 end if
end sub


to hotkey:

Code: Select all

exec bomb