Yoko

All sides of Injection
It is currently 2025-12-19 14:13:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: PET MOUNT!
PostPosted: 2004-12-21 19:50:06 
Offline

Joined: 2004-12-16 21:39:52
Posts: 7
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


Top
   
 Post subject:
PostPosted: 2004-12-21 21:05:20 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
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


Top
   
 Post subject:
PostPosted: 2004-12-21 21:30:44 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Или так можно

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


Top
   
 Post subject:
PostPosted: 2004-12-21 22:45:03 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
666Man666 wrote:
Или так можно

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


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


Top
   
 Post subject:
PostPosted: 2004-12-21 23:54:27 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
theoretically possible, but no really easy way implemented now


Top
   
 Post subject:
PostPosted: 2004-12-22 08:23:58 
Offline

Joined: 2004-10-16 12:30:54
Posts: 46
Location: Argentina
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


Top
   
 Post subject:
PostPosted: 2004-12-22 22:30:08 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
the method iss same for all shards but types may vary


Top
   
 Post subject:
PostPosted: 2004-12-27 20:33:48 
Offline

Joined: 2004-12-16 21:39:52
Posts: 7
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...


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 1 guest


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