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

Mount and unmount
http://forum.yoko.com.ua/viewtopic.php?f=17&t=16814
Page 1 of 1

Author:  gflip [ 2011-11-16 21:05:24 ]
Post subject:  Mount and unmount

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

Is that possible?

Author:  ZeroDX [ 2011-11-16 21:25:48 ]
Post subject:  Re: Mount and unmount

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

Author:  Mirage [ 2011-11-16 22:48:22 ]
Post subject:  Re: Mount and unmount

вот еще интересный вариант.

Author:  gflip [ 2011-11-16 22:48:40 ]
Post subject:  Re: Mount and unmount

ZeroDX wrote:
Try this
Code:
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?

Author:  ZeroDX [ 2011-11-16 22:52:36 ]
Post subject:  Re: Mount and unmount

,info then target your horse

Author:  gflip [ 2011-11-16 22:57:36 ]
Post subject:  Re: Mount and unmount

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?

Author:  ZeroDX [ 2011-11-16 23:28:38 ]
Post subject:  Re: Mount and unmount

follow this link
Mirage wrote:


This script uses your latest horse
you can remove some of lines
Code:
UO.MoveItem('_0x0F08',1,'lasthorse')
      UO.WarMode(0)
      UO.UseObject('lasthorse')

Author:  gflip [ 2011-11-17 03:01:48 ]
Post subject:  Re: Mount and unmount

ZeroDX wrote:
follow this link
Mirage wrote:


This script uses your latest horse
you can remove some of lines
Code:
UO.MoveItem('_0x0F08',1,'lasthorse')
      UO.WarMode(0)
      UO.UseObject('lasthorse')


Thank you, this worked!

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