,setreceivingcontainer doesnt work for me

Ask for help

Moderators: Murderator+, Murderator

Post Reply
utternoob
Posts: 24
Joined: 2007-11-17 12:39:26

,setreceivingcontainer doesnt work for me

Post 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?
Driskill
Posts: 39
Joined: 2006-09-14 10:38:08
Contact:

Post by Driskill »

Code: Select all

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



use this command, it'll work.
все что нас не убивает - делает нас крепче!
utternoob
Posts: 24
Joined: 2007-11-17 12:39:26

Post 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"
Driskill
Posts: 39
Joined: 2006-09-14 10:38:08
Contact:

Post by Driskill »

Code: Select all

uo.findtype(type,[color,containerobject/ground/my])
uo.moveitem('finditem',1,bag)
все что нас не убивает - делает нас крепче!
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post 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
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

иностранец будет очень рад такому скрипту;)
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post by Виталь »

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

где накосячил? *)
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post 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


в общем если изменить май на бекпек... то все в принципи цивильно... даже без игнора;)
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post 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

Если не ошибаюсь, без вэйта клиент просто повиснет.
У меня, если забываю в таких случаях вэйт поставить, клиент берет на себя все больше ЦП и очень скоро всему настает полный пц - иногда даже отключить не получается.
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post by Виталь »

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

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

Расскажи про тюнинг findcount *)
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

if uo.findcount()>=1 then
==
if uo.findcount() then
Виталь
Posts: 97
Joined: 2005-08-09 23:16:57
Contact:

Post by Виталь »

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

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