Yoko

All sides of Injection
It is currently 2026-02-19 11:37:54

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 2005-03-11 22:07:44 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
i need to do this...
i use waittargettile(8198 x y z) but diferent types of tiles use the same number 8198 and when i want to use on a specific objet that uses always in the same, i try to cut a horse corpse that is 8198 and it cuts human corpse that is 8198 too... ex: player corpse = 8198, horse corpse = 8198
i need to use waittargettile but use something to says thats is a horse corpse or a human corpse or a dragon corpse... can i do that using injection or irw or asm???
help me plz


Top
   
 Post subject:
PostPosted: 2005-03-12 02:25:28 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Coprse isn't tile! Corpse is object and you need in UO.Waittargetobjecttype()


Top
   
 Post subject:
PostPosted: 2005-03-12 08:33:30 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
i can use it as a tile... its number is 8198 and that works... but always in human corpses... i need to use in specific corpse like a dragon corpse... and i need a function that i can tell x y z axis...
i heard about i can do that with ASM...


Top
   
 Post subject:
PostPosted: 2005-03-12 08:46:14 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
theres any option in asm or injection that i can use something like waittargetobject with x y z axis, or a way to tell what corpse tile it is... caus there only one... 8198 and always human corpse... i need to use 8198 but telling it is a horse corpse... or using object... but with x y z axis


Top
   
 Post subject:
PostPosted: 2005-03-15 02:54:46 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
i dont know how =/ if anyone knows sumthing about that plz help me... i'll kick my ass


Top
   
 Post subject:
PostPosted: 2005-03-15 17:48:02 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
All corpses has one type. You can sort it via "quantity".


Top
   
 Post subject:
PostPosted: 2005-03-15 18:58:02 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
Edred wrote:
All corpses has one type. You can sort it via "quantity".


exactly. uo.[yhlp_GetQuantity]()


Top
   
 Post subject:
PostPosted: 2005-03-17 15:13:53 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
and how i use it with waittargettile?

cus i need, waittargettile "corpsetile" x y z , and then use "dagger", but i want to cut horse corpses... when i put the corpse tile thats the same of horse corpse and it always try to cut human corpses... can i do that with quantity? how?
thanx


Top
   
 Post subject:
PostPosted: 2005-03-17 20:03:42 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
you DO NOT cutting ground tiles. you cutting OBJECTS.

waittargetobject ZZZ;usetype knife

if you need, check out quantity parameter using ,info of different corpses, you will see difference


Top
   
 Post subject:
PostPosted: 2005-03-19 00:40:43 
Offline

Joined: 2005-03-06 02:57:06
Posts: 17
but i need to set the x y z of the object =/ if its not possible i cant do what i want. =/


Top
   
 Post subject:
PostPosted: 2005-03-19 12:51:21 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
You need in find.

Code:
UO.Findtype( 'type of corpse', '-1', '1' ) - second argument is color ('-1' - any), third argument is place ('1' - ground ).


After it, check result of find. UO.FindCount() return count of finding object.

Code:
If UO.FindCount() > 0 Then
; I found it!
...


You can use finding object via 'finditem'. For example:

Code:
If UO.GetQuantity( 'finditem' ) == 'quantity of dragon corpse' Then
   UO.WaitTargetObject( 'finditem' )
   UO.UseType( 'type of knife in your pack')
   wait(500)
   ... you need in write code for loot ...
   UO.Ignore( ' finditem' )
Else
   UO.Ignore( 'finditem' )
Endif


UO.Ignore( 'object' ) is function for ignore this object in next find.

Not forget use UO.IgnoreReset() in end of script for clear list of ignore.


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