Yoko

All sides of Injection
It is currently 2025-12-26 01:43:31

All times are UTC+02:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: 2008-03-07 22:29:03 
Offline

Joined: 2007-11-17 12:39:26
Posts: 24
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?


Top
   
 Post subject:
PostPosted: 2008-03-08 11:52:54 
Offline
User avatar

Joined: 2006-09-14 10:38:08
Posts: 39
Code:
var chest='id chest'
#####
uo.moveitem('needed item','quantity','chest')
#####



use this command, it'll work.

_________________
все что нас не убивает - делает нас крепче!


Top
   
 Post subject:
PostPosted: 2008-03-08 14:22:37 
Offline

Joined: 2007-11-17 12:39:26
Posts: 24
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"


Top
   
 Post subject:
PostPosted: 2008-03-08 14:26:44 
Offline
User avatar

Joined: 2006-09-14 10:38:08
Posts: 39
Code:
uo.findtype(type,[color,containerobject/ground/my])
uo.moveitem('finditem',1,bag)

_________________
все что нас не убивает - делает нас крепче!


Top
   
 Post subject:
PostPosted: 2008-03-08 18:24:23 
Offline
User avatar

Joined: 2005-08-09 23:16:57
Posts: 97
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


Top
   
 Post subject:
PostPosted: 2008-03-08 22:47:58 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
иностранец будет очень рад такому скрипту;)


Top
   
 Post subject:
PostPosted: 2008-03-08 22:50:37 
Offline
User avatar

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

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


Top
   
 Post subject:
PostPosted: 2008-03-08 23:01:58 
Offline
Expert!
User avatar

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


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


Top
   
 Post subject:
PostPosted: 2008-03-09 15:27:59 
Offline
User avatar

Joined: 2005-08-09 23:16:57
Posts: 97
Grin wrote:
Code:
while 1 # вечный цикл

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

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

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

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

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


Top
   
 Post subject:
PostPosted: 2008-03-09 15:47:52 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
основное замечание только в 'my'
от сюда уже зависет надо ли ignore или нет


Top
   
 Post subject:
PostPosted: 2008-03-09 15:51:29 
Offline
User avatar

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

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

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


Top
   
 Post subject:
PostPosted: 2008-03-09 15:53:38 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
if uo.findcount()>=1 then
==
if uo.findcount() then


Top
   
 Post subject:
PostPosted: 2008-03-09 16:00:54 
Offline
User avatar

Joined: 2005-08-09 23:16:57
Posts: 97
Grin wrote:
if uo.findcount()>=1 then
==
if uo.findcount() then

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited