Target Item Types/Hotkeys

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Gaargod
Posts: 2
Joined: 2006-03-24 10:15:24

Target Item Types/Hotkeys

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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
Gaargod
Posts: 2
Joined: 2006-03-24 10:15:24

Post by Gaargod »

thanks for reply, Can i type these commands in Hotkeys though?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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
Post Reply