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

,setreceivingcontainer doesnt work for me
http://forum.yoko.com.ua/viewtopic.php?f=3&t=13346
Page 1 of 1

Author:  utternoob [ 2008-03-07 22:29:03 ]
Post subject:  ,setreceivingcontainer doesnt work for me

hello,

anyone know what may cause ,setreceivingcontainer to NOT work? im macroing carpentry, and want all my items that i make to go into bag so i can throw it away easily when im done, but when i use that command and target a bag nothing happens. it used to work years ago but now it doesnt :S anyone know what might be wrong?

Author:  Driskill [ 2008-03-08 11:52:54 ]
Post subject: 

Code:
var chest='id chest'
#####
uo.moveitem('needed item','quantity','chest')
#####



use this command, it'll work.

Author:  utternoob [ 2008-03-08 14:22:37 ]
Post subject: 

Driskill wrote:
Code:
var chest='id chest'
#####
uo.moveitem('[b]needed item'[/b],'quantity','chest')
#####



use this command, it'll work.


it will only move objects, not types, so it will move 1 item and then stop...

ie if i try to make it like this:

Code:
var bag='0x400D83A2'
sub movetobag()
while 1
 uo.moveitem('0x13B3','1','bag')
 wait(5000)
wend
end sub


it says "cant pickup item"

Author:  Driskill [ 2008-03-08 14:26:44 ]
Post subject: 

Code:
uo.findtype(type,[color,containerobject/ground/my])
uo.moveitem('finditem',1,bag)

Author:  Виталь [ 2008-03-08 18:24:23 ]
Post subject: 

Code:
var bag = '0x400D83A2'

while 1
   uo.findtype('0x13B3',1,'my')
   if uo.findcount()>=1 then
      checklag()
      uo.moveitem('finditem',1,bag)
   endif
   wait(5000)
wend

Author:  Grin [ 2008-03-08 22:47:58 ]
Post subject: 

иностранец будет очень рад такому скрипту;)

Author:  Виталь [ 2008-03-08 22:50:37 ]
Post subject: 

Grin wrote:
иностранец будет очень рад такому скрипту;)

где накосячил? *)

Author:  Grin [ 2008-03-08 23:01:58 ]
Post subject: 

Code:
var bag = '0x400D83A2' 

while 1 # вечный цикл
   uo.findtype('0x13B3',1,'my') #ищет везде и в подсумках тоже... что будет если bag унего в сумке?
   if uo.findcount()>=1 then #тюнинг можно сделать
      checklag() #нах не надо;)
      uo.moveitem('finditem',1,bag)
   endif
   wait(5000) #уж можно было бы и за игнорить тогда нах ищем везде руду;)
wend


в общем если изменить май на бекпек... то все в принципи цивильно... даже без игнора;)

Author:  Виталь [ 2008-03-09 15:27:59 ]
Post subject: 

Grin wrote:
Code:
while 1 # вечный цикл

Он так и хотел.

Grin wrote:
Code:
if uo.findcount()>=1 then #тюнинг можно сделать

Расскажите *)

Grin wrote:
Code:
wait(5000) #уж можно было бы и за игнорить тогда нах ищем везде руду;)
wend

Если не ошибаюсь, без вэйта клиент просто повиснет.
У меня, если забываю в таких случаях вэйт поставить, клиент берет на себя все больше ЦП и очень скоро всему настает полный пц - иногда даже отключить не получается.

Author:  Grin [ 2008-03-09 15:47:52 ]
Post subject: 

основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет

Author:  Виталь [ 2008-03-09 15:51:29 ]
Post subject: 

Grin wrote:
основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет

Ну это дело случая. Уверен, этому парню исправить две буквы - труда не составит.

Расскажи про тюнинг findcount *)

Author:  Grin [ 2008-03-09 15:53:38 ]
Post subject: 

if uo.findcount()>=1 then
==
if uo.findcount() then

Author:  Виталь [ 2008-03-09 16:00:54 ]
Post subject: 

Grin wrote:
if uo.findcount()>=1 then
==
if uo.findcount() then

ыыыы, тюнинг! тюнинг - это у меня *)
А у тебя просто рациональнее. Я и забыл, что можно без этого.

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