Yoko

All sides of Injection
It is currently 2025-12-08 19:36:18

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help With uo.moveitem()
PostPosted: 2007-10-07 13:58:50 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
Code:
sub main() 

DIM bagserial[10];
bagserial[0]=0x71E039FA; ########################
bagserial[1]=0x71EA88E9; ########################
bagserial[2]=0x71EA88E7; ########################
bagserial[3]=0x71EA88EA; ### Id das Bag's     ###
bagserial[4]=0x71EA88E4; ### que estão a sua  ###
bagserial[5]=0x71EA88E6; ### volta.           ###
bagserial[6]=0x71EA88E2; ###                  ###
bagserial[7]=0x71EA88E3; ########################
bagserial[8]=0x71EA88E8; ########################
bagserial[9]=0x58DAD597;
var k;


inicio:
uo.deletejournal()
uo.exec("waitmenu 'O' 'Ferramentas' 'O' 'Machadinho'")
uo.exec("waittargettype 0x1BF2")     ###Lings
uo.exec("usetype 0x1ebc")            ### Ferramenta
wait(3000)
uo.say("10")
wait(1000)
UO.Ongump('withtext', 'Marcar os itens?', '(1') ###Marca o Item
  repeat
   wait(1000)
  until uo.injournal('Voce parou de trabalhar.')
goto contar:

contar:
UO.FindType("0x0F43","-1","my") 
  if UO.FindCount()>0 then
   goto mover:
  endif   
wait(500)
goto inicio:

mover:
for k=0 to 9
 repeat
   UO.FindType("0x0F43","-1","my")     ##ID Machadinho
   uo.moveitem('finditem', '1', 'bagserial[k]')
   wait(100)
    if Uo.InJournal('full') then  ###Verificar a msg qnd a bag tá full.
      next
    endif
 until UO.FindCount() == 0
goto inicio:
end sub


What's wrong with this macro, when I press 'Run Function' it Runs normally, but when come the part mover: the macro don't move the item to the bagserial[k].
If I put the bagserial direct in the place of bagserial[k] it's runs normally.
Somebody can help me with this ?

[]'s


Top
   
 Post subject:
PostPosted: 2007-10-07 14:07:09 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Your script has lot of mistake. Rewrite it or find another one


Top
   
 Post subject:
PostPosted: 2007-10-07 16:43:18 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
Scripts Writer wrote:
Your script has lot of mistake. Rewrite it or find another one


The script runs normally here... O.o'
But I want the change of bagserial ID when happen the 'full' InJournal message.

[]'s


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited