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

Mount/Dismount problem Help plz!
http://forum.yoko.com.ua/viewtopic.php?f=3&t=8189
Page 1 of 1

Author:  Knight1106 [ 2006-07-11 03:34:28 ]
Post subject:  Mount/Dismount problem Help plz!

Why this doesn't wants to work ? i tried other ways too but failed...

Code:
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 ?

Author:  omi4 [ 2006-07-11 08:51:33 ]
Post subject: 

Code:
sub horsa() 
   if not UO.ObjAtLayer('Horse') then
      UO.UseObject('lasthorse')
   else
      UO.UseObject('self')
      UO.WaitTargetObject('lastattack')
      UO.Say('kill')
   endif
end sub

Author:  Knight1106 [ 2006-07-11 17:58:06 ]
Post subject: 

omi4 wrote:
Code:
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 ?

Author:  Nmy [ 2006-07-11 18:16:30 ]
Post subject: 

Code:
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 !

Author:  Knight1106 [ 2006-07-11 18:40:03 ]
Post subject: 

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

Author:  Nmy [ 2006-07-11 18:43:29 ]
Post subject: 

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

Author:  Knight1106 [ 2006-07-11 18:59:51 ]
Post subject: 

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

Author:  omi4 [ 2006-07-11 19:04:29 ]
Post subject: 

Do not forget to include Permit vars loopback on bookmark Main differently long the index on a horse will not hold on.

Author:  Nmy [ 2006-07-11 19:05:12 ]
Post subject: 

ok you need real expert...

EXPERTS :!: :arrow:

Author:  Knight1106 [ 2006-07-11 19:17:38 ]
Post subject: 

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 ?

Author:  Nmy [ 2006-07-11 20:12:11 ]
Post subject: 

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

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