PET MOUNT!

Ask for help

Moderators: Murderator+, Murderator

Post Reply
raiden
Posts: 7
Joined: 2004-12-16 21:39:52

PET MOUNT!

Post 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
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post 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
666Man666
Junior Expert
Posts: 474
Joined: 2004-11-13 00:43:55
Location: Киберзадроцк
Contact:

Post by 666Man666 »

Или так можно

Code: Select all

If UO.ObjAtLayer('Horse') Then
UO.Print("I have a horse")
Else
UO.Print("I have no horse")
EndIf
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post 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".
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

theoretically possible, but no really easy way implemented now
punkesito
Posts: 46
Joined: 2004-10-16 12:30:54
Location: Argentina
Contact:

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

the method iss same for all shards but types may vary
raiden
Posts: 7
Joined: 2004-12-16 21:39:52

Post 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...
Post Reply