Yoko
http://forum.yoko.com.ua/

About Ignore Command plz help
http://forum.yoko.com.ua/viewtopic.php?f=3&t=8620
Page 1 of 1

Author:  Knight1106 [ 2006-08-26 02:40:27 ]
Post subject:  About Ignore Command plz help

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

Author:  slonopotam [ 2006-08-26 05:00:17 ]
Post subject: 

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

viewtopic.php?p=38880#38880

Author:  Destruction [ 2006-08-26 08:42:36 ]
Post subject: 

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

viewtopic.php?p=38880#38880

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

Author:  Edred [ 2006-08-26 08:58:30 ]
Post subject:  Re: About Ignore Command plz help

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]

Author:  Knight1106 [ 2006-08-26 22:40:16 ]
Post subject:  Re: About Ignore Command plz help

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 ?

Author:  Edred [ 2006-08-27 08:16:49 ]
Post subject: 

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.

Author:  slonopotam [ 2006-08-27 09:11:41 ]
Post subject: 

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

viewtopic.php?p=38880#38880

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

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/