Yoko
http://forum.yoko.com.ua/

Target Item Types/Hotkeys
http://forum.yoko.com.ua/viewtopic.php?f=3&t=7112
Page 1 of 1

Author:  Gaargod [ 2006-03-24 10:23:38 ]
Post subject:  Target Item Types/Hotkeys

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

Author:  Scripts Writer [ 2006-03-24 10:31:51 ]
Post subject: 

Code:
var bomb=' Type of Exp '

uo.Cast('Magic Arrow',bomb)


Arrow to bomb in backpack

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


Cast to rune

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


Equiping

Author:  Gaargod [ 2006-03-24 10:36:25 ]
Post subject: 

thanks for reply, Can i type these commands in Hotkeys though?

Author:  Scripts Writer [ 2006-03-24 11:08:28 ]
Post subject: 

i think, that'll be easier to make 3 scripts with this commands, and join to hottkey their names:

Code:
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:
exec bomb

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/