Page 1 of 1

Mount and unmount

Posted: 2011-11-16 21:05:24
by gflip
Hi, i want to mount/unmount in one single key

Is that possible?

Re: Mount and unmount

Posted: 2011-11-16 21:25:48
by ZeroDX
Try this

Code: Select all

sub Mount()
  var id_Horse = '0x12345678'            ;<= ID
  If UO.ObjAtLayer('Horse') then
    UO.UseObject('self')
   else
    UO.UseObject(id_Horse)
  Endif
Endsub

Re: Mount and unmount

Posted: 2011-11-16 22:48:22
by Mirage

Re: Mount and unmount

Posted: 2011-11-16 22:48:40
by gflip
ZeroDX wrote:Try this

Code: Select all

sub Mount()
  var id_Horse = '0x12345678'            ;<= ID
  If UO.ObjAtLayer('Horse') then
    UO.UseObject('self')
   else
    UO.UseObject(id_Horse)
  Endif
Endsub


Sorry i am very noob

How i get the horse ID?

Re: Mount and unmount

Posted: 2011-11-16 22:52:36
by ZeroDX
,info then target your horse

Re: Mount and unmount

Posted: 2011-11-16 22:57:36
by gflip
ZeroDX wrote:,info then target your horse


Cool, it worked

But is this way i have to set the ID everytime i change a horse (is this right?)

Is there a easier way?

Re: Mount and unmount

Posted: 2011-11-16 23:28:38
by ZeroDX
follow this link


This script uses your latest horse
you can remove some of lines

Code: Select all

UO.MoveItem('_0x0F08',1,'lasthorse')
      UO.WarMode(0)
      UO.UseObject('lasthorse')

Re: Mount and unmount

Posted: 2011-11-17 03:01:48
by gflip
ZeroDX wrote:follow this link


This script uses your latest horse
you can remove some of lines

Code: Select all

UO.MoveItem('_0x0F08',1,'lasthorse')
      UO.WarMode(0)
      UO.UseObject('lasthorse')


Thank you, this worked!