Yoko

All sides of Injection
It is currently 2025-12-03 03:15:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: опять же лут..
PostPosted: 2007-11-22 17:37:41 
Offline

Joined: 2006-02-04 10:15:04
Posts: 6
взял с форума..
sub Loot()
VAR i,Exit
DIM Loot[24]


Loot[0]=0x1B76 ;shit
Loot[1]=0x1415 ;pyzo
Loot[2]=0x1411 ;nogi
Loot[3]=0x1410 ;ple4u
Loot[4]=0x1414 ;pyku
Loot[5]=0x1413 ;gorget
Loot[6]=0x1412 ;shlem
Loot[7]=0x13B9 ;viking
Loot[8]=0x13FA ;topor1
Loot[9]=0x143E ;helbeard
Loot[10]=0x0E87 ;pithfork
Loot[11]=0x1086 ;bracelet
Loot[12]=0x13B1 ;lyk
Loot[13]=0x0F0E ;helki
Loot[14]=0x0F0E ;mana
Loot[15]=0x0F0E ;stamina
Loot[16]=0x0F0E ;inviz
Loot[17]=0x1F5F ;FS
Loot[18]=0x1F52 ;paral
Loot[19]=0x0EED ;GP
loot[21]=0x1416 ;pyzo
loot[22]=0x1418 ;pyku
loot[23]=0x1B77 ;shit


UO.SetReceivingContainer('0x401B5E11') ;ID backpacka

For i=0 to 23
Exit=0
repeat
UO.FindType(Loot[i],-1,'lastcontainer')
if UO.GetQuantity('finditem') then
UO.Grab('0','finditem')
wait(100)
Else
Exit=1
endif
until Exit==1 OR uo.injournal("loot")
Next
UO.UnSetReceivingContainer()
end sub


но вот в строке if UO.GetQuantity('finditem') then пишет рантайм еррор..
в чём проблема?


Top
   
 Post subject:
PostPosted: 2007-11-22 18:13:23 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Правильно элементы массива задай все с одинаковым именем и кол-вом элементов


Top
   
 Post subject:
PostPosted: 2007-11-29 18:22:47 
Offline

Joined: 2006-02-04 10:15:04
Posts: 6
объясни нормальным языком.. гед и чё поменять надо плз)


Top
   
 Post subject:
PostPosted: 2007-11-30 17:48:32 
Offline

Joined: 2007-05-06 15:00:17
Posts: 15
Попробуй вместо
if UO.GetQuantity('finditem') then
написать
if uo.FindCount() then

и ещё Loot[0]=0x1B76 ;shit и все остальные элементы
замени на Loot[0]='0x1B76' ;shit


Top
   
 Post subject:
PostPosted: 2007-11-30 18:44:03 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
mskalexander wrote:
Попробуй вместо
if UO.GetQuantity('finditem') then
написать
if uo.FindCount() then

и ещё Loot[0]=0x1B76 ;shit и все остальные элементы
замени на Loot[0]='0x1B76' ;shit


Я написал что надо сделать,- если вы не понимаете о чём речь, то зачем давать советы лишь запутывающие автора?


Top
   
 Post subject:
PostPosted: 2007-12-02 12:21:24 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
Вот проверь
Code:
sub Loot() 
 VAR i,Exit
  DIM Loot[23]
   Loot[0]=0x1B76 ;shit
   Loot[1]=0x1415 ;pyzo
   Loot[2]=0x1411 ;nogi
   Loot[3]=0x1410 ;ple4u
   Loot[4]=0x1414 ;pyku
   Loot[5]=0x1413 ;gorget
   Loot[6]=0x1412 ;shlem
   Loot[7]=0x13B9 ;viking
   Loot[8]=0x13FA ;topor1
   Loot[9]=0x143E ;helbeard
   Loot[10]=0x0E87 ;pithfork
   Loot[11]=0x1086 ;bracelet
   Loot[12]=0x13B1 ;lyk
   Loot[13]=0x0F0E ;helki
   Loot[14]=0x0F0E ;mana
   Loot[15]=0x0F0E ;stamina
   Loot[16]=0x0F0E ;inviz
   Loot[17]=0x1F5F ;FS
   Loot[18]=0x1F52 ;paral
   Loot[19]=0x0EED ;GP
   Loot[20]=0x1416 ;pyzo
   Loot[21]=0x1418 ;pyku
   Loot[22]=0x1B77 ;shit
  UO.SetReceivingContainer('0x401B5E11') ;ID backpacka
  For i=0 to 22
    Exit=0
    repeat
      UO.FindType(Loot[i],-1,'lastcontainer')
      if UO.GetQuantity('finditem') then
        UO.Grab('0','finditem')
        wait(100)
       Else
        Exit=1
      endif
    until Exit==1 OR uo.injournal("loot")
  Next
  UO.UnSetReceivingContainer()
end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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