About Ignore Command plz help

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

About Ignore Command plz help

Post by Knight1106 »

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: Select all

Item found...
Invalid Object: finditem


This is the script:

Code: Select all

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
slonopotam
Posts: 270
Joined: 2006-08-05 14:09:06
Contact:

Post by slonopotam »

Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

slonopotam wrote:Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880

Наврятли он тебя понял.
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Re: About Ignore Command plz help

Post by Edred »

Knight1106 wrote:

Code: Select all

 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: Select all

dim Item[29]
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Re: About Ignore Command plz help

Post by Knight1106 »

Edred wrote:
Knight1106 wrote:

Code: Select all

 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: Select all

dim Item[29]


ok but this does not solve the ignore problem that i have posted about...
is there anything wrong ?
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

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: Select all

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: Select all

UO.IgnoreReset()

to end of script.
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...
slonopotam
Posts: 270
Joined: 2006-08-05 14:09:06
Contact:

Post by slonopotam »

Destruction wrote:
slonopotam wrote:Наврятли кто то будет читать чужой код. Проще взять готовый:

viewtopic.php?p=38880#38880

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

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