Yoko

All sides of Injection
It is currently 2026-03-26 22:02:49

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Mount and unmount
PostPosted: 2011-11-16 21:05:24 
Offline

Joined: 2011-11-16 21:04:11
Posts: 12
Hi, i want to mount/unmount in one single key

Is that possible?


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 21:25:48 
Offline
User avatar

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


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 22:48:22 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
вот еще интересный вариант.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 22:48:40 
Offline

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


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 22:52:36 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
,info then target your horse


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 22:57:36 
Offline

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


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-16 23:28:38 
Offline
User avatar

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


Top
   
 Post subject: Re: Mount and unmount
PostPosted: 2011-11-17 03:01:48 
Offline

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited