Page 1 of 1
Mount/Dismount problem Help plz!
Posted: 2006-07-11 03:34:28
by Knight1106
Why this doesn't wants to work ? i tried other ways too but failed...
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 sub
Can somebody post a solution for what i'm trying to do ?
Posted: 2006-07-11 08:51:33
by omi4
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
Posted: 2006-07-11 17:58:06
by Knight1106
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
But 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 ?
Posted: 2006-07-11 18:16:30
by Nmy
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 sub
should work !
Posted: 2006-07-11 18:40:03
by Knight1106
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...
Posted: 2006-07-11 18:43:29
by Nmy
Knight1106 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...
for me its working great... i can use whatever i want to ... so the problem is you not the .sc
Posted: 2006-07-11 18:59:51
by Knight1106
NMY wrote:Knight1106 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...
for me its working great... i can use whatever i want to ... so the problem is you not the .sc
But what may i doing Wrong ?
I'm doing this:
>Use the horse double clicking it ; to set the lasthorse
>press the macro key ; my character demount from the horse and say all stay
>Double click a robe ; to teste the problem
>Press The macro key again ; my character mount the horse
>Press the macro key again ; my character desmount
>Press again ; My character uses the robe instead of mounting the horse
I don't know my injection's version but in the main window is writed:
YokoInjection 505.18 VeNdOr
Posted: 2006-07-11 19:04:29
by omi4
Do not forget to include Permit vars loopback on bookmark Main differently long the index on a horse will not hold on.
Posted: 2006-07-11 19:05:12
by Nmy
ok you need real expert...
EXPERTS
Posted: 2006-07-11 19:17:38
by Knight1106
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 ?
Posted: 2006-07-11 20:12:11
by Nmy
Knight1106 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 ?
yes, but only in russian language
what I have in main window on:
*Flush log
*Verbose...
*Tracker
*Corpses autoopen
*Undead
*Target XYZ
*Unset
*AntiCrash
*No client msg ...
*Permit...
*Version
don't know about you but its fine with me ...