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

PET MOUNT!
http://forum.yoko.com.ua/viewtopic.php?f=3&t=2319
Page 1 of 1

Author:  raiden [ 2004-12-21 19:50:06 ]
Post subject:  PET MOUNT!

I need to know if Injection is Able to recognise if a player is on a mount (not self , another one) and if this is possible, how...

Thanks :D

Author:  AGRS [ 2004-12-21 21:05:20 ]
Post subject: 

Good question! :)

Code:
sub main()
  If (UO.GetSerial('self.horse')<>'0x00000000') Then
    UO.Print('I have a horse')
  Else
    UO.Print('I have no horse')
  EndIf
end sub

Author:  666Man666 [ 2004-12-21 21:30:44 ]
Post subject: 

Или так можно

Code:
If UO.ObjAtLayer('Horse') Then
UO.Print("I have a horse")
Else
UO.Print("I have no horse")
EndIf

Author:  AGRS [ 2004-12-21 22:45:03 ]
Post subject: 

666Man666 wrote:
Или так можно

Code:
If UO.ObjAtLayer('Horse') Then
UO.Print("I have a horse")
Else
UO.Print("I have no horse")
EndIf


Ему нужно "not self".

Author:  Yoko [ 2004-12-21 23:54:27 ]
Post subject: 

theoretically possible, but no really easy way implemented now

Author:  punkesito [ 2004-12-22 08:23:58 ]
Post subject: 

in my shard(runuo rc0) this script works
Code:
sub mount()
var c=1
dim a[2]
a[1]=0x3ebc;giant beetle
a[2]=0x3ea1;horse 1
while c <> 3
uo.findtype(a[c],"-1","laststatus")
if uo.findcount() > 0 then
UO.print("mount")
end if
c=c+1
wend
end sub

but need add types of mounts, and for exaple the type of horse is 0x00e4 but the hourse mounted is 0x3ea1(and type change when color of mount change), sorry for my poor english.
pd: if you need i can complete list with all mounts

Author:  Yoko [ 2004-12-22 22:30:08 ]
Post subject: 

the method iss same for all shards but types may vary

Author:  raiden [ 2004-12-27 20:33:48 ]
Post subject: 

i mean.. I'm writing a script to launch bolas on targets, but i nedd that the script checks if the target is or is not on a mount.Because now the script trows bolas also on walking targets...

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