Page 1 of 1

,setreceivingcontainer doesnt work for me

Posted: 2008-03-07 22:29:03
by utternoob
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?

Posted: 2008-03-08 11:52:54
by Driskill

Code: Select all

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



use this command, it'll work.

Posted: 2008-03-08 14:22:37
by utternoob
Driskill wrote:

Code: Select all

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: Select all

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


it says "cant pickup item"

Posted: 2008-03-08 14:26:44
by Driskill

Code: Select all

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

Posted: 2008-03-08 18:24:23
by Виталь

Code: Select all

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

Posted: 2008-03-08 22:47:58
by Grin
иностранец будет очень рад такому скрипту;)

Posted: 2008-03-08 22:50:37
by Виталь
Grin wrote:иностранец будет очень рад такому скрипту;)

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

Posted: 2008-03-08 23:01:58
by Grin

Code: Select all

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


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

Posted: 2008-03-09 15:27:59
by Виталь
Grin wrote:

Code: Select all

while 1 # вечный цикл

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

Grin wrote:

Code: Select all

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

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

Grin wrote:

Code: Select all

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

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

Posted: 2008-03-09 15:47:52
by Grin
основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет

Posted: 2008-03-09 15:51:29
by Виталь
Grin wrote:основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет

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

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

Posted: 2008-03-09 15:53:38
by Grin
if uo.findcount()>=1 then
==
if uo.findcount() then

Posted: 2008-03-09 16:00:54
by Виталь
Grin wrote:if uo.findcount()>=1 then
==
if uo.findcount() then

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