Yoko

All sides of Injection
It is currently 2026-01-22 00:25:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2006-08-26 02:40:27 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
I'm using an Autoloot script that after the Uo.grab command there is an Uo.ignore cmd which ignores the item i have found to loot, so the item goes to my backpack and it will be ignored, right ?
But if i put the item on ground again and pressed the uo.ignorerest command
apears this message and the it isn't looted... Is the ignore cmd working well ?

The message:
Code:
Item found...
Invalid Object: finditem


This is the script:
Code:
sub CtrlS() 
 uo.findtype('0x0e76',-1,'backpack')
 if uo.findcount() then
 UO.SetReceivingContainer('finditem')
 end if
 var i
 var col
 var limit=0
 dim Item[28]
   #Armas
 Item[1]=0x1400 ;Kryss
 Item[2]=0x13B9 ;Viking
 Item[3]=0x13B1 ;Bow
   #Plates
 Item[4]=0x140A ;Helm
 Item[5]=0x13BB ;Coif
 Item[6]=0x1415 ;Chest
 Item[7]=0x1416 ;Tunic
 Item[8]=0x1410 ;Arms
 Item[9]=0x1417 ;Sleeves
 Item[10]=0x1413 ;Gorget
 Item[11]=0x1414 ;Gauntlets
 Item[12]=0x1418 ;Gloves
 Item[13]=0x1411 ;Legs
 Item[14]=0x141a ;Leggings
   #Itens
 Item[15]=0x0F09 ;Mana
 Item[16]=0x0F0C ;GH
 Item[17]=0x0f0A ;Deadly P.
 Item[18]=0x0F09 ;Invis
 Item[19]=0x0F0B ;Refresh
 Item[20]=0x108A ;Ring
 Item[21]=0x1089 ;Necklace
 Item[22]=0x1086 ;Bracelet
 Item[23]=0x170B ;Boots
 Item[24]=0x153B ;Half Apron
 Item[25]=0x1EFD ;Shirt
 Item[26]=0x1f03 ;Robe
 Item[27]=0x1541 ;Sash
 Item[28]=0x0F3F ;Arrow
 dim Msg[28]
 Msg[1]='Kryss Found...'
 Msg[2]='Viking Found...'
 Msg[3]='Bow Found...'
 Msg[4]='Platemail Helm Found...'
 Msg[5]='Chainmail Coif Found...'
 Msg[6]='Platemail Chest Found...'
 Msg[7]='Chainmail Tunic Found...'
 Msg[8]='Platemail Arms Found...'
 Msg[9]='Chainmail Sleeves Found...'
 Msg[10]='Platemail Gorget Found...'
 Msg[11]='Platemail Gauntlets Found...'
 Msg[12]='Chainmail Gloves Found...'
 Msg[13]='Platemail Legs Found...'
 Msg[14]='Chainmail Leggings Found...'
 Msg[15]='Mana Found...'
 Msg[16]='Gh Found...'
 Msg[17]='Deadly P. Found...'
 Msg[18]='Invisibility Found...'
 Msg[19]='Refresh Found...'
 Msg[20]='Ring Found...'
 Msg[21]='Necklace Found...'
 Msg[22]='Bracelet Found...'
 Msg[23]='Boots Found...'
 Msg[24]='Half Apron Found...'
 Msg[25]='Shirt Found...'
 Msg[26]='Robe Found...'
 Msg[27]='Sash Found...'
 Msg[28]='Arrows Found...'
 uo.set('finddistance','3')
 uo.findtype('Corpo',-1,'ground')
 if uo.findcount() then
 wait(100)
 if uo.getcolor('finditem')=='0x0000' then
 uo.ignore('finditem')
 end if
 uo.print('Corpse Found')
 uo.waittargetobject('finditem')
 uo.usetype('0x0f51')
 wait(250)
 uo.ignore('finditem')
 end if
 uo.disarm()
 for i=1 to 28
 col=-1
 if i==15 then
 col=0x0480
 end if
 repeat
 uo.findtype(Item[i],col,'ground')
 if uo.findcount() then
 if not (i>6 && i<16 && uo.getcolor('finditem')=='0x0763') then
 uo.print(Msg[i])
 uo.click('finditem')
 wait(1350)
 uo.deletejournal()
 uo.grab(0,'finditem')
 uo.ignore('finditem')
 else
 uo.ignore('finditem')
 end if
 end if
 until uo.findcount()<1
 next
UO.UnSetReceivingContainer()
end sub


and it is now crashing my client sometimes o.O

plz someone help me


Top
   
 Post subject:
PostPosted: 2006-08-26 05:00:17 
Offline
User avatar

Joined: 2006-08-05 14:09:06
Posts: 270
Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880


Top
   
 Post subject:
PostPosted: 2006-08-26 08:42:36 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
slonopotam wrote:
Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880

Наврятли он тебя понял.


Top
   
PostPosted: 2006-08-26 08:58:30 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Knight1106 wrote:
Code:
 var limit=0
 dim Item[28]
   #Armas
 Item[1]=0x1400 ;Kryss
....
 Item[28]=0x0F3F ;Arrow



Elements of array count from 0, therefore you must correct definition of array to
Code:
dim Item[29]

_________________
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...


Top
   
PostPosted: 2006-08-26 22:40:16 
Offline

Joined: 2005-09-08 18:38:12
Posts: 64
Edred wrote:
Knight1106 wrote:
Code:
 var limit=0
 dim Item[28]
   #Armas
 Item[1]=0x1400 ;Kryss
....
 Item[28]=0x0F3F ;Arrow



Elements of array count from 0, therefore you must correct definition of array to
Code:
dim Item[29]


ok but this does not solve the ignore problem that i have posted about...
is there anything wrong ?


Top
   
 Post subject:
PostPosted: 2006-08-27 08:16:49 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Knight1106 wrote:
and it is now crashing my client sometimes o.O


Edred wrote:
Elements of array count from 0, therefore you must correct definition of array to
Code:
dim Item[29]


Knight1106 wrote:
ok but this does not solve the ignore problem that i have posted about...
is there anything wrong ?


Insert
Code:
UO.IgnoreReset()

to end of script.

_________________
Ни один скрипт не работает? Пора обновить Инжект...

Все работает, но хочется большего? Пора переходить на стелс...


Top
   
 Post subject:
PostPosted: 2006-08-27 09:11:41 
Offline
User avatar

Joined: 2006-08-05 14:09:06
Posts: 270
Destruction wrote:
slonopotam wrote:
Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880

Наврятли он тебя понял.

Яж понял его, хоть и с трудом. Трояк по инглишу был =)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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