Yoko
http://forum.yoko.com.ua/

PROBLEM WITH WAITTARGETTILE
http://forum.yoko.com.ua/viewtopic.php?f=3&t=3365
Page 1 of 1

Author:  drowned [ 2005-03-11 22:07:44 ]
Post subject:  PROBLEM WITH WAITTARGETTILE

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

Author:  Edred [ 2005-03-12 02:25:28 ]
Post subject: 

Coprse isn't tile! Corpse is object and you need in UO.Waittargetobjecttype()

Author:  drowned [ 2005-03-12 08:33:30 ]
Post subject: 

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

Author:  drowned [ 2005-03-12 08:46:14 ]
Post subject: 

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

Author:  drowned [ 2005-03-15 02:54:46 ]
Post subject: 

i dont know how =/ if anyone knows sumthing about that plz help me... i'll kick my ass

Author:  Edred [ 2005-03-15 17:48:02 ]
Post subject: 

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

Author:  Yoko [ 2005-03-15 18:58:02 ]
Post subject: 

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


exactly. uo.[yhlp_GetQuantity]()

Author:  drowned [ 2005-03-17 15:13:53 ]
Post subject: 

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

Author:  Yoko [ 2005-03-17 20:03:42 ]
Post subject: 

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

Author:  drowned [ 2005-03-19 00:40:43 ]
Post subject: 

but i need to set the x y z of the object =/ if its not possible i cant do what i want. =/

Author:  Edred [ 2005-03-19 12:51:21 ]
Post subject: 

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.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/