Anything and all.
Moderators: Murderator+, Murderator
-
Optical
- Posts: 86
- Joined: 2004-11-02 23:52:47
Post
by Optical »
В последнее время перестал работать перенос в контейнеры.
Вот, пытаюсь перенести из контейнера в пак, пишет инвалид обжект
Code: Select all
<...>
CheckLag()
uo.print('Unload loot...')
uo.useobject('backpack')
wait(1000)
uo.useobject(Cont)
uo.findtype('0x0F0E','0x0388',Cont)
UO.Grab('1','finditem','backpack')
wait(1000)
<...>
Может это из-за "finddistance" или из-за "uo.SetReceivingContainer"
-
666Man666
- Junior Expert
- Posts: 474
- Joined: 2004-11-13 00:43:55
- Location: Киберзадроцк
-
Contact:
Post
by 666Man666 »
Попробуй так мож получится
Code: Select all
<...>
CheckLag()
UO.print('Unload loot...')
UO.useobject('backpack')
UO.SetReceivingContainer(backpack)
UO.useobject(Cont)
wait(1000)
UO.findtype('0x0F0E','0x0388',Cont)
If UO.GetQuantity('finditem') > 0 Then
UO.Grab('0','finditem')
wait(1500)
Else
UO.print('Not Loot!... Go away nOOb')
EndIf
UO.UnSetReceivingContainer()
<...>
-
Optical
- Posts: 86
- Joined: 2004-11-02 23:52:47
Post
by Optical »
Хм, заработало
А как таким же способом с земли в контейнер? %)
Так?
Code: Select all
UO.UnSetReceivingContainer(Cont)
wait(4000)
uo.findtype('0x20F6',-1,'ground')
uo.Grab('finditem')
UO.UnSetReceivingContainer()
-
Sfagnum
- Expert!
- Posts: 1284
- Joined: 2004-07-04 00:14:58
-
Contact:
Post
by Sfagnum »
Optical wrote:Code: Select all
UO.UnSetReceivingContainer()
wait(4000)
uo.findtype('0x20F6',-1,'ground')
uo.Grab('0','finditem')
нет так
-
Optical
- Posts: 86
- Joined: 2004-11-02 23:52:47
Post
by Optical »
Sfagnum wrote:Optical wrote:Code: Select all
UO.UnSetReceivingContainer()
wait(4000)
uo.findtype('0x20F6',-1,'ground')
uo.Grab('0','finditem')
нет так
м? а как он узнает куды кидать?
-
AGRS
- Expert!
- Posts: 1007
- Joined: 2004-04-04 21:40:09
-
Contact:
Post
by AGRS »
Optical wrote:Sfagnum wrote:Optical wrote:Code: Select all
UO.UnSetReceivingContainer()
wait(4000)
uo.findtype('0x20F6',-1,'ground')
uo.Grab('0','finditem')
нет так
м? а как он узнает куды кидать?
Наверное смотрит в переменную, которую UnSetReceivingContainer() сбрасывает.

-
Yoko
- Site Admin
- Posts: 1964
- Joined: 2004-04-03 16:49:38
-
Contact:
Post
by Yoko »
[yhlp_moveitem]