Yoko

All sides of Injection
It is currently 2026-01-27 01:49:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 2006-07-11 03:34:28 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
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 ?


Top
   
 Post subject:
PostPosted: 2006-07-11 08:51:33 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
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


Top
   
 Post subject:
PostPosted: 2006-07-11 17:58:06 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
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 ?


Top
   
 Post subject:
PostPosted: 2006-07-11 18:16:30 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
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 !

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-07-11 18:40:03 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
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...


Top
   
 Post subject:
PostPosted: 2006-07-11 18:43:29 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
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

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-07-11 18:59:51 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
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


Top
   
 Post subject:
PostPosted: 2006-07-11 19:04:29 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
Do not forget to include Permit vars loopback on bookmark Main differently long the index on a horse will not hold on.


Top
   
 Post subject:
PostPosted: 2006-07-11 19:05:12 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
ok you need real expert...

EXPERTS :!: :arrow:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-07-11 19:17:38 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
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 ?


Top
   
 Post subject:
PostPosted: 2006-07-11 20:12:11 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
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 ...

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited