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

FindType видит, но "you can't see the target"
http://forum.yoko.com.ua/viewtopic.php?f=20&t=16895
Page 1 of 1

Author:  Nearga [ 2012-02-10 21:27:31 ]
Post subject:  FindType видит, но "you can't see the target"

Доброго времени суток.

Правлю код тейлоринга, клепаю повязку на тело (Sash).
Создается без проблем, но ножницами резаться не хочет. А точней - находиться.

Код резки:
Code:
*****

UO.DeleteJournal()
   while not UO.InJournal("failed") and not UO.InJournal("You put")
     checklag()
   wend


    if uo.InJournal('put') then
      uo.FindType('0x1541','-1','backpack')
      while uo.FindCount()
         uo.FindType('0x1541','-1','backpack')
         uo.WaitTargetObject('finditem')
         uo.UseObject(0x0f9e)
         wait(750)
      wend
    end if


результат:
Image

Author:  Mirage [ 2012-02-10 23:02:22 ]
Post subject:  Re: FindType видит, но "you can't see the target"

uo.UseObject(0x0f9e)

uo.UseObject('ID объекта') ; 0x1232456789
uo.usetype(TYPE предмета) ; 0x1234

почувствуйте разницу ;)

ps кавычки не забываем.

Author:  Nearga [ 2012-02-11 00:54:30 ]
Post subject:  Re: FindType видит, но "you can't see the target"

Ощутил, спасибо - так и думал, что в мелочи дело :)

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