Page 1 of 1

PET MOUNT!

Posted: 2004-12-21 19:50:06
by raiden
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

Posted: 2004-12-21 21:05:20
by AGRS
Good question! :)

Code: Select all

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

Posted: 2004-12-21 21:30:44
by 666Man666
Или так можно

Code: Select all

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

Posted: 2004-12-21 22:45:03
by AGRS
666Man666 wrote:Или так можно

Code: Select all

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


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

Posted: 2004-12-21 23:54:27
by Yoko
theoretically possible, but no really easy way implemented now

Posted: 2004-12-22 08:23:58
by punkesito
in my shard(runuo rc0) this script works

Code: Select all

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

Posted: 2004-12-22 22:30:08
by Yoko
the method iss same for all shards but types may vary

Posted: 2004-12-27 20:33:48
by raiden
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...