Mount/Dismount problem Help plz!

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Mount/Dismount problem Help plz!

Post 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 ?
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post 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
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post 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 ?
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post 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 !
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post 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...
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post 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
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post 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
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

Do not forget to include Permit vars loopback on bookmark Main differently long the index on a horse will not hold on.
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

ok you need real expert...

EXPERTS :!: :arrow:
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post 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 ?
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

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