Page 1 of 1

PROBLEM WITH WAITTARGETTILE

Posted: 2005-03-11 22:07:44
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

Posted: 2005-03-12 02:25:28
by Edred
Coprse isn't tile! Corpse is object and you need in UO.Waittargetobjecttype()

Posted: 2005-03-12 08:33:30
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...

Posted: 2005-03-12 08:46:14
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

Posted: 2005-03-15 02:54:46
by drowned
i dont know how =/ if anyone knows sumthing about that plz help me... i'll kick my ass

Posted: 2005-03-15 17:48:02
by Edred
All corpses has one type. You can sort it via "quantity".

Posted: 2005-03-15 18:58:02
by Yoko
Edred wrote:All corpses has one type. You can sort it via "quantity".


exactly. uo.[yhlp_GetQuantity]()

Posted: 2005-03-17 15:13:53
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

Posted: 2005-03-17 20:03:42
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

Posted: 2005-03-19 00:40:43
by drowned
but i need to set the x y z of the object =/ if its not possible i cant do what i want. =/

Posted: 2005-03-19 12:51:21
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.