PROBLEM WITH WAITTARGETTILE

Ask for help

Moderators: Murderator+, Murderator

Post Reply
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

PROBLEM WITH WAITTARGETTILE

Post by drowned »

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
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

Coprse isn't tile! Corpse is object and you need in UO.Waittargetobjecttype()
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

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...
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

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
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

i dont know how =/ if anyone knows sumthing about that plz help me... i'll kick my ass
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

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

Post by Yoko »

Edred wrote:All corpses has one type. You can sort it via "quantity".


exactly. uo.[yhlp_GetQuantity]()
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

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

Post by Yoko »

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
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

but i need to set the x y z of the object =/ if its not possible i cant do what i want. =/
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

You need in find.

Code: Select all

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: Select all

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


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

Code: Select all

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