Code: Select all
sub CtrlX()
var MyHorse
if uo.objatlayer('Horse') then
MyHorse=uo.getserial(uo.objatlayer('Horse'))
uo.useobject('self')
wait(100)
uo.msg('All StaY')
else
uo.useobject(MyHorse)
end if
end subModerators: Murderator+, Murderator
Code: Select all
sub CtrlX()
var MyHorse
if uo.objatlayer('Horse') then
MyHorse=uo.getserial(uo.objatlayer('Horse'))
uo.useobject('self')
wait(100)
uo.msg('All StaY')
else
uo.useobject(MyHorse)
end if
end subCode: Select all
sub horsa()
if not UO.ObjAtLayer('Horse') then
UO.UseObject('lasthorse')
else
UO.UseObject('self')
UO.WaitTargetObject('lastattack')
UO.Say('kill')
endif
end subBut if i use another object while mounted, like a Robe, when i press this macro it will use the robe, is there anyway to fix it ?omi4 wrote:Code: Select all
sub horsa() if not UO.ObjAtLayer('Horse') then UO.UseObject('lasthorse') else UO.UseObject('self') UO.WaitTargetObject('lastattack') UO.Say('kill') endif end sub
Code: Select all
Sub horsa()
if not UO.ObjAtLayer('Horse') then
UO.UseObject(UO.GetSerial('lasthorse'))
else
UO.UseObject('self')
UO.WaitTargetObject('lastattack')
UO.Say('kill')
end if
end subfor me its working great... i can use whatever i want to ... so the problem is you not the .scKnight1106 wrote:Same problem, if i use another item after double clicked the horse and used the script, when i use the macro again it uses the item i used...
But what may i doing Wrong ?NMY wrote:for me its working great... i can use whatever i want to ... so the problem is you not the .scKnight1106 wrote:Same problem, if i use another item after double clicked the horse and used the script, when i use the macro again it uses the item i used...
yes, but only in russian languageKnight1106 wrote:Permit vars loopback solves the problem...
Thanks Omi4
Thanks NMY
Is there any web page that show what each option in the main window does ?