Mount and unmount

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Mount and unmount

Post by gflip »

Hi, i want to mount/unmount in one single key

Is that possible?
ZeroDX
Posts: 718
Joined: 2006-12-08 10:51:50
Location: Москва
Contact:

Re: Mount and unmount

Post 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
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Re: Mount and unmount

Post 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?
ZeroDX
Posts: 718
Joined: 2006-12-08 10:51:50
Location: Москва
Contact:

Re: Mount and unmount

Post by ZeroDX »

,info then target your horse
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Re: Mount and unmount

Post 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?
ZeroDX
Posts: 718
Joined: 2006-12-08 10:51:50
Location: Москва
Contact:

Re: Mount and unmount

Post 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')
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Re: Mount and unmount

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